Execute: Integer;
The Execute method runs DBMS command on execution and returns the quantity of processed records.
Sub Main;
Var
MB: IMetabase;
SQLComInst: ISQLCommandInstance;
Begin
MB := MetabaseClass.Active;
SQLComInst := MB.ItemById("NewSqlCommand").Open(Null) As ISQLCommandInstance;
Debug.WriteLine(SQLComInst.Execute);
End Sub Main;
After executing the example the quantity of records processed as a result of DBMS command execution is displayed in the developing environment console. The identifier of DBMS command is NewSqlCommand.
See also: