teixeira
Well-known member
Hello,
Ive some doubts about error handling in sql server 2005.
Im confused about what to do, for example: should i use BEGIN TRANSACTION ... BEGIN TRY...END TRY BEGIN CATCH... END CATCH.....COMIT ...ROLLBACK... END inside the procedure and i get my sql execution prevented from any exception, but the SqlClient Connector doesnt know what happen, or should i have no error handling inside the procedure, and make the transaction inside my C# code, using SQlTransaction Class??
what is the best practice/advice about this, to catch all the errors, commit or roolback actions and have that information available at SqlClient Connector level in my client application ?
TIA,
Tiago Teixeira
Ive some doubts about error handling in sql server 2005.
Im confused about what to do, for example: should i use BEGIN TRANSACTION ... BEGIN TRY...END TRY BEGIN CATCH... END CATCH.....COMIT ...ROLLBACK... END inside the procedure and i get my sql execution prevented from any exception, but the SqlClient Connector doesnt know what happen, or should i have no error handling inside the procedure, and make the transaction inside my C# code, using SQlTransaction Class??
what is the best practice/advice about this, to catch all the errors, commit or roolback actions and have that information available at SqlClient Connector level in my client application ?
TIA,
Tiago Teixeira