CreateDB will create a new database on the server. Whether or not this functionality is present depends on the type of the connection. The name for the new database is taken from the TSQLConnection.DatabaseName property, the user credentials are taken from the TSQLConnection.UserName and TSQLConnection.Password properties.
If the connection type does not support creating a database, then an EDatabaseError exception is raised. Other exceptions may be raised if the operation fails, e.g. when the user does not have the necessary access rights.https://www.freepascal.org/docs-html/fcl/sqldb/tsqlconnection.createdb.html
The error message is: "this operation is not supported" or something like that.EXACT error messages are VERY important. Especially if you want others to find solutions.
Thanks. Yes, without pqconnection, you cannot select that kind of TSQLConnector. Which should be equivalent with a TPQConnection, but perhaps it isn't. I'll check it out.Ah, yes, I see it gets added automatically when setting "PostgresSQL".
EXACT error messages are VERY important. Especially if you want others to find solutions.
You are probably getting: "Operation is not supported by this type of database"