If you are using NET 2.0, and SQL Server or Oracle, perhaps something like this might help.
[TestFixture] public class SomeTests { ... [SetUp] public void Init() { SqlConnection.ClearAllPools( ); // or OracleConnection.ClearAllPools( ); } ... } Fernando Tubio ----- Original Message ----- From: "Andy Smith" <[EMAIL PROTECTED]> To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> Sent: Friday, February 16, 2007 5:33 PM Subject: [ADVANCED-DOTNET] Diable Connection Pooling for an Entire Process? Hi - I'm working with unit tests, and for a particular reason (won't bore you with the details, has to do with timing issues when killing connections during tests), I'd like to disable connection pooling for the entire process that the unit tests will run under. I know it's possible to set Pooling=false in the connection string, but that would entail a change to code that I'd rather avoid, since it only applies to when a unit test is running. Anyone know if it's possible to disable connection pooling for an entire process? Thanks! Andy =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com