|
-
Jul 22nd, 2004, 08:31 PM
#1
Thread Starter
Frenzied Member
Is this bad? sqlConnection and command [RESOLVED]
I declared a public SqlConnection and SqlCommand in a module and made it public. I re-use those throughout the life of the app and simply open and close as necessary the connection object and change the command.commandText property as needed. Is that better or worse or the same as going through that process time and time again for each function/sub that may need it?
Last edited by Andy; Aug 13th, 2004 at 11:55 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|