How to automatically kill the processes with 'sleeping' status on sql server?


I have purchased a .net application using sql server2000. The application was running fine on my local machine until I put it on the web server. I started to get error message:
"Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool.
 This may have occurred because all pooled connections were in use and max pool size was reached"

Given that the error may have been related to 'connection leak', I checked the processes on the SQL server and noticed there are many processes created and they were all in sleeping status.
On the web server some of these proceses were dated to 2-3 days ago.
however on my local machine, same number of proceses are created but SQL server automatically kills theses processes in about 10 minutes interval. I noticed that on SQL profiler when 'Audit logout' executed.
this is not happening on the web server.
looking at the properties of the two sql server and security tab, the audit level is set to none fro both.
How can I fix the SQL server set up on the server so that I get these proceses cleaned up quickly?

Thanks in advance

Who is Participating?
derekkrommConnect With a Mentor Commented:
I think the first thing you need to do is make sure that your application is properly closing all connections it uses after they are finished.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.