Embedded SQL for C Examples

The examples, 1 through 8, describe Embedded SQL for C (ESQL/C) character-mode programs written using plain C, standard C libraries, and Embedded SQL statements. Each program connects to the specified server running Microsoft® SQL Server™ and executes a series of Embedded SQL statements.

Each program described in the following examples uses the appropriate Examplen.sqc, Gcutil.c, Gcutil.h, and Quickwin.def files. Some of these programs use the author2 table, which you can create by using the Author2.sql file.

You can build an example program for the following environments by using the associated commands. n is the number of the example program.

Environment Command
Microsoft Windows NT® and Microsoft Windows® 95/98 nmake -f "makefile." APP="examplen"
MS-DOS nmake -f "makefile." APP="examplen" ENV="dos"
QuickWin nmake -f "makefile." APP="examplen" ENV="qwin"

Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8

(c) 1988-98 Microsoft Corporation. All Rights Reserved.