The server-side connection example is almost identical to the client-side connection example, with the following exceptions:
The JDBC driver does not need to be loaded. The DriverManager.registerDriver and Class.forName calls have been removed from the example.
It connects to the default running database using the current connection. The URL in the getConnection call has been changed as follows:
Connection con = DriverManager.getConnection( "jdbc:default:connection" );
System.exit() statements have been removed.
Discuss this page in DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|