473,473 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Web app leaving SQL database connections open

In an ASP.Net v2 web application that connects to a SQL 2005 database.
It appears that it is not closing the connections to the database and
leaves 100 db connections open and then the application can not open
any more connections.

Why is the database connections still active (sleeping in activity
monitor) despite the code closing the connection?

How can you enable application pooling for a web application?
Nov 20 '08 #1
2 2342

Are you using IDataReader's?

Are you CLOSING them?

"Robin9876" <ro*******@hotmail.comwrote in message
news:11**********************************@w34g2000 yqm.googlegroups.com...
In an ASP.Net v2 web application that connects to a SQL 2005 database.
It appears that it is not closing the connections to the database and
leaves 100 db connections open and then the application can not open
any more connections.

Why is the database connections still active (sleeping in activity
monitor) despite the code closing the connection?

How can you enable application pooling for a web application?

Nov 20 '08 #2
I doubt that it happens "despite the code closing the connection"
Most likely it happens because of lack of code that closes connection.
Show us the snippet of code where you work with DB.

PS: Pooling is enabled automatically, but connection needs to be closed to
become available for pooling.

George.
"Robin9876" <ro*******@hotmail.comwrote in message
news:11**********************************@w34g2000 yqm.googlegroups.com...
In an ASP.Net v2 web application that connects to a SQL 2005 database.
It appears that it is not closing the connections to the database and
leaves 100 db connections open and then the application can not open
any more connections.

Why is the database connections still active (sleeping in activity
monitor) despite the code closing the connection?

How can you enable application pooling for a web application?
Nov 20 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50...
2
by: Bryan | last post by:
Hello, I'm just starting to develop in asp.net and i have a question about using a database connection globally in my app. I have set up the procedures for getting all my connection string info...
3
by: Catadmin | last post by:
Hello, Everyone. I have a strange one here. I'm a DBA with relatively low program experience. Recently I was given an assignment to locate why our SQL Server has "orphaned" connections. The...
1
by: Shawn H. Mesiatowsky | last post by:
I am writing a web app that is very Database intensive.. I have to open and close db connections all over the place. I was wondering if there is any reason not to open the db connection in the...
14
by: Nick Gilbert | last post by:
Hi, I have an asp.net application which runs from a CD-ROM using Cassini. As such, it is single user only. The application connects to an Access database when it is loaded, and keeps the same...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
4
by: Sierra | last post by:
Problem: Database connections are not being reused properly. SP_WHO2 shows upwards of 200 connections being created per page request. Most connections exist for 60 seconds then close without...
5
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.