Udostępnij za pośrednictwem


Transakcje

The SQL Server Native klient OLE DB dostawca implements local transaction support. Konsument służy transakcja rozproszona lub koordynowane przy użyciu programu Microsoft transakcja rozproszona Coordinator (MS DTC).Konsumenci wymagające formantu transakcji, który obejmuje wiele sesji SQL Server Transakcje inicjowane i obsługiwanych przez usługi MS DTC może zostać dołączony macierzystego dostawca klient OLE DB.

Domyślnie SQL Server Tryb transakcji autocommit, gdzie każdy discrete akcja w sesja klient składa się z pełną transakcji przed wystąpienie korzysta z trybu macierzystego dostawca klient OLE DB SQL Server. The SQL Server Native klient OLE DB dostawca tryb automatycznego zatwierdzania is local, and autocommit transactions never span more than a single sesja.

The SQL Server Native klient OLE DB dostawca exposes the ITransactionLocal interfejs, allowing the consumer to use explicitly and implicitly start transactions on a single connection to an wystąpienie of SQL Server. The SQL Server Native klient OLE DB dostawca does not support nested local transactions.