I actually solved the porblem.  I was putting the file odbc.ini in the
wrong directory.  I had it in /var/spool/sql/config, but it needs to be
in /var/spool/sql/ini


On Fri, 28 Feb 2003 09:01:09 -0500, "Derek M. A. Lee-Wo"
<[EMAIL PROTECTED]> said:
> 
> 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
> 
-- 
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