Auto-connect
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The auto-connect feature uses information stored in one database to connect to a second database at runtime. The database that contains the connect information is the primary application database; it must be connected before OpenEdge can execute the auto-connect.
OpenEdge executes the auto-connect when a precompiled procedure references data from the second database. It executes immediately prior to running the precompiled procedure. It does not work with procedures run from the Editor or otherwise compiled on-the-fly.
If you use a CONNECT statement while you are connected
to the primary database, OpenEdge merges the information in the CONNECT statement
with the information in the primary database's auto-connect list.
If there is a conflict, the information in the CONNECT statement
takes precedence. For more information, see the CONNECT Statement
reference entry in ABL Reference.
For information on how to set up an auto-connect list in the primary database, see Manage ABL Applications.