473,396 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

sql server connection pooling

Hi,
I has a web application which execute lots of query and store procedure
from the sql server 2000. I want to have a central controlled connection
pool so as to all the connection will get the connection from this pool and
return to this pool. How can i do this. Is there any article recommended?

Appreciate in advance!
Nov 16 '05 #1
3 3613
By the way, i am using ASP.Net and C#.

"Green" <so*****@yahoo.com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
Hi,
I has a web application which execute lots of query and store procedure
from the sql server 2000. I want to have a central controlled connection
pool so as to all the connection will get the connection from this pool and return to this pool. How can i do this. Is there any article recommended?

Appreciate in advance!

Nov 16 '05 #2
The SQL Data Provider in .NET has built-in pooling functionality for
you to use.

See:
http://msdn.microsoft.com/library/de...taprovider.asp

--
Scott
http://www.OdeToCode.com

On Mon, 20 Sep 2004 15:25:33 -0400, "Green" <so*****@yahoo.com> wrote:
Hi,
I has a web application which execute lots of query and store procedure
from the sql server 2000. I want to have a central controlled connection
pool so as to all the connection will get the connection from this pool and
return to this pool. How can i do this. Is there any article recommended?

Appreciate in advance!


Nov 16 '05 #3
Green <so*****@yahoo.com> wrote:
I has a web application which execute lots of query and store procedure
from the sql server 2000. I want to have a central controlled connection
pool so as to all the connection will get the connection from this pool and
return to this pool. How can i do this. Is there any article recommended?


You don't need to do anything special in your own code - just create
new instances of SqlConnection and call Dispose as soon as you've
finished with them (the using statement is handy here) - the data
provider will do appropriate pooling.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4

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

Similar topics

5
by: Florin | last post by:
Hi, I am experiencing some problems accessing an Oracle database through OLE DB from an MTS application using OpenWithServiceComponents (which is supposed to give me connection pooling). When I...
1
by: rob | last post by:
Hello, Newbie of sorts. Been reading up on best practices though. I'm trying to optimize performance to the SQL DB vs. the Web server and an ASP application. I've read that you're supposed to...
6
by: Mark | last post by:
Where is the connection pooling done when using ADO.NET and SQL Server? On the SQL Server or where the .NET run-time is being executed? I'm assuming on SQL Server as this would minimize the...
1
by: Vb2Machines | last post by:
Hello, I am in the process of building a web service that will connect to my sql server for data retrieval only. It will have to handle requests from multiple apps on our shop floor. Roughly 5...
6
by: John J. Hughes II | last post by:
I have an application that connects to an SQL server. I need to be able to disconnect all connection that I opened. I am closing and disposing the connection but the connection pool is keeping...
1
by: Lenny Shprekher | last post by:
Hi, I am getting issues that Oracle collecting opened sessions (connections) from my webservice using regular System.Data.OleDb.OleDbConnection object. I am guessing that this is connection...
7
by: Mrinal Kamboj | last post by:
Hi , I am using OracleConnection object from Oracle ODP.net provider and following is the behaviour which i am finding bit strange : To start with my argument is based on followings facts : ...
9
by: fniles | last post by:
I am using VB.NET 2003 and SQL 2005. To use connection pooling and avoid the error "There is already an open DataReader associated with this Connection which must be closed first." , I understand...
0
viswarajan
by: viswarajan | last post by:
Introduction This article is to go in deep in dome key features in the ADO.NET 2 which was shipped with VS 2005. In this article I will go trough one of the key features which is the Connection...
3
by: =?Utf-8?B?QXho?= | last post by:
Is there a limitation on the number of (sequential) opened connection for SQL Server User Instances? The following method will run to about the 240th iteration then will receive a timeout...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...

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.