The code fragments in this section are taken from the complete class in samples-dir\SQLAnywhere\JDBC\JDBCExample.java.
To install the JDBCExample class
Compile the JDBCExample.java source code.
Using Interactive SQL, connect to the sample database as the DBA.
Install the JDBCExample.class file into the sample database by executing the following statement in Interactive SQL (samples-dir represents the SQL Anywhere samples directory):
INSTALL JAVA NEW FROM FILE 'samples-dir\SQLAnywhere\JDBC\JDBCExample.class' |
You can also install the class using Sybase Central. While connected to the sample database, open the Java subfolder under External Environments and choose File » New » Java Class. Follow the instructions in the wizard.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |