Re: SqlTransactions and Sql timeout errors
From: Adam (adam.pridmore_at_threex.co.uk)
Date: 11/01/04
- Next message: Mel Grubb II: "Re: SQLTransaction Timeout"
- Previous message: Dennis: "Re: 2nd problem with that listbox doesn't refresh after adding an ite"
- In reply to: Mary Chipman: "Re: SqlTransactions and Sql timeout errors"
- Next in thread: Mary Chipman: "Re: SqlTransactions and Sql timeout errors"
- Reply: Mary Chipman: "Re: SqlTransactions and Sql timeout errors"
- Messages sorted by: [ date ] [ thread ]
Date: 1 Nov 2004 04:34:02 -0800
Thanks.
Just another quick questions, but is there a reason why sql timeout
exceptions cause it to rollback automatically? Is it to do with the
way MS SQL server handles timeout errors as apposed to other runtime
SQL errors?
Adam
Mary Chipman <mchip@online.microsoft.com> wrote in message news:<9ruao0l9foa203qovu0nkfu5h30k7vknk7@4ax.com>...
> You'll need to wrap your Rollback in its own try/catch block since
> you'll just be triggering a runtime error if you try to roll it back
> and it's not active. One way to keep track of what's going on is to
> create a variable that gets set to different values in your various
> Catch blocks. You can see an example in the Rollback help topic in the
> Help file -- instead of console.writeline shown here, just write to
> your variable:
> ms-help://MS.VSCC.2003/MS.MSDNQTR.2004APR.1033/cpref/html/frlrfSystemDataSqlClientSqlTransactionClassRollbackTopic.htm
>
> --Mary
>
>
- Next message: Mel Grubb II: "Re: SQLTransaction Timeout"
- Previous message: Dennis: "Re: 2nd problem with that listbox doesn't refresh after adding an ite"
- In reply to: Mary Chipman: "Re: SqlTransactions and Sql timeout errors"
- Next in thread: Mary Chipman: "Re: SqlTransactions and Sql timeout errors"
- Reply: Mary Chipman: "Re: SqlTransactions and Sql timeout errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|