RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOConnection.DefaultDatabase Property

Indicates the database the ADO connection uses by default.

Pascal
property DefaultDatabase: WideString;
C++
__property BSTR DefaultDatabase;

Set DefaultDatabase to indicate the database the ADO connection objects uses if the connection to the database specified in ConnectionString is unavailable, the connection cannot be made, or the database is not specified in the connection string.

Note: If a default database is specified in the ConnectionString property, it has precedence over the value in DefaultDatabase. The DefaultDatabase value is automatically changed to the database specified in ConnectionString when the connection component is opened.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!