• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Retrieve list of datasources

Is there a way to get a list of datasources registerted in the coldfusion administrator?
0
rot299
Asked:
rot299
1 Solution
 
pinaldaveCommented:
I am sure that you can not get the names of them through any other way then logging in the admin of coldfusion.
Because this information is very critical.
Regards,
---Pinal
0
 
MauseCommented:
Hi

try this:

<cfscript>
factory = CreateObject("java", "coldfusion.server.ServiceFactory");
datasouorce = factory.DataSourceService.getDatasources();
</cfscript>
<cfdump var="#datasouorce#">

This will give you a structure width all datasources and some more information about the datasources

Mause
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now