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!!
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.
Re: VB.NET and SQL Server connection
thanks for your clarificacion Nicolas Bohemier