Unimetadata get tableist without system tables
-
rpijnacker
- Posts: 9
- Joined: Fri 01 Oct 2010 06:50
Unimetadata get tableist without system tables
How to get list of tables with unimetadata without systemtables for
firebird and ms sql
firebird and ms sql
-
AndreyZ
Hello,
You should add a restriction in the TUniMetaData.Restrictions list in the following way:
You should add a restriction in the TUniMetaData.Restrictions list in the following way:
Code: Select all
UniMetaData.MetaDataKind := 'Tables';
UniMetaData.Restrictions.Add('TABLE_TYPE=TABLE');
UniMetaData.Open;-
rpijnacker
- Posts: 9
- Joined: Fri 01 Oct 2010 06:50
-
rpijnacker
- Posts: 9
- Joined: Fri 01 Oct 2010 06:50
-
AndreyZ
To obtain only system tables you should use the following code:Note that you can see all fields available in the TUniMetaData component. For that you should link the TUniMetaData component to the TDataSource and TDBGrid components.
Code: Select all
UniMetaData.Restrictions.Add('TABLE_TYPE=SYSTEM TABLE');