Data.Win.ADODB.TADOConnection.DefaultDatabase

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TADOConnection

Delphi

property DefaultDatabase: WideString read GetDefaultDatabase write SetDefaultDatabase stored IsDefaultDatabaseStored;

C++

__property System::WideString DefaultDatabase = {read=GetDefaultDatabase, write=SetDefaultDatabase, stored=IsDefaultDatabaseStored};

Description

Indicates the database the ADO connection uses by default.

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.

See Also