Table Fields to New Table

NigelShaw

Registered User.
Local time
Today, 19:55
Joined
Jan 11, 2008
Messages
1,575
Hey there!

Long time since ive walked these corridors, hope everyone is ok :)

I have a database with about 50 or so tables. I ran a database documenter so that i can get a list of all fields and it generated 36 pages with roughly 4000 fields. I need to create a new single table with 4 columns (ColumnType is optional) and then add the field names and table name to the new table.

ID - TableName - FieldName - ColumnType

Is there an easy method to accomplish this? the thought of reading through and typing out all of the fields is a little overwhelming...

any help greatly appreciated


Thanks
 
loop through the tabledefs collection and insert your new table
 
run test01 on Module1.
the structure of each table will be saved to allTableStructure table.
see code in Module1.
 

Attachments

you're welcome, back!
 

Users who are viewing this thread

Back
Top Bottom