August 31, 2007 at 8:48 am
Hi Experts,
i am working on sql server 2005 database. one problem i am facing is that one process is blocked by same process id?
August 31, 2007 at 9:13 am
it could be parallel processing.
Paul
August 31, 2007 at 11:39 am
Hi Paul,
i did not get you. could you please clarify it. how do i eliminate this problem.as far as my knowledge parallel processing is helps to run the query faster. but it is taking long time to execute it.
August 31, 2007 at 1:16 pm
Hi Pavan,
Next time if it happens, find what causes the blocking, this way you may modify your script to avoid this situation. Here's a quite simple script for this task, you can enhance it:
SELECT rsc_dbid, -- database id rsc_objid, -- object_id rsc_type -- resource type, read BOL for more info FROM master.sys.syslockinfo WHERE req_spid = <SPID> AND req_status = 3 -- waiting for a lock, that is, blocked
Given the result set, you can find that which object is your process waiting for. Use db_name() and object_name() functions. If there's anything you don't understand, just read about syslockinfo in BOL, and if it remains unclear, put the question.
Have fun!
-- Erik http://blog.rollback.hu
September 1, 2007 at 2:49 am
Are you using any user defined types, xml or CLR types in the temp tables you are creating? SQL Server SP1 has introduced something what I call self-deadlocking transactions, but I've only seen these with the above datatypes. (examples on http://www.simple-talk.com/community/blogs/andras/archive/2006/06/09/859.aspx)
Andras
September 1, 2007 at 12:21 pm
Any of your processes or stored procedures using Cursors, While loops, or other RBAR?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2007 at 3:33 am
These are self-blockings and will release on its own quite after some time. I'm not sure if this still happen in sql2k5 but these are behaviour of SP4 on SQL 2000.
Murali.a
September 4, 2007 at 3:58 am
Are u experiencing self blocking with system stored procedures. Or custom stored procedures. Sorry if the question is repeated again
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply