MyDAC

TMyConnection.Database Property

Used to specify the database name.

Class

TMyConnection

Syntax

property Database: string;

Remarks

Use the Database property to specify the name of a database to be used as the default source of data for SQL queries after establishing a connection.

Changing the value of this property takes effect immediately.

You can use the Database property to omit the database name in SELECT statments. For example, you can write

SELECT * FROM user;

instead of

SELECT * FROM mysql.user;

See Also

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