Solved

How to remove idle connections from SQL Server 2005

Posted on 2009-03-31
3
366 Views
Last Modified: 2012-05-06
I have a web application which connects through application server to a SQL SERVER 2005 database. The problem is that after users login to database ( through AppServer, not directly from the Web Site ) and after some time the exit Web Browser window without normal logout process, then there are a lot of connections in SQL Server and they must be dropped. Is there way or parameter to poll idle connections and kill from the SQL Server 2005 ? Thanks.
0
Comment
Question by:johnf23
3 Comments
 
LVL 21

Accepted Solution

by:
JestersGrind earned 500 total points
ID: 24028206
Check out this link:

http://www.sqlservercentral.com/scripts/Maintenance+and+Management/30082/

It show how to do exactly what you are suggesting.  You would just need to schedule a SQL job to run it on a regular basis.

Greg


0
 

Author Comment

by:johnf23
ID: 24036017
I will have a look on it and let you know
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

This article describes some very basic things about SQL Server filegroups.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

770 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