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. Need help with ODBC databases interfacing with C++.

Need help with ODBC databases interfacing with C++.

Scheduled Pinned Locked Moved C / C++ / MFC
databasec++sql-serversysadmin
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.
  • S Offline
    S Offline
    silot
    wrote on last edited by
    #1

    Hello everybody.I am new in this forum.I would like to know how to connect to an SQL server 2000 database by using C++ using ODBC. I have found a way of connecting to the database by using the AppWizard but i want to know if there is another way also. The second question i would like to ask is how to connect to an ODBC sql server 2000 database by using the C language and not C++. I would be grateful to anyone who can help me. Thank you. A.K.Silot

    R D 2 Replies Last reply
    0
    • S silot

      Hello everybody.I am new in this forum.I would like to know how to connect to an SQL server 2000 database by using C++ using ODBC. I have found a way of connecting to the database by using the AppWizard but i want to know if there is another way also. The second question i would like to ask is how to connect to an ODBC sql server 2000 database by using the C language and not C++. I would be grateful to anyone who can help me. Thank you. A.K.Silot

      R Offline
      R Offline
      Rustamyan
      wrote on last edited by
      #2

      It's very simple just try to find in the books, e.g Kruglinski. Get the spirit if tomorrow

      1 Reply Last reply
      0
      • S silot

        Hello everybody.I am new in this forum.I would like to know how to connect to an SQL server 2000 database by using C++ using ODBC. I have found a way of connecting to the database by using the AppWizard but i want to know if there is another way also. The second question i would like to ask is how to connect to an ODBC sql server 2000 database by using the C language and not C++. I would be grateful to anyone who can help me. Thank you. A.K.Silot

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        First you'll need to create a DSN. Check out Administrative Tools --> Data Sources (ODBC). Then your code can use that DSN to communicate with the database.


        "Take only what you need and leave the land as you found it." - Native American Proverb

        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