sql server - returning to default LOCK_TIMEOUT -


after doing set lock_timeout in sql query possible return default timeout? or rather default timeout defined dba?

the default -1 means "no timeout"

to reset previous value may not default in connection, store value @@lock_timeout , change later. you'll need dynamic sql.

however, it's reset when connection dropped per set lock_timeout

at beginning of connection, setting has value of -1. after changed, new setting stays in effect remainder of connection.

so, unless persist connection indefinitely don't need anything...


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -