Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Connection Pooling

Author  Topic 

nice123ej
Starting Member

48 Posts

Posted - 2009-12-01 : 19:50:33
Hi

I want to know which is better in .Net Web App

a- To Open SQL connection when needed and close immediately after get results. (a single user may open more than 200 connection per session but all will close immediately after returning the results. imagine for 1000 user)

b- Open SQL Connection, Keep it open and store it in a session so we can use the same connection again and again. (a single user will keep just 1 connection open for the session but it will remain open for long time. imagine for 1000 user)

so where to go (a) or (b) and why?

Thanks
   

- Advertisement -