How to create the database automatically if it does not exist, same in the app of Delphi Android, but I want to do with Delphi VCL. I want my first run application to automatically create the database where I'm going to run scripts to generate the tables.
I'm trying following code:
if NOT FileExists(Trim(sPath)) then
conn.Params.Values['CreateDatabase'] := 'True'
Else
conn.Params.Values['CreateDataBase'] := 'False';
I'm using Delphi XE10 with Firebird and connected with FDConnection
.