SHARE
TWEET

Untitled

SQLSoldier Sep 29th, 2013 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. With Test1
  2. As (SELECT *
  3.         FROM Production.Product WITH (NOLOCK))
  4. Select Distinct object_name(resource_associated_entity_id), TL.*
  5. From sys.dm_tran_locks TL
  6. Cross Join Test1 T1
  7. Where request_session_id = @@SPID;
RAW Paste Data
Top