Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- // Load and register JDBC driver for Sybase IQ. This is not needed with jdbc4.0 compliant drivers.
- // Driver filename is "jconn4.jar". Get your hands on the latest one you can find. And put where the code can see it.
- // Class.forName("com.sybase.jdbc4.jdbc.SybDriver");
- String ConnectionParams = String.format("jdbc:sybase:Tds:<server-name>:<port-number>/<database-name>");
- Connection con = DriverManager.getConnection(ConnectionParams, "username", "password");
- Statement stmt = con.createStatement();
- ResultSet rs = stmt.executeQuery("select table_name from sys.systable;");
- while (rs.next()) {
- String TableName = rs.getString(1);
- System.out.println(TableName);
- }
- stmt.close();
- con.close();
- */
Add Comment
Please, Sign In to add comment