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

TSQLScript

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Component to execute various SQL statements

Declaration

Source position: sqldb.pp line 395

type TSQLScript = class(TCustomSQLscript)

public

  constructor Create(); override;

  

Create a new TSQLScript instance.

  destructor Destroy; override;

  

Remove the TSQLScript instance from memory.

  procedure Execute; override;

  

Execute the script.

  procedure ExecuteScript;

  

Convenience function, simply calls Execute

published

  DataBase: TDatabase;

  

Database on which to execute the script

  Transaction: TDBTransaction;

  

Transaction to use in the script

  OnDirective: TSQLScriptDirectiveEvent;

  

Event handler if a directive is encountered

  Directives: <NIL>;

  

List of directives

  Defines: <NIL>;

  

Defined macros

  Script: <NIL>;

  

The script to execute

  Terminator: <NIL>;

  

Terminator character.

  CommentsinSQL: <NIL>;

  

Should comments be passed to the SQL engine ?

  UseSetTerm: <NIL>;

  

Should the SET TERM directive be recognized

  UseCommit: <NIL>;

  

Control automatic handling of the COMMIT command.

  UseDefines: <NIL>;

  

Automatically handle pre-processor defines

  OnException: <NIL>;

  

Exception handling event

end;

Inheritance

TSQLScript

  

Component to execute various SQL statements

|

TCustomSQLscript

?

TObject

Description

TSQLScript is a component that can be used to execute many SQL statements using a TSQLQuery component. The SQL statements are specified in a script TSQLScript.Script separated by a terminator character (typically a semicolon (;)).

See also

TSQLTransaction

  

Transaction in which a TSQLQuery is handled

TSQLConnection

  

An abstract class representing a connection to a SQL Database

TCustomSQLQuery.ExecSQL

  

Execute a SQL statement that does not return a result set

TSQLQuery.SQL

  

The SQL statement to execute


Documentation generated on: Feb 02 2013