Connection Object
PROPERTY: Connection::DefaultDatabase
string =
connectionobject.
DefaultDatabase
connectionobject.
DefaultDatabase
= string
The
DefaultDatabase
property is used to set or return a string value that is the default database for a specific server-side connection. This property cannot be used with a client-side connection (Remote Data Service). Even if a default database is set, you may still open connections that access other databases.
This example opens the Chants table in the GuruDB database:
Code (VBScript):
objConnection.DefaultDatabase = "GuruDB"
...
objRecordset.Open "Chants", objConnection
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information