The ## around the DSN are valid, especially if the #dsn# is a variable that
contain the real DSN.  This variable could be set just about anywhere, but
is usually done in the Application.cfm (or other similar file) using the
syntax:

<cfparam name="dsn" default="mydsn">

This way, if you ever have to change the DSN, you only have to change it in
one place, as opposed to every single place you used that DSN, if it were
hard-coded.  This is generally a good coding practice to follow.

Todd Ashworth

----- Original Message -----
From: FARHANAHMAD <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 04, 2000 1:15 AM
Subject: Re: What am I doing wrong?


> hello
>
> i am new in cold fusion programming but i check your code and in my
> opnion there is only one syntax error and taht is datasource="#dsn#"
> you can use without hash sign(#) e.g datasource="dsn" if you do this
> your error meghit be remove.
>
>
> Thanks
> Farhan
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to