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. How to use the c++ to connect sql server 2005?

How to use the c++ to connect sql server 2005?

Scheduled Pinned Locked Moved C / C++ / MFC
databasetutorialcsharpc++sql-server
5 Posts 4 Posters 1 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.
  • Y Offline
    Y Offline
    yu jian
    wrote on last edited by
    #1

    When in the .net platform, it is easy to operate database, but when in the unmanaged c++, how to operate the sql server 2005? Can someone give me a example link?

    L A 2 Replies Last reply
    0
    • Y yu jian

      When in the .net platform, it is easy to operate database, but when in the unmanaged c++, how to operate the sql server 2005? Can someone give me a example link?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Google has plenty of samples[^].

      Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

      J 1 Reply Last reply
      0
      • L Lost User

        Google has plenty of samples[^].

        Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

        J Offline
        J Offline
        JosephvObrien
        wrote on last edited by
        #3

        you can connect your table to display in data format to make possible for it. So Sql(Sequence query language) to use,we do in edit,delete and update our data into the table.

        L 1 Reply Last reply
        0
        • J JosephvObrien

          you can connect your table to display in data format to make possible for it. So Sql(Sequence query language) to use,we do in edit,delete and update our data into the table.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I think the OP would be more interested in this information.

          Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

          1 Reply Last reply
          0
          • Y yu jian

            When in the .net platform, it is easy to operate database, but when in the unmanaged c++, how to operate the sql server 2005? Can someone give me a example link?

            A Offline
            A Offline
            Aescleal
            wrote on last edited by
            #5

            As well as Richard's link if you do a search for ODBC you'll find (IMHO) the best interface to use databases through while programming in C or C++. While there are other methods to plug into databases ODBC has the advantage of being portable at both ends of the connection - so your C++ code can use any RDBS that has an ODBC connector AND your C++ code can be compiled on another compiler or operating system. And instead of a concrete link I'd like to recommend a very good book - "Inside ODBC" by Kyle Geiger - instead. It's out of print but you can pick up cheap second hand copies on Amazon marketplace [1]. It's well worth a read and got me started on the rocky road to being an informed C++ DB programmer. Cheers, Ash [1] At least you could 20 minutes ago when I recommended it as part of an answer to another question. I might have caused a run on them.

            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