SQLSoldier Apr 7th, 2014 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- With TranIDs
- As (Select [Transaction ID]
- From fn_dblog(null, null)
- Where [Transaction Name] = 'Alter Authorization')
- Select F.*
- From fn_dblog(null, null) F
- Inner join TranIDs T On F.[Transaction ID] = T.[Transaction ID]
- Where F.[Lock Information] Like '%DB_PRINCIPAL_SID($hash%'
RAW Paste Data