GetDSNs()
Last updated November 15, 2002
Version: 1 | Requires: CF6 | Library: DatabaseLib
Description:
Gets a list of registered datasources.
Return Values:
Returns an array.
Example:
<!---
Commented out for security reasons.
<cfdump var="#getDSNs()#">
--->
Parameters:
No arguments.
Full UDF Source:
/**
* Gets a list of DSNs.
*
* @return Returns an array.
* @author Raymond Camden (ray@camdenfamily.com)
* @version 1, November 15, 2002
*/
function getDSNs() {
var factory = createObject("java","coldfusion.server.ServiceFactory");
return factory.getDataSourceService().getNames();
}
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016