CreateDatabase method
|
Previous Top Next |
1. | Form a "CREATE DATABASE IF NOT EXISTS" statement using the current DatabaseName property value.
|
2. | Collect all CreateTable SQL statements from all dynamically created datasets which have the Option doAutoCreateTable set.
|
3. | Collect all CreateTable SQL statements from all TMySQLDataset\Query\Table components that use this TMySQLServer (via their Server property) which have the Option doAutoCreateTable set.
|
4. | If AExecSQL is True, the TMySQLServer component will use ExecSQLBatch to send all collected SQL to the MySQL Server and in so doing your database with all tables/table structures in it will be recreated from scratch.
|