In CF5 (and maybe CF 4.5?), one way is to use the undocumented
"CF_IsColdFusionDataSource" function:

<CFSET DSN = "MyDSN">

<CFIF CF_IsColdFusionDataSource(DSN)>
        Valid DSN
<CFELSE>
        Invalid DSN
</CFIF>

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


-----Original Message-----
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 10:23 AM
To: CF-Talk
Subject: Best way to check if a datasource is valid


Hi 

Could anyone tell me the best way to verify a datasource without access
to the registry?

Thanks


Kola



______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to