Hello friends,
I have a website with pages having GridView in it. I am using SQL Data Source control to bind with the GridView. After running the site i am checking the no of active connections with SQL Server using -
SELECT db_name(dbid) as DatabaseName, count(dbid) as NoOfConnections, loginame as LoginName FROM sys.sysprocesses WHERE dbid > 0 GROUP BY dbid, loginame
I found that even after exiting my web application the connections remains open. So is there any way to close these connections. This is very important for me because as the number of users increases the no. of active connections are also increasing causing the sql server max pool issue. Although i have increased the user connections on sql server but i need the solution to explicitly close those connections as soon as user logs off.
Thanks for sharing your valuable time.