DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server database PassGuideDB.
There is a transaction with two commands.
If the transaction fails to commit or rolls back then error information needs to be logged.
Which code should be used?
Which code should be used?
DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server database PassGuideDB.
There is a transaction with two commands.
If the transaction fails to commit or rolls back then error information needs to be logged.
Which code should be used?
The specified answer seems to be correct. See the following link:
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqltransaction%28v=vs.110%29.aspx