MyDAC

TCustomMyConnection.Database Property

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

Class

TCustomMyConnection

Syntax

property Database: string;

Remarks

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

Altering Database property makes new database name take effect immediately.

Setting Database='mysql' allows you to omit database specifier in SELECT statements. That is, instead of

SELECT * FROM mysql.user;

you may just write

SELECT * FROM user

See Also

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