Consultor Eletrônico



Kbase 17279: How to build DYNDEMO ESQL Small Client on Unix
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to build DYNDEMO ESQL Small Client on Unix

INTRODUCTION
============
This knowledgebase entry describes how to build the
dynamic ESQL/C sample program, dyndemo.cc, with the
small client model on Unix. This knowledgebase
demonstrates a simple case where an Open Interface
Broker (OIB) is started and that OIB spawns an
Open Interface Driver (OID) for the login request.

PROCEDURAL APPROACH
===================
1) Set the following environment variables:

PROOIDRV=$DLC/bin/_prooidv; export PROOIDRV
PROOIBRK=$DLC/bin/_prooibk; export PROOIBRK

2) Start a server for you database:

proserve sports -H hpdb1 -S demosv1 -N TCP

3) Start an Open Interface Broker (OIB):

prooibrk -SV -H hpdb1 -S demosv2 -N TCP

4) Preprocess dyndemo.cc

sqlcpp dyndemo.cc

5) Compile dyndemo.c

cc -c -I$PROLOAD/esqlc dyndemo.c

6) Run probuild to create a link script and choose the following:

ESQL/C SMALL CLIENT (from product list)
TCP-IP NETWORK PROTOCOL (from configurable elements)
and enter dyndemo.o as an object file

7) Run the link script to generate an executable

8) dyntest -db sports -H hpdb1 -S demosv1 -N TCP
-SV -H hpdb1 -S demosv2 -N TCP

This now runs dyndemo and you may enter SQL requests.

REFERENCES TO WRITTEN DOCUMENTATION
===================================
Version 8 Embedded SQL Guide and Reference


Progress Software Technical Support Note # 17279