PC Review


Reply
Thread Tools Rate Thread

Connection Pooling Problem...

 
 
iac
Guest
Posts: n/a
 
      31st Aug 2004
I am trying to write a Windows Service which does the
following whenever the SQLServer it is connected to
suddenly goes down:

It periodically checks to see if it can connect to the
database, if it succeeds the application then carries on
as normal.

The problem is, my application makes use of connection
pooling, and when it tries to reconnect to the SQLServer
it seems to refer to a disconnected connection in the
connection pool and raises and general network error even
through the server is definitely running. Now I've
noticed that if I set "Pooling=False" in the connection
string, then this solves the problem but its not practical
for me to disable pooling for the entire application.

Does anyone have any ideas? Is there a way to flush the
entire connection pool?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connection pooling problem =?Utf-8?B?RGFuIEQu?= Microsoft Dot NET 2 4th Jun 2006 07:42 PM
Connection pooling problem PH Microsoft C# .NET 2 19th Mar 2006 12:16 AM
Problem with connection pooling. Sam Microsoft C# .NET 0 22nd Aug 2005 06:21 PM
Connection Pooling Problem Elroyskimms Microsoft ADO .NET 3 22nd Mar 2005 05:01 PM
Connection Pooling problem in .NET v1.1 Jerry Hu Microsoft ADO .NET 3 14th Nov 2003 10:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 PM.