適用於:SQL Server
Azure SQL 資料庫
Azure SQL 受控執行個體
Azure Synapse Analytics
Microsoft Fabric 中的 SQL 資料庫
在 SQL Server 管理物件 (SMO) 中,事務處理是透過使用 ServerConnection 對象連接到 SQL Server 實例來達成。 建立ServerConnection連接時,對象的 屬性ConnectionContext會參考Server物件。 、、 和 StartTransaction 等RollBackTransactionCommitTransaction方法屬於 ConnectionContext 物件屬性。