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!

List registered datasources 1

Status
Not open for further replies.

gArmitage

Programmer
Aug 9, 2001
4
GB
Hi,

Does anyone know how to get a list of registered datasources in Coldfusion?

The reason? I'm writting a little program to display infomation about the tables/columns in a client installation (some clients have a habit of changing the database and _not_ telling us), so I can see whether anything has been altered.

Many thanks,

Grahame
 
The following code only works if CFREGISTRY tag is enabled in the ColdFusion Administrator

<CFREGISTRY ACTION=&quot;GETALL&quot; NAME=&quot;qDataSources&quot;
TYPE=&quot;ANY&quot; SORT=&quot;Entry&quot;
BRANCH=&quot;HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\odbc.ini\ODBC Data Sources&quot;>


<CFOUTPUT QUERY=&quot;qDataSources&quot;>
#qDataSources.Entry#[COLOR=000080]<br>[/color]
</cfoutput> - tleish
 
Thanks very much.

It does exactly what is says on the tin!!!! s-)

Cheers,

Grahame
 
Hey g, then why no vote for our friend tleish and his time?

I gave him a star, why not you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top