开发者

How to set lock wait timeout in SQL Server

开发者 https://www.devze.com 2023-02-21 15:27 出处:网络
how do i set a lock wait timeout in sql server? Is there anyway that I can specify maybe through JDBC or a configuration script that I can use?

how do i set a lock wait timeout in sql server?

Is there anyway that I can specify maybe through JDBC

or a configuration script that I can use?

I want to make sure that my statemen开发者_如何学Pythonts will only wait specific time on accessing a row with a lock

Thanks


You can either issue a TSQL SET LOCK_TIMEOUT nnnn statement or set it in the connection string using the lockTimeout property.

0

精彩评论

暂无评论...
验证码 换一张
取 消