Setup
Before you run the sqlprep precompiler, do the following:
- Set the COMPILER environment variable to the full path and filename of your C compiler. For example:
SET COMPILER=C:\MSVC\BIN\CL.EXE
- Set the INCLUDE environment variable to include the full path where the SQLCA.H and SQLDA.H Embedded SQL header files are located. For example:
SET INCLUDE=C:\MSVC\INCLUDE;C:\SQL\ESQL\INCLUDE
The sqlprep precompiler automatically includes these header files in the C programs that it creates; do not explicitly include (by using #include) them in your Embedded SQL program.
- To enable communication with SQL Server, ensure that an appropriate Net-Library is loaded or available on the path when precompiling with the /DB and /PASS options. For example, the named pipes Net-Library for the Windows NT operating system is DBNMPNTW.DLL, and the named pipes Net-Library for the MS-DOS operating system is the DBNMPIPE.EXE TSR.