I expect that when you're working with VS, the IDE "owns" the connections so
you need to end Visual Studio to get the connections to be released.
In ADO.NET 2.0 you can programmatically clear the pool.
However, that said, I question what you're doing that requires 70
connections! Most production applications I've seen use 2 to 4
connections--no more. If you aren't closing connections correctly, your
application is likely leaking connections...
See my article on using the connection pool on my site.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
www.sqlreportingservices.net
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Srinivas Kollipara" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all,
> I am wondering how to clear the connection pools from C# program, because
> my
> program everytime it runs , it needs 70 connections... so whenever my
> project fails i wanted to reset connection pools, or else after 3 to 4
> runs,
> i am getting an error "The timeout period elapsed prior to obtaining a
> connection from the pool. This may have occurred because all pooled
> connections were in use and max pool size was reached". then if i reboot
> it
> will be ok, i dont want to rebbot machine for this reason.. i heard a
> while
> back that this feature is included in .NET 2.0, can any one knows that it
> has that feature. can some one help me on this, how to do it.
>
> Thanks
> Srinivas
>
>