User Tools

Site Tools


sqlscriptor_load.htm
Navigation:  ABC Library Reference > SQLscriptor > SQLscriptor Methods >Load Previous pageReturn to chapter overviewNext page

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()

sqlscriptor_load.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1