This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
programs:odxsql:commands:connect [2009/12/02 14:38] tdo |
programs:odxsql:commands:connect [2009/12/04 22:00] tdo |
||
---|---|---|---|
Line 7: | Line 7: | ||
CONNECT is followed by the Omnidex Environment filespec along with optional information. | CONNECT is followed by the Omnidex Environment filespec along with optional information. | ||
- | |||
===== Syntax ===== | ===== Syntax ===== | ||
Line 15: | Line 14: | ||
[USING api] | [USING api] | ||
[WITH options] | [WITH options] | ||
+ | ===== Discussion ===== | ||
== Omnidex Environment == | == Omnidex Environment == | ||
+ | Reuired: This is the Omnidex Environment or ODBC or JDBC File DSN. If connecting to a File DSN then the USING api clause with ODBC, JDBC or OA needs to be specified. | ||
== [ON host[:port]] == | == [ON host[:port]] == | ||
+ | Optionally specifiy the Host and Port for a network connection. | ||
+ | |||
== [AS [user]/[password]] == | == [AS [user]/[password]] == | ||
- | Specify a username and password in the AS [ user]/[ password] clause. | + | Optionally specify a username and password in the AS [ user]/[ password] clause. |
== [USING api] == | == [USING api] == | ||
+ | Optionally specify which API to use for processing subsequent statements. The USING clause facilitates the testing of ODBC and JDBC environments for testing and optimization. | ||
- | * ODBC | + | Allowable values for API are: |
- | * JDBC | + | * ODBC - Open Data Base Connectivity |
- | * CLOA | + | * JDBC - Java Data Base Connectivity |
+ | * CLOA - Client OmniAccess. | ||
* OA - OmniAccess - this is the default if no USING clause is specified. | * OA - OmniAccess - this is the default if no USING clause is specified. | ||
== [WITH options] == | == [WITH options] == | ||
- | Specify connect options in the WITH clause. | + | Optionally specify connect options in the WITH clause. |
The NOCURSOR option will cause a connection to be established without opening a cursor. | The NOCURSOR option will cause a connection to be established without opening a cursor. |