How to find a Generator associated with a field

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pwatel
Posts: 39
Joined: Wed 11 Feb 2009 09:42

How to find a Generator associated with a field

Post by pwatel » Fri 22 May 2009 11:37

Is there a way to find out the generator name associated with
a field in a specific table
using either the metadata component or other techniques
thanks
Philippe Watel
Ps now I am not on trial - I am officially a customer
email [email protected] etc...

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 25 May 2009 08:41

You can use the RDB$TRIGGERS system table to find all triggers for the specified table. Then use RDB$DEPENDENCIES to find generators the triggers depend on.

pwatel
Posts: 39
Joined: Wed 11 Feb 2009 09:42

using the meta component

Post by pwatel » Mon 25 May 2009 12:57

does the metadata component lists triggers ???
if it does not why not in the next release ???
PW

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 26 May 2009 06:44

The TIBCMetaData component does not list triggers. We are not planning to add this feature in the next release.

You can list triggers by the following query:

SELECT * FROM RDB$TRIGGERS

Post Reply