If I define a datasource variable in the application.cfm file in my webroot
shouldn't that variable be available to a cfc inside my webroot/components/
directory?

in webroot /application.cfm
<CFSET datasource = "database_01">

in webroot/components/some.cfc

<!--- CFC forLa Dolce/Sting contest - --->
 <cffunction name="Expedition" access="public" returntype="query" 
output="false">
  <cfquery datasource="datasource" name="Expedition">
   SELECT ID
   FROM tbl_Ecotourism
   </cfquery>
   <cfreturn Expedition>
 </cffunction>


ERROR IM GETTING
The following information is meant for the website developer for debugging 
purposes. 

Error Occurred While Processing Request 
Data source datasource could not be found. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270299
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to