Building Applications

Embedded SQL for C and SQL Server

Embedded SQL for C and SQL Server

Building Applications

To build an Embedded SQL for C (ESQL/C) application for the Microsoft® Windows NT® 4.0, Microsoft Windows® 95, or Microsoft Windows 98 operating systems, you must compile the application on a computer running Windows NT 4.0, Windows 95, or Windows 98 on the Intel® platform.

If you need to build an ESQL/C application for either 16-bit Windows or Microsoft MS-DOS®, you must use the ESQL/C compilation environment in Microsoft SQL Server™ 6.0 or 6.5. SQL Server 7.0 does not supply the 16-bit binaries needed to compile ESQL/C clients in these environments:

  • To build an ESQL/C application for the 16-bit Windows operating system, you must compile the application on a computer running MS-DOS or 16-bit Windows.

  • To build an ESQL/C application for the MS-DOS operating system, you must compile the application on a computer running MS-DOS version 6.22 or later.

The following illustration shows how application code that contains Embedded SQL statements is precompiled, compiled, and linked, and how the application operates at run time.

When you compile an ESQL/C application, the general process of creating an executable program is the same regardless of the operating system you compile for. The specific procedures for precompiling, compiling, and linking ESQL/C applications for Windows NT 4.0, Windows 95, or Windows 98, 16-bit Windows, and MS-DOS are described in other topics.