Header file

All the example programs reference the example header file, sybsqlex.h. The contents of sybsqlex.h are:

/**************************************************
 *                                                 *
 *  sybsqlex.h - header file for Embedded SQL/C    *
 *               examples                          *
 *                                                 *
 **************************************************/

 
 #define USER            "sa"

 #define PASSWORD""

#define ERREXIT     -1
 #define STDEXIT     0

All the examples contain this line:

#include "sybsqlex.h"

USER and PASSWORD are defined in sybsqlex.h as “username” and “password.” Before you run the sample programs, you must edit sybsqlex.h: Change “username” to your Adaptive Server login name and “password” to your Adaptive Server password.