Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. `Use 'yourDB'
  2. GO
  3.  
  4. -- Check this first
  5. select db_name(database_id) as DBNAME,open_transaction_count
  6. from sys.dm_exec_requests
  7. where session_id = 'yourSPID'
  8.  
  9. --Then run the Begin Tran statement below, and check the above select statement again.
  10.  
  11. begin tran
  12. go
  13.  
  14. rollback --- close with no changes`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement