3
How to create the database automatically if it does not exist, same in app from Delphi Android, but I want to do it with Delphi VCL. I want my application in the first run to automatically create the database where I will run the 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 connect with FDConnection
.