开发者

Table Lock History

开发者 https://www.devze.com 2023-03-05 07:15 出处:网络
Is there a way to know the lock history for a table? In example, a list with all the locks that occurred on a table between 8:00 and 9:00.

Is there a way to know the lock history for a table?

In example, a list with all the locks that occurred on a table between 8:00 and 9:00.

开发者_如何学Go

Looking for answer that works on SQL Server 2000


You can only get current locks (eg syslocks). There is no lock history kept.

You'd have to run a SQL Profiler trace but it will generate a lot of data. Or poll syslocks periodically and store info in logging table.

0

精彩评论

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