Results 1 to 3 of 3

Thread: [2003]Differentiate ODBC , OLEDB and SQL

  1. #1

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    [2003]Differentiate ODBC , OLEDB and SQL

    May i know the different between this three type of database connection component ?

    Anyone can gv me the comparison, advantages , pros and cons :-)

    What certain condition to use it ?
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2003]Differentiate ODBC , OLEDB and SQL

    SqlClient is for SQL Server only and is more efficient than other providers when accessing SQL Server because it was written specifically for it and hooks in at a lower level. OleDb is for any data source that has an OLEDB provider, while OdbcClient is for any data source that has an ODBC driver.

    You should always use the most specific ADO.NET provider that you can because that will lead to maximum efficiency. You should always use SqlClient for SQL Server unless you have a specific reason not to. Other databases have specific ADO.NET providers too, like Oracle and MySQL, and you should use them if you can. If you do not have access to a provider that is specific to your data source then you next choice should be OleDb. That's what is always used for Access via the Microsoft Jet OLEDB provider. If there is no other option then you should use OdbcClient, which is the lowest common denominator, with the ODBC driver for your data source.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    Re: [2003]Differentiate ODBC , OLEDB and SQL

    Thanks jmcilhinney which as cute as knut ...

    but --> You must spread some Reputation around before giving it to jmcilhinney again.
    can't gv you reputation anymore >.<

    Thanks a lot to solve my confusion against it :=) u r kind and cute
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

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