Is is better to:
(1) Have a single connection object in a database class which is
instantiated when first used at start-up and used by other classes (opened
and closed as necessary - NOT kept open).
(2) Local variable connections created in the function in which they are
used (and maybe reference the connectionstring in the database class)?
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----