Execute the SQL statement.
Source position: sqldb.pp line 440
public procedure TCustomSQLStatement.Execute; |
Execute executes the SQL statement on the database. If necessary, it will first open the connection and start a transaction, followed by a call to Prepare.
An exception is raised if there is no SQL statement set or the Database or Transaction properties are empty.
If an error occurs at the database level (the SQL failed to execute properly) then an exception is raised as well.
|
The SQL statement to execute. |
|
|
Database instance to execute statement on. |
|
|
The transaction in which the SQL statement should be executed. |