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/11/28 20:50] tdo |
programs:odxsql:commands:connect [2009/12/02 14:37] tdo |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
<html><div align="center"><span style="color:red">DRAFT</span></div></html> | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
+ | ====== OdxSQL Connect Environment ====== | ||
+ | ===== Description ===== | ||
- | Example | + | CONNECT establishes a connection to an Omnidex Environment and opens a cursor. |
- | In OdxSQL, CONNECT establishes a connection to an Omnidex Environment Catalog and opens a cursor. | + | |
Enter CONNECT followed by the environment catalog file spec and any desired parameters at the prompt. | Enter CONNECT followed by the environment catalog file spec and any desired parameters at the prompt. | ||
+ | ===== Syntax ===== | ||
- | >connect orders.env | + | CONNECT [TO] Omnidex_Environment |
- | Connected to C:\Omnidex\Demodata\orders.env | + | [ON host[:port]] |
- | > | + | [AS [user]/[password]] |
+ | [USING api] | ||
+ | [WITH options] | ||
- | Or, type CONNECT and press return to be prompted for each parameter. | + | == Omnidex Environment == |
- | >connect | + | == [ON host[:port]] == |
- | Environment file: /disctest/oracle/orders.env | + | == [AS [user]/[password]] == |
- | User: guest | + | |
- | Password: | + | |
- | Options: | + | |
- | + | ||
- | Enter / to exit the series of prompts at any time. | + | |
Specify a username and password in the AS [ user]/[ password] clause. | Specify a username and password in the AS [ user]/[ password] clause. | ||
+ | |||
+ | == [USING api] == | ||
+ | |||
+ | * ODBC | ||
+ | * JDBC | ||
+ | * CLOA | ||
+ | * OA - OmniAccess - this is the default if no USING clause is specified. | ||
+ | |||
+ | == [WITH options] == | ||
Specify connect options in the WITH clause. | 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. |
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | >connect orders.env | ||
+ | Connected to C:\Omnidex\Demodata\orders.env | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||