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. CDatabase's connect string

CDatabase's connect string

Scheduled Pinned Locked Moved C / C++ / MFC
databasesysadminquestion
5 Posts 4 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.
  • P Offline
    P Offline
    prithaa
    wrote on last edited by
    #1

    Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa

    D M S 3 Replies Last reply
    0
    • P prithaa

      Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa

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

      You can provide the connection information with either the CDatabase or the CRecordset object. A UNC path will be just fine.


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • P prithaa

        Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Also, connect strings can vary by driver. For example - Using Connection String Keywords with SQL Native Client[^]

        1 Reply Last reply
        0
        • P prithaa

          Hello, If I have to provide CDatabase class with the connect string which gives me access to a database at the server or a PC then what should be my connect string (CString )? What info about the PC on the internet should I have ex port address, IP address etc? Prithaa

          S Offline
          S Offline
          Sumesh V V
          wrote on last edited by
          #4

          I think you have to configure the proper ODBC first. And then provide the information in CDatabase::Open() function

          Known is a drop, unknown is an ocean

          P 1 Reply Last reply
          0
          • S Sumesh V V

            I think you have to configure the proper ODBC first. And then provide the information in CDatabase::Open() function

            Known is a drop, unknown is an ocean

            P Offline
            P Offline
            prithaa
            wrote on last edited by
            #5

            Hello, So while configuring ODBC I will have to give the info about the Server and the database Is it? Thanks for your reply.I will look into the detail of ODBC configuaration. Pritha

            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