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
Post a Comment