I use this Tsql to select locked object in my database:
select
object_name(P.object_id) as TableName,
resource_type, resource_description
from
sys.dm_tran_locks L join sys.partitions P
on L.resource_associated_entity_id = p.hobt_id
but this only show me the table that are lock now.how can i show the locked record.
The following code will help you find all the current requests on SQL Server and their statuses. I believe you cannot go to the record level. I maybe wrong on that.
The following will tell you what is blocking your request.