Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. So Many ADO Data Providers Which Should I Use?

So Many ADO Data Providers Which Should I Use?

Scheduled Pinned Locked Moved C#
databasetutorialquestionlearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    redfish34
    wrote on last edited by
    #1

    I am coming from VB6. I looked up NET database examples for MS Access and find there are several ways to do the same thing. I saw one example use a OleDb provider, one used a ADO provider, and one used a SqlClient. My quesiton is- what should i be learning? Which should i use? What do most programmers use? My program philosophy is KISS. I think OleDb provides generic access? But i am not sure. Some advice from experienced programmers would be helpful.

    N 1 Reply Last reply
    0
    • R redfish34

      I am coming from VB6. I looked up NET database examples for MS Access and find there are several ways to do the same thing. I saw one example use a OleDb provider, one used a ADO provider, and one used a SqlClient. My quesiton is- what should i be learning? Which should i use? What do most programmers use? My program philosophy is KISS. I think OleDb provides generic access? But i am not sure. Some advice from experienced programmers would be helpful.

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello Depending on which database you are building you should choose the data provider. The data provider actually is nothing but a mediator between the real DBMS and you .Net code. So if you are using/accessing an Access DB then OLEDb is best for you. OTOH if you want to make SQL server database for sure you'd use SQLDb provider. for Oracle and other ODBC engines ODBC provider is intuitively your choice. Was that what you were asking for? And what is KISS BTW?

      Regards:rose:

      R 1 Reply Last reply
      0
      • N Nader Elshehabi

        Hello Depending on which database you are building you should choose the data provider. The data provider actually is nothing but a mediator between the real DBMS and you .Net code. So if you are using/accessing an Access DB then OLEDb is best for you. OTOH if you want to make SQL server database for sure you'd use SQLDb provider. for Oracle and other ODBC engines ODBC provider is intuitively your choice. Was that what you were asking for? And what is KISS BTW?

        Regards:rose:

        R Offline
        R Offline
        redfish34
        wrote on last edited by
        #3

        Sorry, i forgot about all the non-english speakers on this forum. KISS stands for Keep It Simple. I am not a programmer who always reaches for the latest technology to solve a problem because often the technologies are not mature and have many undocumented problems. I learned that ADO from VB6 is supported in NET for backward compatibility. That was confusing me. I now understand that OleDb is the choice to use for NET.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups