[unixODBC-support] [unixODBC][Driver Manager]Function sequence error
nick at lurcher.org
Sun Sep 15 17:07:09 BST 2013
On 15/09/13 15:15, Volker Wysk wrote:
> I'm new to ODBC, and I get an error in a very minimalistic program. It
> just tries to connect to and disconnect from the database, and doesn't
> do anything. Here is what it does, error handling left out:
Its because you have tried to free a handle while its still connected.
The sequence error is telling you just that, the calls have to be made
in the correct order. You need a
SQLDisconnect( hDbc );
Before the SQLFreeHandle( HDBC );
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the unixODBC-support