UniDAC

TUniConnection.Database Property

Used to specify the database name that is a default source of data for SQL queries once a connection is established.

Class

TUniConnection

Syntax

property Database: string;

Remarks

Use the Database property to specify the database name that is a default source of data for SQL queries once a connection is established.

Altering the Database property makes new database name take effect immediately.

This property is available for Access, Advantage, SAP Sybase ASE, DB2, DBF, InterBase, MySQL, NexusDB, PostgreSQL, SQL Server, and SQLite providers.

SQL Server provider note:

When Database is not assigned, the SQL Server provider will use the default database for the current SQL Server login specified in the TCustomDAConnection.Username property.

See Also

© 1997-2020 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback