GENCHAR (Generic for C)
Genchar is a generic Embedded SQL for C (ESQL/C) character-mode program written using plain C, standard C libraries, and Embedded SQL statements. Genchar connects to a specified instance of Microsoft® SQL Server™ 2000 and issues a SELECT statement query from the authors table in the pubs database.
Default Location
x:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Esqlc
Running the Sample
You can build Genchar for the following environments using the associated commands.
| Environment | Command |
|---|---|
| Microsoft Windows® 2000, Microsoft Windows NT® 4.0 and Microsoft Windows 95/98 |
nmake -f "makefile." APP="genchar" |
| Microsoft MS-DOS® | nmake -f "makefile." APP="genchar" ENV="dos" |
| QuickWin | nmake -f "makefile." APP="genchar" ENV="qwin" |
Remarks
Genchar uses these files.
| Gcutil.c | Genchar.h |
| Gcutil.h | Quickwin.def |
| Genchar.sqc |