Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I know all the tables from DB in InterBase????

Status
Not open for further replies.

colosoderada

Programmer
Sep 14, 2000
26
ES
Hi everybody.
I want know if it is possible know with a SQL statement all the tables from DB in InterBase and with fields has got the InterBase DB.

I trying to make a program in C# that know all the tables of de DataBase in InterBase and the fields of this tables. Later or I want do a backup in a new tables.

Thanks in advance and sorry for my english.
 
select RDB$RELATION_NAME, RDB$RELATION_FIELDS.RDB$FIELD_NAME, RDB$FIELD_TYPE, RDB$FIELD_LENGTH
from RDB$RELATION_FIELDS
JOIN RDB$FIELDS ON RDB$FIELDS.RDB$FIELD_NAME = RDB$RELATION_FIELDS.RDB$FIELD_SOURCE
GROUP BY RDB$RELATION_NAME, RDB$RELATION_FIELDS.RDB$FIELD_NAME, RDB$FIELD_TYPE, RDB$FIELD_LENGTH
HAVING RDB$RELATION_FIELDS.RDB$FIELD_NAME NOT LIKE 'RDB$%'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top