Quote:> Is it a good practice to open and close an ADO connection for each
> select/Insert/Update statements? Or I should reuse the connection for
every
> select/Insert/Update statements?
> > Is it a good practice to open and close an ADO connection for each
> > select/Insert/Update statements? Or I should reuse the connection for
> every
> > select/Insert/Update statements?
For component development, this is the way to go. I can not remember ever
using a connection object in a component since i've always used a connection
string to open my recordsets directly.
HTH,
Evert
--
=======================================
My email address has been altered to
avoid unwanted email.
Replies to the newsgroup only, please.
Thanks,
Evert Timmer:
Transworld Software
VC++, VB6, SQL Server Database Solutions
http://www.transworld-software.com (under construction)
=======================================
Quote:> Is it a good practice to open and close an ADO connection for each
> select/Insert/Update statements? Or I should reuse the connection for
every
> select/Insert/Update statements?
1. Does ADO Connection.Close ,Closes all open Recordsets
Hai All
What i want is,Do i have to
Close each and every recordset explicitly in a database application.
Or
Connection.CLose takes care of this
I am bored of typing
rs.close
set rs=Nothing
Regards
Prakash
2. Multiple parameters to stored proc
3. When I should open connection and close connection?
5. SQL Server connections not closing when Access connection also open
6. MDI/Data Environment Ignorance
7. client does not close connection - too many open connections
9. SQL Server connections not closing when Access connection also open
10. Connection::Close doesn't actually close connection?
11. Open Transaction and Closed Connection
12. Open and Close Connection?
13. Open transaction and closed connection