User Guide

SAP AG November 2002
description : demonstration program for unicode features of SAPDB
precompiler
The following steps are needed to execute the demo program:
1. customize the connect data in the embedded SQL program source
(line 43 - 46)
2. precompile/compile the embedded SQL program HelloUnicodeDB.cpc
cpc [-u <userid>,<password> -d <database_name> -n <server_node>]
HelloUnicodeDB
3. linking the embedded SQL program HelloUnicodeDB.cpc
cpclnk HelloUnicodeDB
last changed: 2000-04-30 17:17
see also :
-------------------------------------------------------------------
--
copyright: Copyright by SAP AG, 2001
*********************************************************************
*/
/*===================================================================
*
* INCLUDES *
*===================================================================
*/
#include <stdio.h>
#include <string.h>
/*===================================================================
*
* DEFINES *
*===================================================================
*/
#define KNLIDNTFR 63 /* max. number of character for a unicode
kernel identifier*/
/* connect data */
#define USERID "TEST" /* username */
#define PASSWD "TEST" /* password */
#define SERVERNODE "localhost" /* computer name */
#define SERVERDB "TST" /* name of database*/
/*===================================================================
*
* MACROS *
*===================================================================
*/
/*===================================================================
*
* LOCAL CLASSES, STRUCTURES, TYPES, UNIONS ... *
*===================================================================
*/
/*===================================================================
User Manual: SAP DB 98