开发者

Table Lock History

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜