> Does anyone know if it's possible to query a table and find out the data
> types of the fields in a table?

This probably would have been better aimed at CF-Talk, but I'll answer it
here anyway...

select Column_Name, Data_Type, Character_Maximum_Length
from information_schema.Columns
where Table_Name='tableName'

All you have to do is put the name of the table into the "tableName" part of
the where, and even specify the Column_Name if you wish

information_schema.Columns will give you everything but the primary key
information

HTH

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_community or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to