|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there an easy way to build a <cfquery> that will retrieve a list of the field names of a given table? If it matters, dbtype="ODBC"
Thanks in advance. |
|
#2
|
|||
|
|||
|
Quote:
run a query on the table that you know will produce at least one record (& limit it to one record with maxrows="1" to save retrieving more than you need) then you can reference myQuery.columns which is a collection of the column names |
|
#3
|
|||
|
|||
|
Quote:
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Retrieve Field/Column Names from ODBC source table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|