Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
programs:odxsql:commands:connect [2009/12/04 21:56]
tdo
programs:odxsql:commands:connect [2016/06/28 22:38] (current)
Line 6: Line 6:
 CONNECT establishes a connection to an Omnidex Environment and opens a cursor. CONNECT establishes a connection to an Omnidex Environment and opens a cursor.
  
-CONNECT is followed by the Omnidex Environment filespec ​along with optional information.+CONNECT is followed by either an Omnidex Environment filespec ​or a File DSN for ODBC, JDBC or CLOA connections  
 ===== Syntax ===== ===== Syntax =====
  
Line 14: Line 15:
        ​[USING api]         ​[USING api] 
        [WITH options]        [WITH options]
- 
 ===== Discussion ===== ===== Discussion =====
 +
 == Omnidex Environment == == Omnidex Environment ==
-This is the Omnidex Environment or ODBC or JDBC File DSN.  If connecting to a +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.
  
 +Allowable values for API are:
   * ODBC - Open Data Base Connectivity   * ODBC - Open Data Base Connectivity
   * JDBC - Java Data Base Connectivity   * JDBC - Java Data Base Connectivity
Line 32: Line 38:
 == [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.
 
Back to top
programs/odxsql/commands/connect.1259963793.txt.gz · Last modified: 2016/06/28 22:38 (external edit)