SQLEndTran

適用於:SQL ServerAzure SQL DatabaseAzure SQL 受控執行個體Azure Synapse AnalyticsAnalytics Platform System (PDW)

根據預設,當 SQLEndTran 認可或回復作業時 ,SQL Server Native Client ODBC 驅動程式會關閉語句的相關資料指標。 除非伺服器資料指標是靜態的,否則伺服器資料指標會關閉。 當 SQLEndTran 認可或復原作業時 ,語句相關聯資料指標的行為取決於由 SQLSetConnectAttr 設定之驅動程式特定 ODBC 連接屬性的值SQL_COPT_SS_PRESERVE_CURSORS。

另請參閱

ODBC API 實作詳細資料
SQLEndTran 函式