MyDAC

TMyScript Class

A component for executing several SQL statements one by one.

For a list of all members of this type, see TMyScript members.

Unit

MyScript

Syntax

TMyScript = class(TDAScript);

Remarks

Often it is necessary to execute several SQL statements one by one. Known way is using a lot of components such as TMyCommand. Usually it is not a good solution. With only one TMyScript component you can execute several SQL statements as one. This sequence of statements is named script. To separate single statements use semicolon (;), slash (/) ,and DELIMITER . Note that slash must be the first character in line.

Errors that occur while execution can be processed in the TDAScript.OnError event handler. By default, on error TMyScript shows exception and continues execution.

If you need to create several Stored Procedures (Functions) at a single script, use slash (/) to separate commands for creating stored procedures.

Inheritance Hierarchy

TDAScript
   TMyScript

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback