[unixODBC-support] How to make unixODBC recognize my ODBC driver?

Nick Gorham nick at lurcher.org
Sat Jul 18 12:21:35 BST 2009


Villa Forlan wrote:
> Hi everyone,
>
> I developed a simple ODBC driver. I named it libmyodbcdriver.so. It is 
> a light driver because it only supports a few ODBC functions which I 
> really need, not all of those whose names listed at MSDN ODBC 
> Programmer's Reference. I tested the driver by writing a C program 
> which calls ODBC functions from the driver, and then when building the 
> program I directly linked it to my driver libmyodbcdriver.so, and 
> everything worked fine.
>
> And now I want to integrate my driver with an ODBC Driver Manager, 
> such as unixODBC. I tried to register my driver with unixODBC via the 
> ODBCConfig GUI but I failed. It seems that I have to add something to 
> the library's code so that unixODBC can recognize it. Is there any 
> document or tutorial for this?
>
> Thanks in advance!
If you just want it to show in ODBCConfig just look at the setup libs in 
the distributions, for example libtdsS.so But to work with unixODBC all 
it need to do is export the ODBC functions. I would guess 
SQLAllocHandle, SQLSetEnv, SQLConnect SQLGetFunctions would be the first 
to check.

-- 
Nick


More information about the unixODBC-support mailing list