Try OpenEdge Now
skip to main content
Programming Interfaces
Data Management : Database Access : Database connections : Auto-connect
 
Auto-connect
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 OpenEdge Development: ABL Reference.
For information on how to set up an auto-connect list in the primary database, see OpenEdge Deployment: Managing ABL Applications.