SELECT dbLocks.resource_type, 
dbNames.name AS 'database_name', 
dbObjects.name AS 'object_name', 
dbLocks.request_type, 
dbLocks.request_status, 
dbLocks.request_session_id
FROM sys.dm_tran_locks AS dbLocks
INNER JOIN sys.databases AS dbNames 
ON dbLocks.resource_database_id = dbNames.database_id
LEFT OUTER JOIN sys.objects AS dbObjects 
ON dbLocks.resource_associated_entity_id = dbObjects.[object_id];

A personal technical diary… To the point… Precise