IDatabaseTables.TableName

Syntax

TableName: String;

Description

The TableName property returns a physical name of the table in a database.

Example

Sub Main;

Var

MB: IMetabase;

DBInst: IDatabaseInstance;

Tables: IDatabaseTables;

TabName: IStringList;

Begin

MB := MetabaseClass.Active;

TabName := New StringList.Create;

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

Tables := DBInst.Tables;

While Not Tables.Eof Do

TabName.Add(Tables.TableName);

Tables.Next;

End While;

End Sub Main;

After executing the example the TabName array contains physical names of all tables stored on database server to which the database of repository with the BD identifier is set up.

See also:

IDatabaseTables