I'm trying to use the ODBC interface in a C app under AIX without using
an ODBC manager. 

I managed to create a test application that compiles cleanly, but the
SQLConnect() call fails with

  OpenDB(): SQLConnect() failed, rc=-1
  LogSQLError(): sqlstate=[IM002] sqlcode=[0] 
            sqlmessage=[[SAP AG][LIBSQLOD SO] Data source 
            name not found and no default driver specified.]

I have been playing around with /var/spool/sql/config/odbc.ini, but
nothing I do seems to make a difference.  Does someone have a sample
odbc.ini file I can use as a guide?  

If I'm linking in the libsqlod.a library and not using an ODBC manager,
do I still need to configure odbc.ini?  What about odbcinst.ini?  Do I
need this file too?

Derek


-- 
Derek M. A. Lee-Wo
Email: (Home) [EMAIL PROTECTED]  (Work) [EMAIL PROTECTED]

    "Those who will not risk cannot win" - John Paul Jones
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to