Connect
The CONNECT statement is used to define access to a data connection.
Syntax:
LIB CONNECT TO connection
Arguments:
| Argument | Description |
|---|---|
| connection |
The name of a data connection. The syntax for a data connection in a space is (space_name):(connection_name). You can specify a data connection in the current space with the syntax :(connection_name). If no space is specified, it will look for the connection in the space the application is in. For more information on syntax for spaces, see Connect to data sources in load scripts. |
Example 1:
LIB CONNECT TO 'DataConnection';
The script looks for a connection named DataConnection in the user running the script's personal space.
Example 2:
LIB CONNECT TO 'Sales:DataConnection'
The script looks for a connection named DataConnection in a space called Sales.