I have a production web site that randomly hangs. I can't recreate it on test or dev servers. We therefore ordered a trace to be collected from the MS SQL Server.
When going through the trace, I noticed that sometimes, a very long duration were logged. I also noticed that the SPID number changes every time this huge duration is recorded - see image. Is it a locked/hanging process that's unresponsive for the logged duration or how do I interpret this?
I've already been to the TechNet Library and other sites, but I can't seem to find the answer to this.
I'm afraid that I don't have the time to learn all there is about the matter or spend days finding the answer.
I'm really more in the need for a Yeah, you're screwed! or Don't worry, that duration is just the time elapsed since that SPID had to access data! or something like that.
I hope there's anyone out there able to help!
Well, I can tell you that is what it is supposed to be:
http://msdn.microsoft.com/en-us/library/ms175827(v=sql.100).aspx.
It's not strange that the spid changes when there's a Logout event...that is the connection id.
It would be interesting to see if it corresponds to the beginning or end of your hang event.