Was this helpful?
Run the Demonstration Application
Example code is provided for C#, embedded SQL for C, and OpenAPI applications.
To start the C# demo application
Run IngresDemoApp.exe, located in the %II_SYSTEM%\ingres\demo\csharp\travel\app.
Note:  The C# application requires that the Ingres .NET Data Provider be installed. It was developed using Visual Studio.
When you start the C# application, it automatically connects to the demodb on the local Ingres instance. Each user interface control that displays data retrieved from an Ingres database has contextual help that includes instructions, source code, and query excerpts.
To compile and run the ESQLC demo application
1. Change directory to %II_SYSTEM%\ingres\demo\esqlc, and issue:
nmake all
Note:  The nmake utility is installed with Visual Studio.
2. Run the compiled application:
tmdemo.exe
3. When the program prompts for the database, enter demodb.
Enter an SQL statement, such as the one shown in this example:
 
****************************************************
NOTE: To quit execution at any time, press CONTROL-C
****************************************************
 
Enter Database Name: (vnode::dbname) demodb
Enter SQL select statement and a semicolon
SELECT FIRST 4 * FROM airline;
[1] al_id [2] al_iatacode [3] al_icaocode [4] al_name [5] al_ccode
 
[1] 410 [2] [3] [4] [5]
[1] 4178 [2] [3] [4] [5]
[1] 1509 [2] [3] [4] [5]
[1] 1943 [2] [3] [4] [5]
[4 row(s)]
quit;
To compile and run the OpenAPI executables
1. Change directory to %II_SYSTEM%\ingres\demo\api, and issue:
nmake all
2. Run the compiled executables that are created, using demodb as a parameter. For example:
apisell.exe demodb
apisselc.exe demodb
3. Inspect the respective source code in apissell.c and apisselc.c and the other API examples.
 
Last modified date: 08/28/2024