Re: Connection Pooling

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 04/30/04


Date: Fri, 30 Apr 2004 09:03:21 -0400

It might be. One option is to turn off connection pooling for this piece of
the app. Since all connections have to be killed anyway, you can do
something like this
http://www.knowdotnet.com/articles/killallconnections.html to kill all the
active connections. then you'll know for sure if it's your app or not and
if it is, turn off pooling temporarily...

HTH,

Bill

"John" <anonymous@discussions.microsoft.com> wrote in message
news:CD9C3DBE-570B-4F76-AD82-0A334C427193@microsoft.com...
>
> Hi All,
>
> I have a single-threaded WinForms app which uses SQL Server 2000 as its
database.
> Part of the app is a 'Restore from Backup' form which uses SQLDMO code. I
keep getting
> errors telling me that there are other connections open - therefore the
restore can't go ahead.
> I used sp_who to check connections during code step-through and it's true.
However, any
> connections made in the app have been closed at that stage.
>
> I'm starting to think it's to do with connection pooling because the open
connection(s) disappear
> when the app closes. I've looked around for code examples to implement
some of the
> key/value properties for ConnectionStrings, but this has been fruitless.
>
> Has anyone got any other ideas?
>
> Thanks!
>
> John
>
>
>
>
>



Relevant Pages

  • Re: ADO Connections - close them or keep them open?
    ... N-Tier Applications. ... VB - global to all the forms that the user might call up in the app - I ... you likely will run out of connections quickly and requests will start ... Yes Access connectivity to a SQL Server DB can be downright crippling. ...
    (microsoft.public.sqlserver.server)
  • Re: .net IDE Shuts Down during a build
    ... I did not get to try your solution coz .. ... Shut down the IDE ... Then envoke the web app from the browser, then open the IDE, then ... > which you can re-enable the network connections and the IDE seems to be OK ...
    (microsoft.public.vsnet.ide)
  • Re: Tomcat cant connect to MySQL
    ... rarely, the app is able to recover, and if all connections have leaked, ... MySQL is still running because other apps can hit the same ... Tomcat & Apache are both still running ...
    (comp.lang.java.programmer)
  • Re: Created on Access 2003, but.......................
    ... The database is read by the users of it via ASP web pages. ... host allows for both types of connections. ... The app just has to make sure that it doesn't bring over any extraneous data, as any client-server app should do. ...
    (comp.databases.ms-access)
  • Re: High CPU usage
    ... There were about 4 app servers connecting to database in 9i. ... more connections. ... servers which is around 160 but still we are facing high cpu usage. ...
    (comp.databases.oracle.server)