Which of the following is the correct way to start a transaction in SQL?
easy📝 Syntax Q12 of 15
SQL - Transactions and Data Integrity
Which of the following is the correct way to start a transaction in SQL?
AOPEN TRANSACTION;
BCREATE TRANSACTION;
CSTART TRANSACTION;
DBEGIN TRANSACTION;
Step-by-Step Solution
Solution:
Step 1: Recall SQL syntax for transactions
The standard way to start a transaction is using START TRANSACTION; or BEGIN TRANSACTION;.
Step 2: Check each option
START TRANSACTION; is the most widely supported and standard syntax. CREATE TRANSACTION and OPEN TRANSACTION are invalid. BEGIN TRANSACTION is valid in some systems but START TRANSACTION is more standard.