Marks the starting point of a user-defined transaction.
begin tran[saction] [transaction_name]
begin transaction insert into publishers (pub_id) values ("9999") commit transaction
Define a transaction by enclosing SQL statements and system procedures within the phrases begin transaction and commit. If you set chained transaction mode, the SAP ASE server implicitly invokes a begin transaction before the following statements: delete, insert, open, fetch, select, and update. You must still explicitly close the transaction with a commit.
To cancel all or part of a transaction, use the rollback command. The rollback command must appear within a transaction; you cannot roll back a transaction after it is committed.
ANSI SQL – Compliance level: Transact-SQL extension.
No permission is required to use begin transaction.