Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting query's field data type with ColdFusion

Status
Not open for further replies.

anniemorin

Programmer
Feb 13, 2001
2
CA
My question is that one:

Is there a way to catch the structure of a table from ACCESS with all the constraints and everything using ColdFusion?

I'm creating generic modules to be used with any table containing different fields. So a table may be named X and contains field1 of type integer, field2 of type string. And the table XY may be composed of field1 which is a date, field2 which is a string and field3 which is an integer.

If I use :

<cfquery name=&quot;&quot; datasource=&quot;&quot; dbtype=&quot;&quot;>
select top 1 * from tablename
</cfquery>

I use a loop on the record and a loop on the columnlist returned by the query.

But how can I know the type of the fields other than using isNumeric, isBoolean, isDate etc ?





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top