CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2004
    Posts
    20

    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!!

  2. #2
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    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

  3. #3
    Join Date
    Jul 2004
    Posts
    20

    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
  •  





Click Here to Expand Forum to Full Width

Featured