Hour 18

Quiz Answers

1: Which method of the SqlTransaction object finalizes a transaction? How is this done in T-SQL?
A1: The Commit() method of the SqlTransaction object finalizes a transaction and commits all database changes made during the life of the transaction. To achieve the same when working with T-SQL, you would use COMMIT TRAN.
2: In ADO.NET, a database transaction is started by using which object?
A2: The BeginTransaction() method of the Connection object is used to start a transaction.

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.