views:

11

answers:

1

I am having a near critical issue with my app using SqlClient against a MS SQL server.

The problem is that the SQL server is clustered in a Failover Cluster. If one of the nodes fails or the other node is made active, it seems like the connectionpool is still connected to the old server.

The result is that I get exceptions as that node is probably either offline or has turned off all rights for all users to prevent access (dont know how the system does it).

A system tech gave me the idea that the connectionpool could be an issue as they had solved similar problems with webapps by doing a IISRESET which you should not do in a 100% uptime environment as my app is a part of.

So. Does anyone know how to reset or restart the connectionpool so that it reconnects to the right server? (the active server)

(unsure if the question is a duplicate. pressed post but nothing happened)

+2  A: 

You could take a look at the ClearAllPools static method.

Darin Dimitrov
Thanks. That seems to be the one i am after.
Wolf5