Connection Pool error LINQ to SQL

Posted by Ved on Stack Overflow See other posts from Stack Overflow or by Ved
Published on 2010-04-28T17:20:32Z Indexed on 2010/04/28 17:23 UTC
Read the original article Hit count: 881

Filed under:
|
|

Guys,

In Our project I have used LINQ to SQL for every kind of database interaction. Now from what I know , When I create and use DataContext object : it opens the connection , crates a transaction , perform the query and closes the connection.

Every now and then we are getting Connection pool error on our services and Server.

" 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. "

Any idea ? Am I completely off here ? Is this related to SQL Server itself ?

We are using LINQ , .Net 3.5 and Sql Server 2008

NOTE: NO DATAREADER IS BEING USED ANYWHERE IN SYSTEM.

Thanks

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about sql