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. Database & SysAdmin
  3. Database
  4. connecting to the data source

connecting to the data source

Scheduled Pinned Locked Moved Database
questionc++help
6 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.
  • C Offline
    C Offline
    Civic06
    wrote on last edited by
    #1

    I have a VC++ application when executed gives the following message "[Microsoft][ODBC Microsoft Acess Driver]'(unknown)'". How do I fix this?

    D 1 Reply Last reply
    0
    • C Civic06

      I have a VC++ application when executed gives the following message "[Microsoft][ODBC Microsoft Acess Driver]'(unknown)'". How do I fix this?

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

      Looks like your ODBC connection string may be incorrect. What is it set to?


      Affordable and reliable hosting? Click here!

      C 1 Reply Last reply
      0
      • D David Salter

        Looks like your ODBC connection string may be incorrect. What is it set to?


        Affordable and reliable hosting? Click here!

        C Offline
        C Offline
        Civic06
        wrote on last edited by
        #3

        below is the part where it tries to connect to the data source...and fails to connect nConnect = SQLDriverConnect( m_hDBC, NULL, psvSource, SQL_NTS, szConnectOutput, sizeof(szConnectOutput), &nResult, SQL_DRIVER_NOPROMPT);

        D 1 Reply Last reply
        0
        • C Civic06

          below is the part where it tries to connect to the data source...and fails to connect nConnect = SQLDriverConnect( m_hDBC, NULL, psvSource, SQL_NTS, szConnectOutput, sizeof(szConnectOutput), &nResult, SQL_DRIVER_NOPROMPT);

          D Offline
          D Offline
          David Salter
          wrote on last edited by
          #4

          That looks OK. What is psvSource set to?


          Affordable and reliable hosting? Click here!

          C 1 Reply Last reply
          0
          • D David Salter

            That looks OK. What is psvSource set to?


            Affordable and reliable hosting? Click here!

            C Offline
            C Offline
            Civic06
            wrote on last edited by
            #5

            _TUCHAR *psvSource=new _TUCHAR[ strlen( svSource )+1 ]; It is really weird. I've also checked in the control panel to see if the MS Access driver was listed as a data source. May be i can email you the files? I am new to this site. Is there a way to attach the files on this site so u don't have to give your email address to me?

            D 1 Reply Last reply
            0
            • C Civic06

              _TUCHAR *psvSource=new _TUCHAR[ strlen( svSource )+1 ]; It is really weird. I've also checked in the control panel to see if the MS Access driver was listed as a data source. May be i can email you the files? I am new to this site. Is there a way to attach the files on this site so u don't have to give your email address to me?

              D Offline
              D Offline
              David Salter
              wrote on last edited by
              #6

              psvSource needs to be set to a DSN that you have registered in ODBC administrator. If you haven't specified one, that is probablky why you can't connect.


              Database FAQ

              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