ColdFusion code to find the datasources in the server
<cfscript>
adminObj = createObject("component","cfide.adminapi.administrator");
createObject("component","cfide.adminapi.administrator").login("CF admin password");
myObj = createObject("component","cfide.adminapi.datasource");
</cfscript>
<cfdump var="#myObj.getDatasources()#">
adminObj = createObject("component","cfide.adminapi.administrator");
createObject("component","cfide.adminapi.administrator").login("CF admin password");
myObj = createObject("component","cfide.adminapi.datasource");
</cfscript>
<cfdump var="#myObj.getDatasources()#">
Comments
Post a Comment