TurboIMAGE/XL Database Management System Reference Manual MPE/iX V6.5 (30391-90011)
460 Chapter9
Using a Remote Database
Access Through a Local Application Program
Access Through a Local Application Program
If you want to access a remote database using a local application program, you have three
methods to choose from.
• Establishing communications link and remote session interactively.
• Using the COMMAND intrinsic.
• Using a database-access file.
In all three cases, a local program accesses a remote database and the data is passed
across the communication line.
Method 1--Establishing Communications Link and Remote Session
Interactively
To use the first method, interactively establish a communications link and a remote
session and enter a FILE equation for each remote database. The FILE equation specifies
which database is to be accessed on which remote system and device. A local application
program can now access a remotely located database, as shown in Figure 9-2.
Figure 9-2. Using Method 1
For details about using this method refer to the NS3000/XL User/Programmer Reference
Manual.
Method 2--Using the COMMAND Intrinsic
The second method is very similar to the first, but you use the MPE/iX COMMAND intrinsic
within your application program to establish the communications link, remote session and
remote database access.