Poll table locking schemes in T-SQL

Is there a way to query system tables to determine which tables use which locking schemes? I looked at the columns in sysobjects but nothing popped up.

+3
source share
2 answers

aargh just being an idiot:

SELECT    name, lockscheme(name)
FROM      sysobjects
WHERE     type="U"
ORDER BY  name
+1
source

take a look at the syslockinfo and syslocks system tables; you can also run sp_lock proc

0
source

Source: https://habr.com/ru/post/1696396/


All Articles