Thanks Steve! I learned from experimenting that database names and 
datasource names MAY contain a hyphen, regardless of CF version. CF version 
2 allowed a hyphen in the query name, but beginning with version 3, hyphens 
are not allowed - just underscores.

Thanks,

Tom Forbes



At 01:00 PM 3/22/01, you wrote:
>I can't remember back that far to know whether the variable naming rules
>were more lax then but as far as CF4.52 is concerned, variable names must
>contain only letters, numbers and underscores, and must start with a letter.
>This translates to meaning that your query names should follow the same
>convention as the query name forms part of the variable name when you use it
>to prefix the column name. The datasource name is fine as that isn't
>constrained by CF but the operating system upon which CF is installed. I
>haven't experimented with a range of different characters but I know that
>spaces work.
>
>Steve
>
>-----Original Message-----
>From: Tom Forbes [mailto:[EMAIL PROTECTED]]
>Sent: 22 March 2001 13:37
>To: CF-Talk
>Subject: Hyphen Use in CF 4.52
>
>
>
>I wrote an application in CF 2.0 several years ago. My provider just moved
>it to CF 4.52 and I get DataSource errors.
>
>My question: is it OK to use a hyphen in either/both the datasource name
>and/or the query name, or is this now illegal?
>
>Thanks very much,
>
>Tom
>
>*******************************************************
>MedMatrix Used Medical Equipment Web Portal
>http://www.medmatrix.com
>V:(407) 772-3427       F:(407) 772-3428
>Tom Forbes,  Forbes Web Consulting, Inc.
>178 S. Monterey Isle Blvd., Longwood, FL - 32779
>*******************************************************
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to