Issue while using ODBC drivers in C++ program

Discussion in 'C++' started by SRK, Apr 20, 2010.

  1. SRK

    SRK Guest

    Hi,
    I am trying to use ODBC on Unix platform. I have installed unixODBC
    driver manager and mysql connector. When I try to use through command
    line, unixODBC driver manager works fine, but when I write a code in C+
    + and try to run, it gives me connection error -

    [unixODBC][Driver Manager]Data source name not found, and no default
    driver specified

    I have my .odbc.ini file in my home directory and I have even set
    ODBCINI pointing to the .odbc.ini file, but still I am getting this
    error.

    Will greatly appriciate any reply on the same.

    Thanks
    Shiv
     
    SRK, Apr 20, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JeffP@Laptop

    dBase VFP OleDb or ODBC Drivers

    JeffP@Laptop, Jan 25, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,778
    JeffP@Laptop
    Jan 25, 2006
  2. Ken North
    Replies:
    0
    Views:
    426
    Ken North
    Apr 17, 2004
  3. paul tomlinson
    Replies:
    2
    Views:
    163
    Peter James
    Jul 1, 2003
  4. Mark Sargent
    Replies:
    2
    Views:
    199
    Aaron Bertrand [MVP]
    Dec 7, 2003
  5. BrianS
    Replies:
    7
    Views:
    244
    BrianS
    Jan 8, 2004
Loading...

Share This Page