William Kossack wrote: >OK I found the function CFusion_GetODBCDSN which is >supposed to return the datasource names from the >coldfusion administrator > >the oreilly book gives the example of > > ><cfset Thedatasourcenames=CFusion_GetODBCDSN()> > <table> > <tr><th>Name</th><TH>Description</TH></tr> > <cfoutput query="Thedatasourcenames"> > <TR><td>#Name#</td><TD>#Description#</TD></TR> > </cfoutput> > </table> > >but it does not return anything > >what am I missing? > > I can only find reference to this being an undocumented function in CF4.5 and, unfortunately, can't find a good reference for undocumented tags and functions for CF5. The CF4.5 reference hints that it is used exactly as you have above, so I can only assume that it is only a cf4.5 function and is not available in cf5, or the DSNs have been created outside of the CF administrator and this function only references ODBC DSN information under the allaire registry entries I pointed you to previously.
If anyone out there knows differently or has a decent undocumented CF5 reference, then please correct me and drop in the url to the reference. Regards Stephen. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:431 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
