|
TG
Flowing Fount of Yak Knowledge
USA
5469 Posts |
Posted - 06/05/2006 : 13:02:28
|
>>Can anyone give me an example of a transaction that can block itself?
I did see a very funky thing once where a developer emailed me the output of sp_who2 active showing a spid blocking itself. Turned out he was...let me get this straight...within a transaction, inserting to a table, calling xp_cmdshell which was in-turn was making an osql call that selected from the same table. I don't remember exactly what he was doing or why, and I'm sure it doesn't pertain to your situation. I just wanted to share
Actually now that I think about it, I remember trying to duplicate that but I couldn't get all the processes to work under the same spid, so maybe that self-blocking thing was due to parallelism as well...hmmm...oh well, nevermind
Be One with the Optimizer TG |
 |
|