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

SQL Anywhere 12.0.0 (Français) » SQL Anywhere Server - Programming » 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
    build64
  • For Unix, use the shell script build.sh.

  • 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 builds 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.