Yeah, you need to name them differently. =) Nate ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 02, 2002 12:30 PM Subject: Re: developing on local machine
> Thanks Nate. So.... if my datasource has the same name locally as it does > remotely, does this mean I'm SOL? There is no way to 'scope' this -- it has to > be named differently? Thanks. Palyne > > On 2 Jun 2002 at 12:21, Nate Nielsen wrote: > > You should place some logic such as this in your application.cfm > > <cfif cgi.server_name eq '127.0.0.1'> > > <cfset request.DSN = "local_dsn_name"> > > <cfelse> > > <cfset request.DSN = "server_dsn_name"> > > </cfif> > > then just use #request.DSN# for your datasource attribute in your queries > > and you are all set. =) > > Nate Nielsen > > [EMAIL PROTECTED] > > > > ------------------------------------------------------------------------- > This email server is running an evaluation copy of the MailShield anti- > spam software. Please contact your email administrator if you have any > questions about this message. MailShield product info: www.mailshield.com > > ----------------------------------------------- > To post, send email to [EMAIL PROTECTED] > To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
