Navigation: ABC Library Reference > SQLscriptor > SQLscriptor Methods >Load | |
Load PROCEDURE(STRING fileName),BOOL,PROC
Reads the file passed to it and parses the contents so they can be executed by calls to SQLExecutor.ExecuteStatement
The file is parsed into separate SQL Statements using the delimiter passed to SQLExecutor.Init
!!! <;param name=“sqlTable”>
!!! The file that is used to execute the SQL statements
!!! The file does not need to be open, however the OWNER attribute must have been
!!! set up so the file can connect to a database
returns:
Level:Benign on success.
Level:Program if SQLExecutor.Init has not been called.
Level:Notify if an error occured when reading the file
Usage:
IF executor.Load(scriptFile) <;> Level:Benign
BREAK
END
statements = executor.StatementCount()