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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 lock on entire database....

Author  Topic 

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-10-23 : 03:33:05
Hi,

I have seen that there is lock on my entire database and due to that i can not able to perform any DML activities.

how can one remove lock from entire database?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-23 : 03:47:23
run sp_who2 and see what all processes are causing blocking. then kill them. hopefully this should let you to perform DML activities again.
Go to Top of Page

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-10-23 : 04:13:39
i have kill processes but still it's not working...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-23 : 04:20:31
quote:
Originally posted by hirani_prashant

i have kill processes but still it's not working...


how did you kill it? using kill() command?
Go to Top of Page

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-10-23 : 04:23:37
yes using kill() command...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-23 : 04:29:44
quote:
Originally posted by hirani_prashant

yes using kill() command...


sometimes there are cases where process doesnt actually get killed when using kill(). can you remote login to server and see if process is killed from task manager?

http://sqlserver-qa.net/blogs/perftune/archive/2008/05/06/4120.aspx
Go to Top of Page

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-10-23 : 05:03:51
i have done it. still not working.

i have seen the procedure sp_lock and it gives me below o/p. might this will help you...


spid dbid ObjId IndId Type Resource Mode Status
51 5 0 0 DB S GRANT
54 5 0 0 DB S GRANT
56 5 0 0 DB S GRANT
57 12 0 0 DB S GRANT
58 4 0 0 DB S GRANT
59 12 0 0 DB S GRANT
60 5 0 0 DB S GRANT
61 6 0 0 DB S GRANT
62 5 0 0 DB S GRANT
63 12 0 0 DB S GRANT
64 4 0 0 DB S GRANT
66 12 0 0 DB S GRANT
66 2 34 0 TAB IX GRANT
66 2 34 2 KEY (a616a875b47f) X GRANT
66 2 99 0 RID 1:235:1 X GRANT
66 2 34 2 KEY (0501c29022f9) X GRANT
66 2 99 0 RID 1:235:2 X GRANT
66 2 142623551 0 TAB Sch-M GRANT
66 2 34 1 KEY (3f00f4eb7731) X GRANT
66 2 34 3 KEY (a61641ea6216) X GRANT
66 2 34 3 KEY (050139f31e71) X GRANT
67 1 1115151018 0 TAB IS GRANT
67 12 0 0 DB S GRANT
69 5 0 0 DB S GRANT
70 5 0 0 DB S GRANT
71 5 0 0 DB S GRANT
72 5 0 0 DB S GRANT
73 12 0 0 DB S GRANT
74 12 0 0 DB S GRANT
75 12 0 0 DB S GRANT
76 12 0 0 DB S GRANT
77 12 0 0 DB S GRANT
78 12 0 0 DB S GRANT
79 12 0 0 DB S GRANT
80 12 0 0 DB S GRANT
81 5 0 0 DB S GRANT
82 12 0 0 DB S GRANT
84 12 0 0 DB S GRANT
85 5 0 0 DB S GRANT
86 12 0 0 DB S GRANT
87 12 0 0 DB S GRANT
88 12 0 0 DB S GRANT
Go to Top of Page
   

- Advertisement -