Hi Glen What might be causing it to bomb is if you have an application.cfm file in the directory that you are currently working in without the variable assigned. If you have an application file in that directory, it will prevent any other application files from being read. The only time that it will go up the directory branch is when you don't have an application.cfm file in the current directory. It will traverse up the directory tree until it finds an application file.
Hope this helps... Gordon Lipp Systems Technician Guelph Public Library http://www.library.guelph.on.ca > -----Original Message----- > From: Glenn Shukster [mailto:[EMAIL PROTECTED]] > Sent: March 1, 2002 3:03 PM > To: cfTalk > Subject: [CFTALKTor] Application.cfm question > > > I thought Application.cfm was included in all files automatically. > > In some files the below line will bomb > <cfquery name="qryName" datasource="#ODBC_DSN#"> > ... > > In Application.cfm > <cfset ODBC_DSN = "MyODBCName"> > > In many of the cfm files this works perfectly without doing anything. > In a few others I have to do a cfinclude of the application.cfm or it > bombs. > Why? > -- > Cheers > Glenn Shukster (Logic Fundamentals Inc.) Thornhill, Ont. Canada > Phone:(905)771-6458 Fax:(905)771-6819 www.logicfundamentals.com > President of TDUG www.tdug.com > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: Glenn Shukster > <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: "Lipp, Gord" <[EMAIL PROTECTED]> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
