Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mahabali
Starting Member
3 Posts |
Posted - 2010-03-30 : 12:57:24
|
| Hey guys,One of the users in my company ran a script and then forgot to run "Commit Transaction", the table was locked up for about 2 hours till we figured out the problem.Can anyone help me as to how I can find out whether a table is locked and who has locked it (basically who forgot to commit the transaction)I use SQL Server 2005. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-03-30 : 13:05:30
|
| run sp_who2 to identify processes causing blocking and use dbcc inputbuffer(obtainedprocessid) to get script that caused blocking------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
mahabali
Starting Member
3 Posts |
Posted - 2010-03-30 : 13:08:22
|
| Hey thanks for the reply.but isn't sp_who2 deprecated since SQL Server 7.0?I am looking for a newer method |
 |
|
|
mahabali
Starting Member
3 Posts |
Posted - 2010-03-30 : 13:20:11
|
| Also what do different columns mean? particularly the status one |
 |
|
|
|
|
|