|
Posted by Erland Sommarskog on 09/28/75 11:48
Marco van de Voort (marcov@stack.nl) writes:
>> To wit, if a query times out, and there is a transaction in progress,
>> the transaction is not rolled back automatically. It is irrelevant
>> whether the transaction was started prior to the submission of the
>> query batch, or started within the query batch that timed out.
>>
>> The application must handle this by submitting
>>
>> IF @@trancount > 0 ROLLBACK TRANSACTION
>
> I call the rollback of the relevant ADO connection on the exception caused
> by the timeout.
So, did you investiagate if you have any blocking?
Also, I have you examined the SQL Server error log?
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Navigation:
[Reply to this message]
|