Locating a database on a server or the local directory
The DbDirectory class provides a means to locate databases on servers and the local directory. To access a particular server, specify its name as the argument to the getDbDirectory method of Session. The getFirstDatabase and getNextDatabase methods of DbDirectory return handles to Database objects. The Name property contains the name of the server or workstation. The Parent property returns a Session object representing the current session.
The Database object returned by getFirstDatabase and getNextDatabase is not open. You can access a subset of the Database methods on the closed database. You must explicitly call the open method of Database to open the database to access all methods. See isOpen for details.