SHARE
TWEET

Untitled

SQLSoldier Apr 7th, 2014 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. With TranIDs
  2. As (Select [Transaction ID]
  3.         From fn_dblog(null, null)
  4.         Where [Transaction Name] = 'Alter Authorization')
  5. Select F.*
  6. From fn_dblog(null, null) F
  7. Inner join TranIDs T On F.[Transaction ID] = T.[Transaction ID]
  8. Where F.[Lock Information] Like '%DB_PRINCIPAL_SID($hash%'
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top