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

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere embedded SQL » Sample embedded SQL programs


Building the sample programs

Files to build the sample programs are supplied with the sample code.

  • For Windows, use build.bat or build64.bat to compile the sample programs.

    For x64 platform builds, you may need to set up the correct environment for compiling and linking. Here is an example that builds the sample programs for an x64 platform.

    set mssdk=c:\MSSDK\v6.1
  • For Unix, use the shell script

  • For Windows Mobile, use the esql_sample.sln project file for Microsoft Visual C++. This file appears in samples-dir\SQLAnywhere\CE\esql_sample.

This will build the following examples.

  • CUR   An embedded SQL static cursor example

  • DCUR   An embedded SQL dynamic cursor example

  • ODBC   An ODBC example which is discussing in ODBC samples.