Sharing DB connection

T

Teemu Keiski

Hi,

why would you need to? Do you have some sort of transaction which should
last over multiple pages?

Anyways, connection pooling in .NET is one reason why you shouldn't try to
share connections, but instead use them so that open the conn late and close
as soon as possible and when you need a another conn, instantiate such when
needed.
 
K

Kevin Spencer

You should not. This is not your grandfather's ASP. ASP.Net uses Connection
Pooling to solve the problems that ASP had. With ASP.Net, you should open
and close Connections as quickly as possible.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top