I'm using an Asp.NET Web Application with MSSQL Server. In my page i open a connection and i close it at the end of page. But in Sql Analyzer the Sql session is still there, giving me after some amount of time a connection pool limits exceed error. Sessions are cleared only when i shutdown the webserver.
Can someone explain how to fix this? Thanks
This is the code i'm using:
Conn = new SqlConnection(StrConn);
Conn.Open();
.....
Conn.Close(); // In the debugger i can see connection state = closed
Conn = null;
Pooling=falseto the connection string. What happens?