Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Evaluating SourcePro C++
Rogue Wave web site:  Home Page  |  Main Documentation Page

4.4 Running the Examples

This section describes the running of the video store tutorials in detail, including the purpose of each tutorial, its inputs and outputs. For the bulkcopy example, simply follow the instructions in Section 3.3.

4.4.1 Populate Your Database

From the command line, run tutsetup.exe to create all dependent database objects for the tutorials. File setuperr.txt reports any errors that occur during setup.

4.4.2 Run the Tutorials

To run the tutorials, enter the executable name in a command prompt window.

Table 6 contains a list of the video store tutorials, their related files, and a description of their content. Filenames containing the word out give the output of the tutorial program. Filenames containing the word err contain error messages.

Input files required by the tutorials and generated output files are placed in the <buildspace>\examples\<module>\12d directory.

Table 6: The SourcePro DB video store tutorials

Tutorial Name Related Files Tutorial Description
Retrieving Data from a Table t1.exe
t1out.txt
t1err.txt
Demonstrates how to retrieve data from a table in a database and how to use an arbitrary struct or class
Retrieving Data Selectively t2.exe
t2out.txt
t2err.txt
Demonstrates selective retrieval of data from a table in a database
Inserting Data into a Table t3.exe
t3out.txt
t3err.txt
Demonstrates how to insert data into a table in a database
Inserting and Updating Data t4.exe
t4out.txt
t4err.txt
Demonstrates how to insert and update data in a database
Deleting Rows from a Table t5.exe
t5out.txt
t5err.txt
Demonstrates how to delete rows from a table in a database
A Complicated Query t6.exe
t6out.txt
t6err.txt
Demonstrates a complicated query with the entire result set brought directly into memory. Uses a template-based collection from the Essential Tools Module to store query data
Updating Data in Multiple Tables t7.exe
t7out.txt
t7err.txt
Demonstrates how to enter new data and update existing data in multiple tables within a database

4.4.3 Clean Up Your Database

From the command line, run tutclean.exe to clean up all the tables the tutorials create and use. File tutclean.txt reports errors that occur during cleanup.

From Microsoft Visual Studio, build and run the tutclean project in the SourcePro DB workspace.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.