[sourcecode language=”sql”]
SELECT name indexname
FROM sys.indexes
WHERE object_id = object_id(‘XYZTable’) AND
allow_row_locks = 0 AND allow_page_locks = 0
[/sourcecode]
[sourcecode language=”sql”]
SELECT name indexname
FROM sys.indexes
WHERE object_id = object_id(‘XYZTable’) AND
allow_row_locks = 0 AND allow_page_locks = 0
[/sourcecode]