This shows you the differences between two versions of the page.
programs:odxsql:commands:connect [2009/12/04 21:56] tdo |
programs:odxsql:commands:connect [2016/06/28 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== OdxSQL Connect Environment ====== | ||
- | ===== Description ===== | ||
- | CONNECT establishes a connection to an Omnidex Environment and opens a cursor. | ||
- | |||
- | CONNECT is followed by the Omnidex Environment filespec along with optional information. | ||
- | ===== Syntax ===== | ||
- | |||
- | CONNECT [TO] Omnidex_Environment | ||
- | [ON host[:port]] | ||
- | [AS [user]/[password]] | ||
- | [USING api] | ||
- | [WITH options] | ||
- | |||
- | ===== Discussion ===== | ||
- | == Omnidex Environment == | ||
- | This is the Omnidex Environment or ODBC or JDBC File DSN. If connecting to a | ||
- | == [ON host[:port]] == | ||
- | == [AS [user]/[password]] == | ||
- | |||
- | Specify a username and password in the AS [ user]/[ password] clause. | ||
- | |||
- | == [USING api] == | ||
- | |||
- | * ODBC - Open Data Base Connectivity | ||
- | * JDBC - Java Data Base Connectivity | ||
- | * CLOA - Client OmniAccess. | ||
- | * OA - OmniAccess - this is the default if no USING clause is specified. | ||
- | |||
- | == [WITH options] == | ||
- | |||
- | Specify connect options in the WITH clause. | ||
- | |||
- | 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 | ||
- | | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | {{page>:bottom_add&nofooter&noeditbtn}} |