O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required