Hi everybody -- I have
<cfset this.datasource = "myDataSource" /> in my Application.cfc file, just after the <component> tag and before the cffunctions. When I create a cfquery, shouldn't I be able to use <cfquery name="queryName" datasource="#this.datasource#"> blah blah </cfquery> instead of hardcoding the datasource name into the query? Thanks in advance for your kind assistance. Scott Williams ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:6101 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
