run_sql_file
run_sql_file
function has 1 variants:
Description
run_sql_file
function opens and execute all sql commands in the file sequentially.Each sql commands must end wih ';' character.
If error occured during execution, the function execution is stopped immediately and
database specific error message is returned.
Database script file path is relative to the
SodiumServer.Exe
file.Database script file can contain DML or DDL statements but cannot contain
begin
andend
block since Sodium executes each command separated by ';' character.
Declaration
Parameters
char filePath
Sql script file full path.
Return Value
Returns error message if any error message occured.
Example
Last updated
Was this helpful?