LyndonOHRC
Programmer
I've already asked this question on the Microsoft: Access Queries and JET SQL Forum and no one had a practical solution.
I'm using the following code to get the list of table names from a database then printing the field names from columnlist. I would like to print field name and field size if there is any way to do it.
Thanks
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
I'm using the following code to get the list of table names from a database then printing the field names from columnlist. I would like to print field name and field size if there is any way to do it.
Code:
<cfquery name="GetTableNames" datasource="ORI">
SELECT Name
FROM MSysObjects
WHERE Type=1 AND Flags=0
</cfquery>
<cfoutput query="GetTableNames">
<cfquery name="GetFieldNames" datasource="ORI">
Select *
From #GetTableNames.Name#
</cfquery>
#GetTableNames.Name# (#NumberFormat(GetFieldNames.RecordCount)# Records)<br>
<cfloop from="1" to="#ListLen(GetFieldNames.columnlist)#" index="i">
#ListGetAt(GetFieldNames.columnlist,i)#,<br>
</cfloop>
</cfoutput>
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey