Aracılığıyla paylaş


ServerConnection.BeginTransaction Method

Definition

Starts a new transaction. If CaptureMode is true, the transaction statement will be added to the capture buffer.It is possible to nest transactions. It is the user's responsibility to commit or rollback every opened transaction. It is not guaranteed that all T-SQL emitted by the object model, can be encapsulated by a transaction. Furthermore, the state of the objects that have been changed will not reflect the actual database state until a transaction has been committed or after a transaction has been rolled backed. It is the responsibility of the user to refresh affected objects. Use with care.

public void BeginTransaction ();
member this.BeginTransaction : unit -> unit
Public Sub BeginTransaction ()

Applies to