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 2000 Forums
 SQL Server Administration (2000)
 Blocking and Blocked by

Author  Topic 

SQL360
Starting Member

20 Posts

Posted - 2008-09-16 : 19:04:41
If you can shed some light on what do I need to be digging for to possibly find problem relating to blocked by and blocking.

Current Scenario
Under locks/process id
there is spid 12 (blocked by 12)
and right below there is spid 12 (blocking)

I can see on which db this blocking is happenning but what else would you look for to see if there is any possible problem happenning.
when I go to properties for different types of lock type within that spid, it says
Last TSQL command batch: sp_unprepare;1

Thank you in advance for help.

SQL360

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-09-16 : 19:22:03
Ignore blocking when the spid is blocking itself.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

SQL360
Starting Member

20 Posts

Posted - 2008-09-16 : 21:55:40
Thank you. In what possible scenarios the same spid block itself?
Could it be during mutiple insert/update in the same table?

SQL360
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2008-09-16 : 23:09:16
http://support.microsoft.com/kb/906344/en-us

Be One with the Optimizer
TG
Go to Top of Page

SQL360
Starting Member

20 Posts

Posted - 2008-09-18 : 00:42:26
Thank you for the link

SQL360
Go to Top of Page
   

- Advertisement -