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

Volker Wysk pf3 at volker-wysk.de
Sun Sep 15 17:24:10 BST 2013

Am Sonntag, 15. September 2013, 18:07:09 schrieb Nick Gorham:
> 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 );

Okay, many thanks!

Seems like I overlooked the SQLDisconnect call in the sample programs which 
I've studied.

Happy Hacking,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20130915/2717e582/attachment.html>

More information about the unixODBC-support mailing list