CS 348: Embedded SQL
Use the server
for a2. The steup procedure is the same as given in the tutorial for linux024: you only need to logon to a different server.
We provide a sample
that can be used to compile your source files and the utility files
to build the apps.
Note that you have to modify
for your applications; e.g., we assume
are in the same directory.
An example file
that connects to the cs348 database is also given to get you started:
Make sure you already setup DB2 on the server;
Download the above four files into one folder;
Before compiling, you may need to change file permissions
chmod a+x compile
Compile your source file by running
If compilation succeeds, you can run the simple test application by
, which prints a message.
Should you have questions regarding the above procedure, please post your questions on the newsgroup; or consult our TAs durinbg office hours.