rs_begin

Begins a transaction in a data server.

Examples

Usage

  • The rs_begin function has function-string-class scope.

  • Replication Server creates an initial rs_begin function string for the system-provided function-string classes during installation.

  • If you use a user-created base function-string class, you must create an rs_begin function string.

  • Create or customize an rs_begin function string at the Replication Server that is the primary site for the class.

  • Some data servers do not support an explicit begin transaction operation. Instead, they begin transactions implicitly whenever the previous transaction is committed or rolled back. For these data servers, the rs_begin function string can be an empty string ('').

  • The function string for this function usually uses the rs_origin_xact_name system variable. Its value is received from the RepAgent. The transaction name is assigned in Transact-SQL with begin transaction.

Related reference
alter function string
create function string
rs_commit
rs_rollback