> Hi Folks - 
> 
> I am feeling dumb and either I am missing something simple or it's way 
> above me.
> 
> In my application.cfc, I was going to have a cfinclude that would pull 
> in my DB Name, user name, and password.
> 

I would store those variables in application scope in onApplicationStart(). 
Then reference them from there. 

But I pass them into data access cfc objects in my init()'s in 
onApplicationStart(), and save to variables in the data access cfc. Then in 
your queries, it'll look like <cfquery datasource="#variables.dsn#"....

That's just how I do it. I don't know about others. 

Will 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341611
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to