select t1.* ,t2.name from sys.dm_tran_locks t1 inner join sys.tables t2 on t1.resource_associated_entity_id = t2.object_id
where resource_type = 'OBJECT'
Powered by: 博客园 Copyright © 2025 懒人ABC Powered by .NET 9.0 on Kubernetes