Solved

How to remove idle connections from SQL Server 2005

Posted on 2009-03-31
3
367 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC Question 3 49
compare between entities in entity framework 8 93
SQL query with cast 38 53
Software for Local History Museum Library 5 47
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…

856 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