Transactions

 

System_CAPS_ICON_warning.jpg Warning

SQL Server Native Client (SNAC) is not supported beyond SQL Server 2012. Avoid using SNAC in new development work, and plan to modify applications that currently use it. The Microsoft ODBC Driver for SQL Server provides native connectivity from Windows to Microsoft SQL Server and Microsoft Azure SQL Database.

The SQL Server Native Client OLE DB provider implements local transaction support. The consumer can use distributed or coordinated transactions by using Microsoft Distributed Transaction Coordinator (MS DTC). For consumers requiring transaction control that spans multiple sessions, the SQL Server Native Client OLE DB provider can join transactions initiated and maintained by MS DTC.

By default, the SQL Server Native Client OLE DB provider uses an autocommit transaction mode, where each discrete action on a consumer session comprises a complete transaction against an instance of SQL Server. The SQL Server Native Client OLE DB provider autocommit mode is local, and autocommit transactions never span more than a single session.

The SQL Server Native Client OLE DB provider exposes the ITransactionLocal interface, allowing the consumer to use explicitly and implicitly start transactions on a single connection to an instance of SQL Server. The SQL Server Native Client OLE DB provider does not support nested local transactions.

SQL Server Native Client (OLE DB)

Community Additions

ADD
Show: