This is an old revision of the document!


Development: SQL

Connection Strings

Connections in JDBC

Connecting to an Omnidex Environment File in JDBC simply requires referencing the Omnidex connection string in the call to DriverManager.getConnection:

Connection conn = 
  DriverManager.getConnection( "jdbc:omnidex:[server1:7555]C:\\class\\simple.xml");

It is also possible to reference a File DSN in the call to DriverManager.getConnection. File DSN's are typically used with ODBC applications, but can be useful for externalizing the connection string. Consult the ODBC File DSN Syntax Specification for instructions to build a File Datasource.

Connection conn = 
  DriverManager.getConnection( "jdbc:omnidex:simple.dsn");

Additional Resources

See also:

 
Back to top
dev/sql/connections/jdbc.1294857919.txt.gz ยท Last modified: 2012/10/26 14:52 (external edit)