|
-
November 26th, 2004, 10:20 PM
#1
VB.NET and SQL Server connection
HI,,,
I need a method to connect VB.NEt application to sql server2000? is bether to open the connection to sql in the begining and close the connection when my application finish? o is bether only when i need to realize some actualization to the data base? this involve open and close connection every time. and i have to write the sentence imports system.data.sqlclient in all files where i have to use declarations.
please help!!
-
November 29th, 2004, 08:34 AM
#2
Re: VB.NET and SQL Server connection
ADO.Net works in a disconnected manner. So wether you'll open your connection once the application is open or each time you use it it doesn't matter because ADO.net will handle the connection the same way : It will open a connection only when you fetch data and close it right after data is on the local computer.
Nicolas Bohemier
-
November 30th, 2004, 09:57 PM
#3
Re: VB.NET and SQL Server connection
thanks for your clarificacion Nicolas Bohemier
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
|