DB Interface Module User’s Guide : PART V The Tutorials : Chapter 17 Retrieving Data from a Table : Running the Program
Running the Program
To run your example on UNIX:
To run Tutorial One on a UNIX machine using the connection parameters specified during the build, change to the directory in which you built the examples, and type the name of the tutorial on the command line:
 
t1
To run Tutorial One on a UNIX machine and override the default arguments, use a command of this form:
 
t1 <access-library> <server-name> <username> <password> <database>
where:
<access-library> is the SourcePro DB access library to be used
<server-name> is the name of the server with which to connect
<username> is the username to be used when connecting
<password> is the password associated with the given username
<database> is the name of the database with which to connect on the given server
These build parameters correspond one-to-one with each of the parameters used when connecting your SourcePro DB program to the database. See “Getting a Connection” in this User’s Guide for more information on setting these parameters correctly.
To run your example on Windows:
To run Tutorial One on a Windows machine using the connection parameters specified during the build, open a command prompt window, change to the directory in which you built the examples, and run t1 from the command line. If you need to override the defaults in Windows, use the same method shown in the UNIX example.