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'