"ChrisM" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
| I'm no expert, so don't quote me on this... :-)
Yes, we are all learning...; and how ! :-)
| That is if you have 100 users that are making infrequent calls to the
| database then you'd be better off opening and closing connections as
| required.
That is what I had planned on doing, but I understood that connection
pooling required you to not only open/close the connection but to
create/open/close/dispose it on every call.
I am reall trying to find out if creating a connection, and keeping the
connection alive but not necessarily opening/closing it until required, only
disposing it when the app closes, is a "proper" way to use a connection.
If I can keep the connection alive, but not necessarily open, for the length
of program execution (all day), then I could prepare commands and keep them
in a cache to save execution time there.
Joanna
--
Joanna Carter [TeamB]
Consultant Software Engineer