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 / C++ / MFC
  4. migrate to different DBMS using ODBC?

migrate to different DBMS using ODBC?

Scheduled Pinned Locked Moved C / C++ / MFC
databasec++sql-serversysadminquestion
3 Posts 3 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.
  • M Offline
    M Offline
    Maverick
    wrote on last edited by
    #1

    Hello! I am developing a database program using Access DB.. Now im using MFC ODBC classes to connect to Access.. Now at some point, i need to connect to a MS SQL Server DB Can I do it with little code change or no code change, recompilation at all? Do I just supply a different driver/connection string and thats it!?!? Im just trying to clarify since ODBC is supposed to do that.. Haven't installed a SQL Server on a PC yet, but i wanna know in advance how ODBC really works...

    M B 2 Replies Last reply
    0
    • M Maverick

      Hello! I am developing a database program using Access DB.. Now im using MFC ODBC classes to connect to Access.. Now at some point, i need to connect to a MS SQL Server DB Can I do it with little code change or no code change, recompilation at all? Do I just supply a different driver/connection string and thats it!?!? Im just trying to clarify since ODBC is supposed to do that.. Haven't installed a SQL Server on a PC yet, but i wanna know in advance how ODBC really works...

      M Offline
      M Offline
      Marc Soleda
      wrote on last edited by
      #2

      The only think that you'd have to do is to install the ODBC implementation for SQL Server (usually comes with SQL Server installation), create the new DSN and change the connection string. Depending on the versions of the DBMS you'd have to take care of the SQL implementation that they use because some statements couldn't be supported: transactions, ... but I don't think you'll have these kind of problems migrating from Access to SQL Server (on the other way probably). Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

      1 Reply Last reply
      0
      • M Maverick

        Hello! I am developing a database program using Access DB.. Now im using MFC ODBC classes to connect to Access.. Now at some point, i need to connect to a MS SQL Server DB Can I do it with little code change or no code change, recompilation at all? Do I just supply a different driver/connection string and thats it!?!? Im just trying to clarify since ODBC is supposed to do that.. Haven't installed a SQL Server on a PC yet, but i wanna know in advance how ODBC really works...

        B Offline
        B Offline
        BlackDice
        wrote on last edited by
        #3

        Click on the link below to 'My Articles' and check out my QuickQuery project. I'm using ODBC, and so far, it's worked with every type of database I've had on my system. It may not be exactly what you want (I think it was the first or second program I ever made in C++), but I hope it can help you in some way. My articles www.stillwaterexpress.com BlackDice

        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