CFLib.org – Common Function Library Project

GetDSNs()

Last updated November 15, 2002

author

Raymond Camden

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();
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson