Connection pooling works based on a unique connection string, each one
defining a pool. So in this case, you would simply use a different connection
string with "pooling=off" in it.
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
"TheSteph" wrote:
> Hi,
>
> (using C#, VS2005, .NET 2.0.)
>
>
>
> I sometimes need to access my database (SQL Server) in SINGLE_USER mode.
>
>
>
> That works fine but after a few minutes the connection pooling seems to
> automatically free the connection to the server, and doing so other computer
> can connect to the database and "steal the Single User session".
>
>
>
> Here is my question : How can I force connection pooling to keep at least
> one connection open ? (that will prevent other computer to "steal" the
> single user session)
>
> Thanks for your help !
>
> Steph.
>
>
>