Table Fields to New Table (1 Viewer)

NigelShaw

Registered User.
Local time
Today, 10:12
Joined
Jan 11, 2008
Messages
1,573
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
 

CJ_London

Super Moderator
Staff member
Local time
Today, 10:12
Joined
Feb 19, 2013
Messages
16,607
loop through the tabledefs collection and insert your new table
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:12
Joined
May 7, 2009
Messages
19,232
run test01 on Module1.
the structure of each table will be saved to allTableStructure table.
see code in Module1.
 

Attachments

  • sample.zip
    26.9 KB · Views: 312

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:12
Joined
May 7, 2009
Messages
19,232
you're welcome, back!
 

Users who are viewing this thread

Top Bottom