Here's my query. It returns all of the table names and all of the column names in all the tables:
Select XF$Name As TableName, F1.XE$ID As FID, F1.XE$Name As FieldName, F2.XE$ID As NotNullable
FROM X$File
INNER JOIN X$Field F1 On
F1.XE$File = XF$ID
LEFT OUTER JOIN X$Field F2 On
F1.XE$ID = F2.XE$Offset And
F1.XE$File = F2.XE$File
WHERE F1.XE$Name Not Like 'NN_%' And
F1.XE$DataType <> 255
Order By XF$Name, F1.XE$Offset
**********************************************************
This is my attempt at creating the table based on what you gave me. I am calling the table tbl_Index2:
create table tbl_Index2 as
Select XF$Name As TableName, F1.XE$ID As FID, F1.XE$Name As FieldName, F2.XE$ID As NotNullable
FROM X$File
INNER JOIN X$Field F1 On
F1.XE$File = XF$ID
LEFT OUTER JOIN X$Field F2 On
F1.XE$ID = F2.XE$Offset And
F1.XE$File = F2.XE$File
WHERE F1.XE$Name Not Like 'NN_%' And
F1.XE$DataType <> 255
Order By XF$Name, F1.XE$Offset
********************************************************
After running the above command, I get this error:
ODBC Error: SQLSTATE = 37000, Native error code = 0
Syntax Error: create table tbl_Index2 as<< ??? >>
Select XF$Name As TableName, F1.XE$ID As FID, F1.XE$Name As FieldName, F2.XE$ID As NotNullable
FROM X$File
INNER JOIN X$Field F1 On
F1.XE$File = XF$ID
LEFT OUTER JO
Driver not capable.
*********************************************************
Any help is greatly appreciated.