473,325 Members | 2,771 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,325 software developers and data experts.

sql POOL Error.

Lal
Hello,

I am using VB.net & sql2000 for developing some s/w. I am open the
connection and close that after using. but after continuous using the
following error is coming

how can I avoid this error please help me..

I am sending the code also

Publicc Sub FillCombo(ByVal SQLCombo As String, ByVal CBox As
Windows.Forms.ComboBox, ByVal ConString As String)
Dim CON As New SqlClient.SqlConnection()
CON.ConnectionString = ConString
CON.Open()

Dim COM As SqlClient.SqlCommand
COM = New SqlClient.SqlCommand()
COM.Connection = CON
COM.CommandType = CommandType.Text
COM.CommandText = SQLCombo
Dim DR As SqlClient.SqlDataReader
DR = COM.ExecuteReader()
CBox.Items.Clear()
CBox.Items.Add("")
CBox.DropDownStyle = Windows.Forms.ComboBoxStyle.DropDownList
While (DR.Read())
CBox.Items.Add(DR(0))
End While
CBox.SelectedIndex = 0
DR.Close()
CON.Close()
End Sub

This is how we are calling the functions.

SQL = "SELECT Country FROM CountryMaster ORDER BY Country"
Dim DB As New Scriptings.Databases()
DB.FillCombo(SQL, cboCountry, ConnectionString & 1)
DB = Nothing
ERROR IS

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.data.dll

Additional information: Timeout expired. The timeout period elapsed prior
to obtaining a connection from the pool. This may have occurred because all
pooled connections were in use and max pool size was reached.

Regards

Lal
Nov 21 '05 #1
1 1228
Lal,

In the case of the Connection is adviced to use the "dispose" instead of
"close" in version 2002/2003. It seems that there is some overloading for
the connectionpooling inside that.

I hope this helps?

Cor
Nov 21 '05 #2

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

Similar topics

0
by: HiChetu | last post by:
hi All, Connection Pool - Does not check for Server Status. Here is the scenario : 1) SQL Server is up 2) Create a connection pool for a particular connection string by repeatedly...
0
by: Freebase | last post by:
Something changed recently on our W2K SP4 machine when we installed INTERSOLV ODBC software... the following script just opens a connection to an MS-Access DB, gets a record then tears down the...
4
by: Srinivas Kollipara | last post by:
Hi, in my C# project it uses 24 sql connections, i am clearing all the conncetions whenever an error occurs and when i see in the performance monitor for that pool i can still see all those 24...
8
by: ra294 | last post by:
I have an ASP.net application using SQL Server 2000 that every once in a while I am getting this error: "System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to...
2
by: Brian | last post by:
Hello, I'm having a recurring error whenever I try to debug a asp.net web page is retrieving data from a SQL server. The error msg is: "Timeout expired. The timeout period elapsed prior to...
2
by: JoeSep | last post by:
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows...
2
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have 2 web servers on which I am running a .net version 2 application, both of which I want to use an application pool with the same domain user's id and password to tighten security. I have...
5
by: mackenzie | last post by:
Hello, I am looking for a little bit of help. I am trying to create a dynamically allocated object which contains one or more objects of type boost::pool<>. I get a compiler error when an object...
1
by: jobs | last post by:
Re: Troubleshooting Timeout expired. All pooled connections were in use and max pool size was reached. New webservers. win2003. IIS6. asp.net 2.0/ sql server 2005 and Oracle 9i through a 64 bit...
2
by: anumsajeel | last post by:
Hi, Error Message:- error connecting: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.