473,772 Members | 3,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running out of Sql Connections

Hello:
We have a a two tier application connecting to sql server
through remoting. The business objects are single call objects. We are
opening and closing connections using ADO.NET command object. All
"ExecuteNonQuer y" are closed in finally blocks. We are running out of
sql connections because the profiler shows that connections are not
being released till the business service is stopped and restarted.
Does anyone have suggestions on how to fix this problem of the
connections not closing and why it may be happening?

Thanks a lot,
Han

Jul 23 '05 #1
1 3404
Hi

It is hard to say without seeing code what you are doing, but if you have an
implicit connection then the connection is not returned to the pool.
http://support.microsoft.com/default...b;en-us;191572

Using profiler or performance monitor you should be able to track
connections being used.

This may also happen to use up connections:
http://support.microsoft.com/default...b;en-us;235282

I found this which may be what is happening:
http://msdn.microsoft.com/library/de...singADONET.asp
Note Do not call Close or Dispose on a Connection, a DataReader, or any
other managed object in the Finalize method of your class. In a finalizer,
only release unmanaged resources that your class owns directly. If your
class does not own any unmanaged resources, do not include a Finalize method
in your class definition

John

<ha******@yahoo .com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello:
We have a a two tier application connecting to sql server
through remoting. The business objects are single call objects. We are
opening and closing connections using ADO.NET command object. All
"ExecuteNonQuer y" are closed in finally blocks. We are running out of
sql connections because the profiler shows that connections are not
being released till the business service is stopped and restarted.
Does anyone have suggestions on how to fix this problem of the
connections not closing and why it may be happening?

Thanks a lot,
Han

Jul 23 '05 #2

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

Similar topics

1
1279
by: big DWK | last post by:
Hi- We've got an ASP.Net web app that runs off a Microsoft SQL Server 2000 backend. After a few days the SQL server is completely out of memory and crawls. It looks like there could be some connections that aren't being closed or something. Is there a good way to figure out where the problem is. Looking at the current activity in Enterprise Manager there are a lot of threads sleeping and a few that are runnable. Any ideas? Thanks
9
3762
by: Matt Helm | last post by:
I am starting the design phase of a large project (ERP) where the backend will mostly be Python (or Ruby) providing web services. In this type of usage, is there any benenfit to running under Apache as opposed to a pure Python solution using Medusa, TwistedMatrix, or the like? Thanks, Matt
5
1983
by: Mrpush | last post by:
Hello, Have MS 2003 server with IIS 6.0 installed. ASP.net is also installed. Had to re-install the server after initial configuration by someone who left the company and now I cannot get the ASP pages to load. The files all existed in a NON-INETPUB folder and accessed a SQL database to pull information.
3
5472
by: wwwmike | last post by:
Problem: When my provider shuts down the SQL Server IIS receives a few error messages and then switches the site to 'SERVICE UNAVAILABLE'. Before IIS kills itself it is friendly enough to send me an error message. ****ERROR MESSAGE 1****** System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the...
0
931
by: =?Utf-8?B?Um9kcmlnbyBHYXJjw61h?= | last post by:
Hi. I make a LOT of webservice calls from a client application. After a bunch of calls, I have to change the ConnectionGroupName to simulate another different client. As the time passes I find a lot of contention (seen through the performance counter in LocksAndThreads) from the threads that make the calls. I wonder that it's a problem with the connections and that I'm running out of them. I have to use .NET 1.1 (I know that .NET 2.0...
1
2580
by: Octoryia | last post by:
Our company has an access front end database that is used by 30+ people all day, five days a week. The issues that we are running into include the database running extremely slow, not responding, and displaying ODBC failed call errors messages. We have the tables housed on the SQL server wich we thought permit nurmerous users to access the data at once. But this is not working. We are having issues with a single user with 9+ connections, or...
2
4887
by: Stephen2 | last post by:
I've written a small dos batch script that runs a simple query through osql and then calls an exe which sends an email if the returned value The query checks if a value in a column has not been updated for 5 mins and raises a warning through an email and it will need to run throughout the online day. Will there be any issues continually opening & closing connections in this way?
12
12846
by: Shadlan | last post by:
Hi. I need to know if a service is running on my server. Is there any PHP instruction that I can use to do this?
0
2910
by: Gordon | last post by:
On Oct 23, 9:43 am, Curtis <dye...@gmail.comwrote: if ($handle = fsockopen ('localhost', 80, $errnum, $errmsg, 1)) { echo ('A web server is running on this system<br>'); fclose ($handle); } else { echo ($errnum . ' ' . $errmsg . '<br>');
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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 we have to send another system

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.