Solved

How to remove idle connections from SQL Server 2005

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Database restore 8 68
SQL Agent Timeout 5 39
Grid querry results 41 56
get most recent and second most recent date in SQL Server 24 46
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now