Forum Moderators: phranque
Is there a way for me to list all tables and their associated field names using SQL and Cold Fusion code?
Any help is appreciated.
SELECT name FROM sysobjects WHERE (xtype = 'u')
this will return all USER tables in your database
SELECT name, id FROM sysobjects WHERE (xtype = 'u')
will give you all tables.
SELECT name FROM syscolumns WHERE (id = #ID#)
will give you FIELD NAMES for that particular table.