明永成

导航

 

--先执行排它锁,锁住所有的表

begin tran

exec sp_MSforeachtable 'select top 1 * from ? with (tablockx)'

 

--然后调试程序,看看程序访问的表

commit

 

posted on 2014-08-18 00:20  明永成  阅读(156)  评论(0编辑  收藏  举报