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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL table locked up. How do I unlock it?

Author  Topic 

jaroot
Starting Member

46 Posts

Posted - 2005-11-18 : 11:28:16
I can't open a table that has 5 records. Is there any kill processes that can unlock the table for me?

X002548
Not Just a Number

15586 Posts

Posted - 2005-11-18 : 11:31:34
do sp_who2 active, find the spid, and kill spid...

BUT! I would see who's locking the table first with sp_lock



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2005-11-20 : 22:06:42
and before killing the spid, be sure that there's no major processing that needs to be rolled back if you kill the process...
like a couple of millions/thousands of inserts, deletes or updates

HTH



--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -