Instantiating a DataAdminService
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Instantiating a DataAdminService
You can instantiate a DataAdminService for one database. The service methods, entity objects, and entity collection objects for that service instance all apply to that single database.
The following code shows how to instantiate the service for a connected database by passing the logical database name to the constructor:
|
You can also instantiate the service by specifying the full physical path and database name in the constructor as follows:
|
The database connects only to multi-user if there is a database server available.
Note: The service works best with local
connections. Execution of the
DataAdminUtility classes (with the ExecuteUtiltity() method) does not work with a remote
connection.