
SOLID Light Client Samples
This directory contains the light
client samples:
sample1.c |
Connecting to SOLID Server and
executing a simple select. |
Each sample is briefly
described below.
For setting up an
environment for running the samples, please view the SOLID
Light Client Installation Instructions.
For more information about
using JDBC with SOLID Server, please view the Light
Client Programmer's Guide.
Sample1: Connecting to SOLID Server and
executing a simple select
The program sample1.c can be used for validating the
SOLID Light Client installation. It performs the
following operations:
1. Checks that there are enough input parameters to
contain sufficient connect information
2. Prepares to connect SOLID Server through the
Light Client API by allocating memory for HENV and HDBC
objects.
3. Connects to SOLID Server using Light Client API.
4. Creates a statement for one query, 'SELECT
TABLE_SCHEMA,TABLE_NAME,TABLE_TYPE FROM TABLES' for
reading data from one of SOLID Server system
tables.
5. Executes the query.
6. Fetches and outputs all the rows of the result set.
7. Closes the connection gracefully.
Related files to sample1:
sample1.c |
C source code for example program sample1. |
sample1_c.txt |
C source of sample1 as text for browsing
without side effects |
sample1.h |
Header file included by sample1.c |
sample1_h.txt |
Header of sample1 as text for browsing
without side effects |
sample1_out.txt |
expected output when run against an empty
SOLID Server database |

Company | Products | Support | Search | Free Eval Packs
Copyright © 1992-1997 Solid Information Technology Ltd.
All rights reserved.
|