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. .NET (Core and Framework)
  4. Database independent programming? (OLEDB or ODBC data Adaptor)

Database independent programming? (OLEDB or ODBC data Adaptor)

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasecsharpsql-serveroraclesysadmin
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.
  • S Offline
    S Offline
    Salil Khedkar
    wrote on last edited by
    #1

    .NET has OLEDB and ODBC Data Adaptors. But the documentation does not give enough information regarding which one among these two is suited for which purpose. I need to keep my program transparent to whether the client uses Oracle or SQL Server at the backend. Can some expert will throw light on this?

    C 1 Reply Last reply
    0
    • S Salil Khedkar

      .NET has OLEDB and ODBC Data Adaptors. But the documentation does not give enough information regarding which one among these two is suited for which purpose. I need to keep my program transparent to whether the client uses Oracle or SQL Server at the backend. Can some expert will throw light on this?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Salil Khedkar wrote: .NET has OLEDB and ODBC Data Adaptors. But the documentation does not give enough information regarding which one among these two is suited for which purpose ODBC is an older connectivity model and only exists for backwards compatibility. If all the databases you are connecting to support OLEDB then you should use that one. Salil Khedkar wrote: I need to keep my program transparent to whether the client uses Oracle or SQL Server at the backend The SQL supported by SQL Server and Oracle have some differences also - if the user is writing SQL in your app I don't see how you can keep things completely transparent. So, one way or another you will be writing slightly different SQL. IMHO, if the user is kept totally away from the database (no direct interaction) then my suggestion is to go for the specific SQL Server or Oracle data providers in the .NET Framework as you'll have to swap out the actual SQL commands anyway you might as well just optimise the whole by using the providers specific to the database.


      Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!

      S 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Salil Khedkar wrote: .NET has OLEDB and ODBC Data Adaptors. But the documentation does not give enough information regarding which one among these two is suited for which purpose ODBC is an older connectivity model and only exists for backwards compatibility. If all the databases you are connecting to support OLEDB then you should use that one. Salil Khedkar wrote: I need to keep my program transparent to whether the client uses Oracle or SQL Server at the backend The SQL supported by SQL Server and Oracle have some differences also - if the user is writing SQL in your app I don't see how you can keep things completely transparent. So, one way or another you will be writing slightly different SQL. IMHO, if the user is kept totally away from the database (no direct interaction) then my suggestion is to go for the specific SQL Server or Oracle data providers in the .NET Framework as you'll have to swap out the actual SQL commands anyway you might as well just optimise the whole by using the providers specific to the database.


        Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!

        S Offline
        S Offline
        Salil Khedkar
        wrote on last edited by
        #3

        Thanks Colin, these pointers will be helpful… :rose:

        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