CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

How Bad are SQL Server Locks?

We've got a SQL Server 2000 box that keeps crashing every night, when the DBA group runs a job.  Now, this same SQL Server is being used from Crystal Reports, running from our public web site.  Add one more bug to your list for Crystal for .NET:  it seems to leave (hundreds of) locked  processes in “sleeping“ status.  We think this is happening when the Crustal engine “Cannot obtain a free license.”  My wild guess is that Crustal is not properly closing the connection when this happens.  Anyhow, I've never been too worried about this, since in my experience locked processes in SQL are an everyday thing, and although certainly bad, not something that should crash a server. 

Well, the DBA came in today pointing the finger at these locked processes.  Her reasoning was that when the server crashes, she gets an "out of memory" error, and all these locks must certainly be taking up memory so the problem must be the locks. 

Now, I'm not so hasty pointing fingers, but her explanation seems unlikely.  If these hundred or so locks could be taking up the lionsshare of the 2G of memory this server, SQL Server 2000 would have some serious problems. 

Anyhow, my question is this: How bad are locked processes anyhow?  Are they something to worry about?  Could they possibly crash SQL?

-B



Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors