[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'SQLDB' (#fcl)

# TSQLScript.Execute

Execute the script.

## Declaration

Source position: sqldb.pp line 738

`public procedure TSQLScript.Execute; override;`

## Description

Execute will execute the statements specified in Script one by one, till the last statement is processed or an exception is raised.

If an error occurs during execution, normally an exception is raised. If the TSQLScript.OnException event handler is set, it may stop the event handler.

## Errors

Handle errors using TSQLScript.OnException.

## See also

Script |  | The script to execute
TSQLScript.OnException |  | Exception handling event

Documentation generated on: May 14 2021