SQL Server does not keep the connection open after a "close" command, maybe a second or two.
When you close a connection in .NET, it does NOT close the physical connection to the SQL Server. It RELEASES it to the connection pool for other .NET applications to reuse. This is a function of .NET connection pooling.
SQL Server is NOT refusing connections at 100, the .NET connection pool is defaults to 100 connections.
Please see this write up on .NET connection pooling. http://msdn.microsoft.com/en-us/library/aa175863(SQL.80).aspx
2. Does these processes affect the performance?
-- It will if you have left thousand connections open. Connections need resources.
3. Does killing this process would affect the application connectivity?
-- Web app doesn't close the connection after the work has been done.
2. Do the SQL work e.g. execute a stored procedure or select some data back.
No comments:
Post a Comment