Steps for Building an Application

Embedded SQL for C and SQL Server

Embedded SQL for C and SQL Server

Steps for Building an Application

The following steps apply to building all Embedded SQL for C (ESQL/C) applications:

  1. Run the appropriate nsqlprep precompiler to prepare the ESQL/C program for compiling with a C compiler.

    For more information about nsqlprep, see Running the nsqlprep Precompiler.

  2. Compile the C program created by the precompiler by using an appropriate C compiler. The compiler creates object file(s).

  3. Link the object file(s), ESQL/C library files, and any other needed library files to create an executable file for the desired environment.

For more information about compiling and linking ESQL/C applications, see the ESQL/C samples in the C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\Esqlc subdirectory.