>>
>>Open DBC as a table and run following query
>>
>>SELECT LEFT(db1.ObjectName,50) AS TableName, LEFT(db2.ObjectName,50) AS FieldName ;
>> FROM mydbc db1 JOIN mydbc db2 ON db1.ObjectId = db2.ParentId ;
>> WHERE db1.ObjectType = "Table" ;
>> AND db2.ObjectType = "Field" AND db2.ObjectName = lcFieldName
>>
>
>Thank you, Sergey. I was just in the process of doing kind of the same, using LOCATE. Your approach looks much better.
Without using DBC as a table you can loop through tables using ADBOBJECTS() function, but I think, this one is better and simpler, especially if it's needed not in a program.
If it's not broken, fix it until it is.
My Blog