version 2003 (Modified)
The routines described in this chapter enable you to select a 4D Server database as well as to open and close a connection to the selected database.
The following diagram depicts how a connection to a 4D Server database is opened from 4th Dimension or 4D Client:
Using Multiple Connections and Databases
Using the 4D Open routines, a single client can open multiple connections. The client can connect to several databases at the same time. Each connection corresponds to a different 4D Server process.
With 4D Open, each user can open six concurrent connections (processes) to the same server. After the sixth process has been opened with OP Open connection, an additional user is added to accommodate the six additional connections, and so on.
The maximum number of concurrent users is set by the 4D Server license which you have purchased.
Connecting to a 4D Server Database
4D Open allows you to connect to a 4D Server database located on a server. You have to select the database.
If you call OP Select 4D Server in your code, users will be presented with a dialog box that allows them to choose the 4D Server database. If you use OP Find 4D Server instead, you must pass the database name to the routine.
OP Select 4D Server displays the Connect to data server dialog box.
For a full discussion of opening connection with 4D Server, refer to the 4D Server Reference manual.