Suppose you have an Access database named PIBMUG.MDB. You create an alias named PIBMUG in the BDE Administrator. To open that database, execute the following code:

d = new Database()

d.databaseName = "PIBMUG"

d.active = true

The second example logs into a database named PERSONNEL in a new session with a preset user name and password:

s1 = new Session()

d1 = new Database()

d1.databaseName = "PERSONNEL"

d1.session = s1

d1.loginString = "visitor/jobsavail"

d1.active = true