You are not logged in.
Hi ab,
By nature many DBMS including the SQLITE3 engine supports executing multiple SQL statements delimited by commas, but it seems that both the TSQLRestServer and TSQLDBConnectionProperties do not support comma-separated SQL statements?
Thanks.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
PS, it's extremely useful when upgrading an existing database if one can execute multi sql statements at a time, for example, execute a bunch of SQLs from a .sql file extracted from a db management tool.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Thanks for the explanation, ab.
I understand it that the REST server (which can be accessed remotely) should not allow multiple SQL execution at a time, but if I'm correct, at the database engine level (which for local access), this function should be exposed.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
AFAIK you can execute a SQL script with SQLite3 like.
YourSQLDBSQLite3ConnectionProperties.MainConnection.DB.ExecuteAll(StringFromFile(PathToScript));
Offline
Thanks @Nouba, good to know that!
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline