testing - Forcing a query timeout in SQL Server -
We had a problem with a block of code of poor response in the face of a slow database (it ended the bed inquiry time on one ). We have created a patch, and it is in the process of going through regression.
We can not be out of time I have opened a transaction from SQL MGMT studio and have updated every row to lock them, but this causes the INSERT timeout (which is what I want) is not.
Do I easily make a table-level lock through T-SQL? Or do I have to be around the gurus? Or can I force timeouts without locking? Any input is appreciated.
Run it and then try entering your ...
Here, you can lock it for 5 minutes:
Select BEGIN transfer from * (TABLOCKX, HOLDLOCK) with your tunable = 0 = 1 WAITFOR Daily '00: 05 'rollback transaction
Comments
Post a Comment