Running the sample programs with SQL Anywhere

All of the sample programs are compatible with Adaptive Server, but only a limited number are compatible with SQL Anywhere. Refer to index.html in the sample2 subdirectory for a current list of the sample programs that are compatible with SQL Anywhere.

To run the sample programs that are available for SQL Anywhere, you must install the pubs2_any.sql script on your SQL Anywhere server. This script is located in the sample2 subdirectory.

For Windows, go to DOS command window and enter:

java IsqlApp -U dba -P password 
 -S jdbc:sybase:Tds:[hostname]:[port] 
 -I %JDBC_HOME%\sample2\pubs2_any.sql -c go

For UNIX, enter:

java IsqlApp -U dba -P password 
 -S jdbc:sybase:Tds:[hostname]:[port] 
 -I $JDBC_HOME/sample2/pubs2_any.sql -c go