Menu

Unable to add/configure DSN for odbc driver programatically using SQLConfigDataSource api on linux

Help
2013-09-10
2013-09-10
  • ameybarve15

    ameybarve15 - 2013-09-10

    Unable to add/configure DSN for odbc driver using SQLConfigDataSource(). I get this error [sqlodbcInstaller.cpp][383][ERROR] ODBC Installer error 1: General installer error [sqlodbcInstaller.cpp][384][ERROR] Failed to Configure DSN.

    I am calling it like:
    SQLConfigDataSource(NULL,ODBC_ADD_DSN, "ODBCDriver",
    "DSN=ODBC Data Source\0"
    "Description=New ODBC Data Source\0"
    "SERVER=localhost\0");

     

    Last edit: ameybarve15 2013-09-10
  • Nick Gorham

    Nick Gorham - 2013-09-10

    Hi.

    Assuming SQLInstallerError doesn't return anything informative, the most likely reason is one of:

    1. The "SQLFire Network Client 1.0" entry in odbcinst.ini does not have a Setup lib entry.

    2. The setup lib for "SQLFire Network Client 1.0" doesnt load for some libtool reason

    3. The setup lib for "SQLFire Network Client 1.0" doesnt export ConfigDSN() or ConfigDSNW()

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.