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:28] tdo |
programs:odxsql:commands:connect [2009/12/04 21:56] 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 ====== | + | ====== OdxSQL Connect Environment ====== |
===== Description ===== | ===== Description ===== | ||
CONNECT establishes a connection to an Omnidex Environment and opens a cursor. | CONNECT establishes a connection to an Omnidex Environment and opens a cursor. | ||
- | Enter CONNECT followed by the environment catalog file spec and any desired parameters at the prompt. | + | CONNECT is followed by the Omnidex Environment filespec along with optional information. |
===== Syntax ===== | ===== Syntax ===== | ||
Line 17: | Line 15: | ||
[WITH options] | [WITH options] | ||
+ | ===== Discussion ===== | ||
== Omnidex Environment == | == Omnidex Environment == | ||
+ | This is the Omnidex Environment or ODBC or JDBC File DSN. If connecting to a | ||
== [ON host[:port]] == | == [ON host[:port]] == | ||
- | + | == [AS [user]/[password]] == | |
- | ==== [AS [user]/[password]] ==== | + | |
Specify a username and password in the AS [ user]/[ password] clause. | Specify a username and password in the AS [ user]/[ password] clause. | ||
Line 27: | Line 25: | ||
== [USING api] == | == [USING api] == | ||
- | * ODBC | + | * ODBC - Open Data Base Connectivity |
- | * JDBC | + | * JDBC - Java Data Base Connectivity |
- | * CLOA | + | * 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. | ||
Line 36: | Line 34: | ||
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 ===== | ===== Examples ===== | ||
Line 42: | Line 40: | ||
>connect orders.env | >connect orders.env | ||
Connected to C:\Omnidex\Demodata\orders.env | Connected to C:\Omnidex\Demodata\orders.env | ||
- | > | + | |