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 ASIQ-12_7/Samples/ASA/JavaSQL/manual-examples 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();
    }
  }
}