Server-side connection example code

The following is the source code for the example. You can find the source code in the InternalConnect method of JDBCExamples.java in the C:\Documents and Settings\All Users\SybaseIQ\samples\SQLAnywhere\JDBC directory under your Sybase IQ installation directory:

public static void InternalConnect() {
  try {
      conn = DriverManager.getConnection("jdbc:default:connection");
      System.out.println("Hello World");
    }
    catch ( Exception e ) {
      System.out.println("Error: " + e.getMessage());
      e.printStackTrace();
    }
  }
}