473,386 Members | 1,630 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,386 software developers and data experts.

Timeout with SQLExpress

After I run the debugger awhile on the same app (change, run, change, run,
etc. ad nauseaum), I start getting timeout errors on connection. I'm
speculating that the connection pool is being used up at some point. I am
taking the obvious step of making sure connections are closed after they are
used, so I'm wondering if the garbage collector or the IDE is keeping
connections alive although I've closed them? Any way to check the number of
available connections or the "pool" count? Anything peculiar about
SQLExpress that might be causing this (I've always used SQL2000 in the past
and this is the first time I've seen a timeout issue)?
Feb 26 '07 #1
2 3738
If the pool is out of connections, you will get a message telling you this.
If it is just a timeout, it is something else. I've also never had an issue
with the IDE holding on to connections even if I forgot to close them. When
I stop debugging my executable, that process finishes, and any connections
it may have open are closed and those resources released.

"Earl" <br******@newsgroups.nospamwrote in message
news:OB*************@TK2MSFTNGP03.phx.gbl...
After I run the debugger awhile on the same app (change, run, change, run,
etc. ad nauseaum), I start getting timeout errors on connection. I'm
speculating that the connection pool is being used up at some point. I am
taking the obvious step of making sure connections are closed after they
are used, so I'm wondering if the garbage collector or the IDE is keeping
connections alive although I've closed them? Any way to check the number
of available connections or the "pool" count? Anything peculiar about
SQLExpress that might be causing this (I've always used SQL2000 in the
past and this is the first time I've seen a timeout issue)?

Feb 26 '07 #2
Chances are your pool won't run out of connections but it's possible that if
you're
blowing out of the program without closing the connection you could have so
many connections open that SQL Express runs low on memory and slows down
enough so connection time out. It could also be that you're single stepping
through logic so it's taking an unnaturally long time for operations to
complete so they time out. I sometime bump up the timeouts in the
connections string if I'm going to be debugging.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Marina Levit [MVP]" <ma*****@comcast.netwrote in message
news:pd******************************@comcast.com. ..
If the pool is out of connections, you will get a message telling you
this.
If it is just a timeout, it is something else. I've also never had an
issue with the IDE holding on to connections even if I forgot to close
them. When I stop debugging my executable, that process finishes, and any
connections it may have open are closed and those resources released.

"Earl" <br******@newsgroups.nospamwrote in message
news:OB*************@TK2MSFTNGP03.phx.gbl...
>After I run the debugger awhile on the same app (change, run, change,
run, etc. ad nauseaum), I start getting timeout errors on connection. I'm
speculating that the connection pool is being used up at some point. I am
taking the obvious step of making sure connections are closed after they
are used, so I'm wondering if the garbage collector or the IDE is keeping
connections alive although I've closed them? Any way to check the number
of available connections or the "pool" count? Anything peculiar about
SQLExpress that might be causing this (I've always used SQL2000 in the
past and this is the first time I've seen a timeout issue)?

Feb 26 '07 #3

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

Similar topics

3
by: andrewcw | last post by:
I am trying to use the NorthWind database or anything with SQLEXPRESS on VS 2005 RC. I can see SQLExpress started with the tool SQL Server Configuration Manager. But when i select DataBase | New...
4
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying...
2
by: Crash | last post by:
Windows XP MS SQLExpress VS 2003 ..NET 1.x SP1 {for Application} ..NET 2.0 {for SQLExpress} MS Enterprise Library June 2005 This works from a command prompt osql -E -S localhost\SQLEXPRESS
13
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current...
3
by: curious | last post by:
When I try to use ASP.NET Configuration under WebSite Menu I get the following error message: "An error was encountered. Please return to the previous page and try again." I am using a SQL...
4
by: Torben Laursen | last post by:
Hi I am trying to find find the sqlserver express that is running on my computer using: DataTable dtSQLServers = SmoApplication.EnumAvailableSqlServers(false); It returns one row that holds...
2
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, I am using System.Diagnostics,Process.Start to execute sqlcmd.exe the second parameter of the Start method is the arguements to pass to sqlcmd Because I am using SQLExpress the string...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.