This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:sql:connections:jdbc [2011/01/11 22:18] els |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | |||
| - | ====== Development: SQL ====== | ||
| - | |||
| - | ===== Connection Strings ===== | ||
| - | |||
| - | [[dev:sql:connections:home|Overview]] | [[dev:sql:connections:odbc|Connections in ODBC]] | **[[dev:sql:connections:jdbc|Connections in JDBC]]** | ||
| - | |||
| - | ---- | ||
| - | |||
| - | |||
| - | ==== 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: | ||
| - | |||
| - | |||
| - | |||
| - | {{page>:bottom_add&nofooter&noeditbtn}} | ||