?
Solved

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

Posted on 2007-07-26
1
Medium Priority
?
2,323 Views
Last Modified: 2012-05-05
Hi,

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

0
Comment
Question by:shmz
1 Comment
 
LVL 15

Accepted Solution

by:
derekkromm earned 1000 total points
ID: 19580054
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question