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:[dbserver: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 [[dev:sql:connections:odbc:filedsn|ODBC File DSN] section for instructions to build a File DSN.

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

Additional Resources

See also:

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