rs_begin

Description

Begins a transaction in a data server.

Examples

Example 1

Creates an rs_begin function string for the oth_sql_class function-string class. The rs_origin_xact_name system variable has a null value if the transaction has no name. Placing “t_” in front of the system variable prevents data server syntax errors and allows the function string to support named and unnamed transactions.

alter function string rs_begin
 for oth_sql_class
 output language
 'begin transaction
   t_?rs_origin_xact_name!sys_raw?'

Example 2

Creates an rs_begin function string for a function-string class for a data server that does not support the begin transaction operation.

create function string rs_begin
 for oth_sql_class
 output language ''

Usage

See also

alter function string, create function string, rs_commit, rs_rollback