Re: Wtf time: "name can't be empty"??
On Thursday 01 Mar 2007, Damien McKenna wrote: > Thanks, and sorry for wasting so much time on this. 100 lines ! "This year I will learn a dependancy injection framework." :-) -- Tom Chiverton Helping to dynamically harvest robust models On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271129 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
On 3/1/07 9:14 AM, Rick Root wrote: >> If you temporarily hard-code the datasource name does it make any >> difference? >>> > > I second this. Maybe the dsn variable is empty and you just don't know it. Argh. That turned out to be the problem. I was moving functions from one app to another where the DSN naming convention was different and forgot to update them. Thanks, and sorry for wasting so much time on this. --Â Damien McKenna - Web Developer [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271118 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Wtf time: "name can't be empty"??
Have you tried removing the WHERE line and assuring that the error goes away. It might point out another problem causing this problem. Errors are often incorrect. Also, I seem to remember something about a field attribute when creating the table where it is required to put in a value on INSERT, which this is not. . . but it's a vague memory so it may be incorrect. -- Daniel Kessler College of Health and Human Performance University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 Phone: 301-405-2545 http://hhp.umd.edu ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271117 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
On 3/1/07, Janet MacKay <[EMAIL PROTECTED]> wrote: > > > If you temporarily hard-code the datasource name does it make any > difference? > > > I second this. Maybe the dsn variable is empty and you just don't know it. Rick ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271114 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Wtf time: "name can't be empty"??
Doh, quite right. Carry on. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: 01 March 2007 09:56 To: CF-Talk Subject: Re: Wtf time: "name can't be empty"?? No, you don't. On 3/1/07, Will Swain wrote: > I thought you had to select the field you were using the WHERE clause on. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271103 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
> http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b19.htm > I have the following CFQuery line: > > I ran into an instance where "ds" had no value so datasource = "" > The error that returned was > name can't be empty If you temporarily hard-code the datasource name does it make any difference? > ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271099 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
No, you don't. On 3/1/07, Will Swain wrote: > I thought you had to select the field you were using the WHERE clause on. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271097 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Wtf time: "name can't be empty"??
Am I being daft here, or is the problem because you aren't selecting name in your query? I thought you had to select the field you were using the WHERE clause on. Does this work: select title, content, name from content_misc_text where name = 'email_text' Cheers Will ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271095 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
Random shot in the dark: I seem to recall that MS SQL server doesn't like fields that end in things like _date (maybe it's CF that doesn't like 'em, actually). It would be silly, but could it be the table name itself, since it ends in _text? Don't think that's it, really, but what the hey. Luck be with you! -PS guess my real advice would be, ignore the line number, as sometimes that can be misleading, and send you on a red herring. Perhaps it's the sponsor.name, or some such, in reality, and for whatever reason, it's firing the wrong error? This is where that FusionDebug would probably come in handy, if you're not already set up thru eclipse by hand. ;-) On 2/28/07, Damien McKenna wrote: > OK. Major confusion here with something that should be drop-dead simple. > CFMX 6.1 hitting a SQL Server 2000 server. > > > select > title, > content > from > content_misc_text > where > name = /> > > > Anyone have any idea why it would give the error "name can't be empty" for > the above statement? I'm thoroughly flummoxed. > > Thanks. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271048 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
perhaps it's not the name column, but the name attribute of the cfquery tag. try changing that around... if it still happens with select top 10 * from tablename then it's not the sql at all. -cameron On 2/28/07, Damien McKenna <[EMAIL PROTECTED]> wrote: > On 2/28/07 4:23 PM, Jochem van Dieten wrote: > > Can you show the exact error message? Is it from CF, the JDBC Driver or > > the database? > > name can't be empty > > The error occurred in C:\inetpub\site\circuits\blah\act_functions.cfm: line > 19 > Called from C:\inetpub\site\circuits\blah\act_functions.cfm: line 72 > Called from C:\inetpub\site\circuits\blah\act_ajax.cfm: line 21 > Called from C:\inetpub\site\index.cfm: line 26 > 17 : > 18 : > 19 : > 20 : select > 21 : title, > Please try the following: > Check the ColdFusion documentation to verify that you are using the correct > syntax. > Search the Knowledge Base to find a solution to your problem. > > Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) > AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3 > Remote Address 68.213.132.14 > Referrer > Date/Time 28-Feb-07 02:27 PM > Stack Trace > at > cfact_functions2ecfm1273117340$funcNOTIFYSPONSOR.runFunction(C:\inetpub\site > \circuits\blah\act_functions.cfm:19) at > cfact_functions2ecfm1273117340$funcFINDDIST.runFunction(C:\inetpub\site\circ > uits\blah\act_functions.cfm:72) at > cfact_ajax2ecfm1486445576.runPage(C:\inetpub\site\circuits\blah\act_ajax.cfm > :21) at cfindex2ecfm1314450034.runPage(C:\inetpub\site\index.cfm:26) > > java.lang.IllegalArgumentException: name can't be empty > at java.security.BasicPermission.init(BasicPermission.java:85) > at java.security.BasicPermission.(BasicPermission.java:118) > at > coldfusion.sql.DataSourcePermission.(DataSourcePermission.java:12) > at coldfusion.sql.DataSrcImpl.check(DataSrcImpl.java:80) > at coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:85) > at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:75) > at coldfusion.sql.SqlImpl.execute(SqlImpl.java:214) > at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447) > (etc ad nausium) > > -- > Damien McKenna - Web Developer - [EMAIL PROTECTED] > The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 > #include > > > > > ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271044 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
Check the username and the password for the datasource in the CF Admin. On 3/1/07, Damien McKenna <[EMAIL PROTECTED]> wrote: > On 2/28/07 4:23 PM, Jochem van Dieten wrote: > > Can you show the exact error message? Is it from CF, the JDBC Driver or > > the database? > > name can't be empty > > The error occurred in C:\inetpub\site\circuits\blah\act_functions.cfm: line > 19 > Called from C:\inetpub\site\circuits\blah\act_functions.cfm: line 72 > Called from C:\inetpub\site\circuits\blah\act_ajax.cfm: line 21 > Called from C:\inetpub\site\index.cfm: line 26 > 17 : > 18 : > 19 : > 20 : select > 21 : title, > Please try the following: > Check the ColdFusion documentation to verify that you are using the correct > syntax. > Search the Knowledge Base to find a solution to your problem. > > Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) > AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3 > Remote Address 68.213.132.14 > Referrer > Date/Time 28-Feb-07 02:27 PM > Stack Trace > at > cfact_functions2ecfm1273117340$funcNOTIFYSPONSOR.runFunction(C:\inetpub\site > \circuits\blah\act_functions.cfm:19) at > cfact_functions2ecfm1273117340$funcFINDDIST.runFunction(C:\inetpub\site\circ > uits\blah\act_functions.cfm:72) at > cfact_ajax2ecfm1486445576.runPage(C:\inetpub\site\circuits\blah\act_ajax.cfm > :21) at cfindex2ecfm1314450034.runPage(C:\inetpub\site\index.cfm:26) > > java.lang.IllegalArgumentException: name can't be empty > at java.security.BasicPermission.init(BasicPermission.java:85) > at java.security.BasicPermission.(BasicPermission.java:118) > at > coldfusion.sql.DataSourcePermission.(DataSourcePermission.java:12) > at coldfusion.sql.DataSrcImpl.check(DataSrcImpl.java:80) > at coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:85) > at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:75) > at coldfusion.sql.SqlImpl.execute(SqlImpl.java:214) > at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447) > (etc ad nausium) -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271036 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
On 2/28/07 4:23 PM, Jochem van Dieten wrote: > Can you show the exact error message? Is it from CF, the JDBC Driver or > the database? name can't be empty The error occurred in C:\inetpub\site\circuits\blah\act_functions.cfm: line 19 Called from C:\inetpub\site\circuits\blah\act_functions.cfm: line 72 Called from C:\inetpub\site\circuits\blah\act_ajax.cfm: line 21 Called from C:\inetpub\site\index.cfm: line 26 17 : 18 : 19 : 20 : select 21 : title, Please try the following: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3 Remote Address 68.213.132.14 Referrer Date/Time 28-Feb-07 02:27 PM Stack Trace at cfact_functions2ecfm1273117340$funcNOTIFYSPONSOR.runFunction(C:\inetpub\site \circuits\blah\act_functions.cfm:19) at cfact_functions2ecfm1273117340$funcFINDDIST.runFunction(C:\inetpub\site\circ uits\blah\act_functions.cfm:72) at cfact_ajax2ecfm1486445576.runPage(C:\inetpub\site\circuits\blah\act_ajax.cfm :21) at cfindex2ecfm1314450034.runPage(C:\inetpub\site\index.cfm:26) java.lang.IllegalArgumentException: name can't be empty at java.security.BasicPermission.init(BasicPermission.java:85) at java.security.BasicPermission.(BasicPermission.java:118) at coldfusion.sql.DataSourcePermission.(DataSourcePermission.java:12) at coldfusion.sql.DataSrcImpl.check(DataSrcImpl.java:80) at coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:85) at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:75) at coldfusion.sql.SqlImpl.execute(SqlImpl.java:214) at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447) (etc ad nausium) -- Damien McKenna - Web Developer [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271022 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
Damien McKenna wrote: > CFMX 6.1 hitting a SQL Server 2000 server. > > > select > title, > content > from > content_misc_text > where > name = /> > > > Anyone have any idea why it would give the error "name can't be empty" for > the above statement? I'm thoroughly flummoxed. Can you show the exact error message? Is it from CF, the JDBC Driver or the database? Jochm ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271012 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Wtf time: "name can't be empty"??
Right... Sorry... I believe you are right about that. -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:39 PM To: CF-Talk Subject: Re: Wtf time: "name can't be empty"?? On 2/28/07 2:29 PM, Mark A Kruger wrote: > The underscore is a wildcard placeholder. Try escaping it like so Name > = 'email[_]text' It should only be doing wildcard placement for "like" statements, not equality. As expected, no difference. --Â Damien McKenna - Web Developer -Â [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271009 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
On 2/28/07 2:37 PM, Damien McKenna wrote: > I'm going to rearrange my code (its a file of functions) to see if there's > something else tripping me up that I'm just not seeing. OK, after moving the function from near the end to the top of the code it still isn't making a difference. Here's the entire file up to that point: 1. 2. select title, content from content_misc_text where name = 'email_text' 3. " /> #msg_body# Note: yes, the cfsilent line is commented out. I had it in there to trim down on whitespace but commented it when it wasn't working. Also, I added in the displayed numbers to pinpoint where it was failing. Thanks folks. -- Damien McKenna - Web Developer [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270986 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
On 2/28/07 2:29 PM, Mark A Kruger wrote: > The underscore is a wildcard placeholder. Try escaping it like so > Name = 'email[_]text' It should only be doing wildcard placement for "like" statements, not equality. As expected, no difference. --Â Damien McKenna - Web Developer [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270983 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
On 2/28/07 1:55 PM, Steve Milburn wrote: > Damien McKenna wrote: >> Anyone have any idea why it would give the error "name can't be empty" for >> the above statement? I'm thoroughly flummoxed. > > It could be that "name" is a reserved word. Try enclosing it in > brackets like so: > where [name] = . It isn't a reserved word in SQL Server 2000 (I checked that one), and also the error isn't coming from the JDBC system anyway. I made the change and, as expected, it made no difference. I'm going to rearrange my code (its a file of functions) to see if there's something else tripping me up that I'm just not seeing. -- Damien McKenna - Web Developer [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270982 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Wtf time: "name can't be empty"??
I thought wildcards are only used when doing a "like" or "PATINDEX" comparison. ~Brad -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:30 PM To: CF-Talk Subject: RE: Wtf time: "name can't be empty"?? The underscore is a wildcard placeholder. Try escaping it like so Name = 'email[_]text' -Mark ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270981 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Wtf time: "name can't be empty"??
The underscore is a wildcard placeholder. Try escaping it like so Name = 'email[_]text' -Mark -Original Message- From: Steve Milburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:04 PM To: CF-Talk Subject: Re: Wtf time: "name can't be empty"?? I just looked it up - "name" does not seem to be a reserved word in SQL Server 2000, but it still may be worth a shot to enclose it in brackets (like Mik suggested as well). Steve > Damien McKenna wrote: > >> OK. Major confusion here with something that should be drop-dead simple. >> CFMX 6.1 hitting a SQL Server 2000 server. >> >> >> select >> title, >> content >> from >> content_misc_text >> where >> name = > /> >> >> >> Anyone have any idea why it would give the error "name can't be >> empty" for the above statement? I'm thoroughly flummoxed. >> >> Thanks. >> >> > It could be that "name" is a reserved word. Try enclosing it in > brackets like so: > > where [name] = . > > Steve > --- > --- > ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270978 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
I just looked it up - "name" does not seem to be a reserved word in SQL Server 2000, but it still may be worth a shot to enclose it in brackets (like Mik suggested as well). Steve > Damien McKenna wrote: > >> OK. Major confusion here with something that should be drop-dead simple. >> CFMX 6.1 hitting a SQL Server 2000 server. >> >> >> select >> title, >> content >> from >> content_misc_text >> where >> name = > /> >> >> >> Anyone have any idea why it would give the error "name can't be empty" for >> the above statement? I'm thoroughly flummoxed. >> >> Thanks. >> >> > It could be that "name" is a reserved word. Try enclosing it in > brackets like so: > > where [name] = . > > Steve > --- > --- > ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270973 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
Damien McKenna wrote: > OK. Major confusion here with something that should be drop-dead simple. > CFMX 6.1 hitting a SQL Server 2000 server. > > > select > title, > content > from > content_misc_text > where > name = /> > > > Anyone have any idea why it would give the error "name can't be empty" for > the above statement? I'm thoroughly flummoxed. > > Thanks. > It could be that "name" is a reserved word. Try enclosing it in brackets like so: where [name] = . Steve --- --- ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270971 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Wtf time: "name can't be empty"??
What if you put square brackets around the column [name], or try using a different column for a test to see if the compiler is confused between name and name (or, is that name, and name?... now I'm confused). Mik At 01:42 PM 2/28/2007, you wrote: >The same error, the only difference is that the debugger highlights the >cfquery line rather than the name= line. > > >On 2/28/07 1:26 PM, Brad Wood wrote: >> What happens if you remove the cfqueryparam since it isn't needed given >> the fact you are passing a constant in? >> >> Where name = 'email_text' >> >> ~Brad >> >> -Original Message- >> From: Damien McKenna [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, February 28, 2007 12:04 PM >> To: CF-Talk >> Subject: Wtf time: "name can't be empty"?? >> >> OK. Major confusion here with something that should be drop-dead >> simple. >> CFMX 6.1 hitting a SQL Server 2000 server. >> >> >> select >> title, >> content >> from >> content_misc_text >> where >> name = > cfsqltype="cf_sql_varchar" >> /> >> >> >> Anyone have any idea why it would give the error "name can't be empty" >> for >> the above statement? I'm thoroughly flummoxed. >> >> Thanks. >> >> > > > ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270970 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
I would also remove the underscores, I hate them in code...(apart from where necessary! :-) "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Damien McKenna To: CF-Talk Sent: Wed Feb 28 18:03:32 2007 Subject: Wtf time: "name can't be empty"?? OK. Major confusion here with something that should be drop-dead simple. CFMX 6.1 hitting a SQL Server 2000 server. select title, content from content_misc_text where name = Anyone have any idea why it would give the error "name can't be empty" for the above statement? I'm thoroughly flummoxed. Thanks. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270969 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Wtf time: "name can't be empty"??
The same error, the only difference is that the debugger highlights the cfquery line rather than the name= line. On 2/28/07 1:26 PM, Brad Wood wrote: > What happens if you remove the cfqueryparam since it isn't needed given > the fact you are passing a constant in? > > Where name = 'email_text' > > ~Brad > > -Original Message- > From: Damien McKenna [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 28, 2007 12:04 PM > To: CF-Talk > Subject: Wtf time: "name can't be empty"?? > > OK. Major confusion here with something that should be drop-dead > simple. > CFMX 6.1 hitting a SQL Server 2000 server. > > > select > title, > content > from > content_misc_text > where > name = cfsqltype="cf_sql_varchar" > /> > > > Anyone have any idea why it would give the error "name can't be empty" > for > the above statement? I'm thoroughly flummoxed. > > Thanks. > > ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270968 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Wtf time: "name can't be empty"??
What happens if you remove the cfqueryparam since it isn't needed given the fact you are passing a constant in? Where name = 'email_text' ~Brad -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 12:04 PM To: CF-Talk Subject: Wtf time: "name can't be empty"?? OK. Major confusion here with something that should be drop-dead simple. CFMX 6.1 hitting a SQL Server 2000 server. select title, content from content_misc_text where name = Anyone have any idea why it would give the error "name can't be empty" for the above statement? I'm thoroughly flummoxed. Thanks. ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270966 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Wtf time: "name can't be empty"??
OK. Major confusion here with something that should be drop-dead simple. CFMX 6.1 hitting a SQL Server 2000 server. select title, content from content_misc_text where name = Anyone have any idea why it would give the error "name can't be empty" for the above statement? I'm thoroughly flummoxed. Thanks. -- Damien McKenna - Web Developer [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270965 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4