Hi,
I am experiencing a problem where an SQL transaction does not committ when the updates in the procedure times out.
BEGIN TRANSACTION
UPDATE WHATEVER
SELECT WHATEVER
UPDATE WHATEVER
COMMIT TRANSACTION
The knock on effect of this is that locks are held open for table WHATEVER until the transaction is comitted or the application is restarted. Note: I have tried to put in error trapping but this does not work.. If anyone has had any experience with an issue like this i would love to hear.
I dont want to modify the timeout value either, basically i just want to know why SQL Server does not automatically rollback this transaction
Thanks
Conor
I am experiencing a problem where an SQL transaction does not committ when the updates in the procedure times out.
BEGIN TRANSACTION
UPDATE WHATEVER
SELECT WHATEVER
UPDATE WHATEVER
COMMIT TRANSACTION
The knock on effect of this is that locks are held open for table WHATEVER until the transaction is comitted or the application is restarted. Note: I have tried to put in error trapping but this does not work.. If anyone has had any experience with an issue like this i would love to hear.
I dont want to modify the timeout value either, basically i just want to know why SQL Server does not automatically rollback this transaction
Thanks
Conor