Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere Server - Programming » ODBC support » ODBC handles

 

ODBC example

A simple ODBC program that connects to the SQL Anywhere sample database and immediately disconnects can be found in %SQLANYSAMP12%\SQLAnywhere\ODBCConnect\odbcconnect.cpp. This example shows the steps required in setting up the environment to make a connection to a database server, as well as the steps required in disconnecting from the server and freeing up resources.