Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transaction lock timeout settings

Status
Not open for further replies.

jcalli

MIS
Joined
Feb 10, 2005
Messages
7
Location
US
I am building a stored procedure that needs to access and update several SQL Server tables simultaneously. Is there a way to set the timeout on the lock to rollback the transaction after 30 sec's? The problem is that I'm locking data elements in several tables simultaneously and I need for either all to commit or all to rollback and I need to put a time limit on the timeout if there is a problem.

Thanks,

 
How about SET LOCK_TIMEOUT?
You can also check the current setting using @@LOCK_TIMEOUT.

--------------
art prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top