SQLText(Driver: String): String;
Driver. DBMS driver identifier. The summary list of identifiers that can be specified as a parameter value is given in the Supported DBMS subsection.
The SQLText property determines SQL query of view for the certain driver of database.
Sub Main;
Var
MB: IMetabase;
Predstav: IView;
SQL: String;
Begin
MB := MetabaseClass.Active;
Predstav := MB.ItemById("View_1").Bind As IView;
SQL := Predstav.SqlText("ORCL");
End Sub Main;
After executing the example, the SQL variable contains SQL query for Oracle driver. The view has the View_1 identifier.
See also: