I am fairly new to VB-SQL Server programming.
Exactly how resource intensive is opening and closing a connection VERSUS keeping connections open longer in order to do several recordset-related tasks before closing the connection.
I ask because I know in general tech-books say to minimize the connections you have open on the server at any given time. Any usually code examples open and close the connection within a single routine. Does this mean that opening and closing connections is considered low overhead and you should do it at the lowest level possible in your code?
Thanks
Brandon
Exactly how resource intensive is opening and closing a connection VERSUS keeping connections open longer in order to do several recordset-related tasks before closing the connection.
I ask because I know in general tech-books say to minimize the connections you have open on the server at any given time. Any usually code examples open and close the connection within a single routine. Does this mean that opening and closing connections is considered low overhead and you should do it at the lowest level possible in your code?
Thanks
Brandon