Derek M. A. Lee-Wo wrote:
DB2 uses the ODBC API as it's CLI, just like SAPDB.  I can link in both
the DB2 libs and SAPDB libs, but I can't call the SAPDB SQLXXXX
functions, the DB2 ones always get invoke.

I am linking both DB2 and SAPDB lib statically

Is there a lower level API that I can possibly use where the names
wouldn't clash with the DB2 names, e.g, something like
"SAPDB_SQLConnect()" for example.

There isn't. Well ,there are several, but none that is documented and fit for public consumption.

If not, any suggestions as to how I can use both DB2 and SAPDB in the same application where they both have the same ODBC API functions.

- unixODBC is probably the easiest
- recompile the SAP DB ODBC driver by adding #defines to rename the public functions
- don't link static but use the shared object instead. There are functions to get function pointers by name from a shared object


Daniel Dittmar

--
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org


_______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to