[unixODBC-support] [unixODBC][Driver Manager]Function sequence error

Nick Gorham nick at lurcher.org
Sun Sep 15 17:07:09 BST 2013


On 15/09/13 15:15, Volker Wysk wrote:
>
> Hello!
>
> 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 );

-- 
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20130915/84f869e0/attachment.html>


More information about the unixODBC-support mailing list