ISecurityConnection.Triggers

Syntax

Triggers(TableName: String): IDalTriggers;

Parameters

TableName - a physical name of the table in DB.

Description

The Triggers property returns the cursor containing system information about triggers of the table, which physical name is passed by the TableName parameter.

Example

Executing the example requires that the repository contains a database with the BD identifier.

Sub Main;

Var

MB: IMetabase;

DB: IDatabaseInstance;

Cur: IDalTriggers;

Field: IDalCursorField;

Begin

MB := MetabaseClass.Active;

DB := MB.ItemById("BD").Open(Null) As IDatabaseInstance;

Cur := DB.Connection.Triggers("Table_1");

While Not Cur.Eof Do

For Each Field In Cur.Fields Do

Debug.WriteLine(Field.Name + " " + Field.Value);

End For;

Debug.WriteLine("");

Cur.Next;

End While;

Cur.Close;

End Sub Main;

After executing the example the connection to the DB server, on which the BD repository database is configured, is established. System information about triggers of the table with the Table_1 physical name, if there is such on the server, is displayed in the development environment console.

See also:

ISecurityConnection