0
Participant
,
/t5/coldfusion-discussions/error-executing-database-query-only-with-godaddy/td-p/608620
Feb 28, 2007
Feb 28, 2007
Copy link to clipboard
Copied
Has anyone ever had this problem...
I have an Access db setup with a memo field to place news articles on a page. Anytime we try to write over 500 characters it throws the error below. Under 500 characters or with any other hosting company it works just fine.
Error Executing Database Query.
Application uses a value of the wrong type for the current operation.
The error occurred in D:\Hosting\whateverpath\add-news.cfm: line 3
1 : <cfinclude template="include_CheckAuthority.cfm">
2 :
3 : <cfinsert datasource="whateverdatasource" tablename="News">
4 :
5 : <cfset loginpage = "news.cfm?Message=" & URLEncodedFormat("News item added!")>
SQL insert into News (NEWSAUTHOR,NEWSCONTENT,NEWSTITLE) values ( (param 1) , (param 2) , (param 3) )
DATASOURCE whateverdatasource
SQLSTATE
I have spent hours on the phone with these folks and it's clear no one there knows anything about cfserver at all. They shouldn't even be running it in my opinion.
Thanks!
David
I have an Access db setup with a memo field to place news articles on a page. Anytime we try to write over 500 characters it throws the error below. Under 500 characters or with any other hosting company it works just fine.
Error Executing Database Query.
Application uses a value of the wrong type for the current operation.
The error occurred in D:\Hosting\whateverpath\add-news.cfm: line 3
1 : <cfinclude template="include_CheckAuthority.cfm">
2 :
3 : <cfinsert datasource="whateverdatasource" tablename="News">
4 :
5 : <cfset loginpage = "news.cfm?Message=" & URLEncodedFormat("News item added!")>
SQL insert into News (NEWSAUTHOR,NEWSCONTENT,NEWSTITLE) values ( (param 1) , (param 2) , (param 3) )
DATASOURCE whateverdatasource
SQLSTATE
I have spent hours on the phone with these folks and it's clear no one there knows anything about cfserver at all. They shouldn't even be running it in my opinion.
Thanks!
David
TOPICS
Database access
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Participant
,
Mar 01, 2007
Mar 01, 2007
Thanks for the reply Ken, that fixed it alright. I'm going to
have to remember that one!
LEGEND
,
/t5/coldfusion-discussions/error-executing-database-query-only-with-godaddy/m-p/608621#M56748
Mar 01, 2007
Mar 01, 2007
Copy link to clipboard
Copied
i agree that godaddy should not really be offwering cf
hosting unless
they are prepared to go the whole mile with support as well...
but what's the actual error you get? you didn't include it in your post...
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
they are prepared to go the whole mile with support as well...
but what's the actual error you get? you didn't include it in your post...
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/error-executing-database-query-only-with-godaddy/m-p/608622#M56749
Mar 01, 2007
Mar 01, 2007
Copy link to clipboard
Copied
Try this:
<cfquery name="rsAdd" datasource="whateverdatasource">
INSERT INTO News
(NEWSAUTHOR, NEWSCONTENT, NEWSTITLE)
VALUES
(
<cfqueryparam value="#Trim(FORM.NEWSAUTHOR)#" cfsqltype="cf_sql_clob" maxlength="65535">,
<cfqueryparam value="#Trim(FORM.NEWSCONTENT)#" cfsqltype="cf_sql_clob" maxlength="65535">,
<cfqueryparam value="#Trim(FORM.NEWSTITLE)#" cfsqltype="cf_sql_clob" maxlength="65535">
)
</cfquery>
--
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"InkFasT!" <webforumsuser@macromedia.com> wrote in message news:es53lu$804$1@forums.macromedia.com...
> Has anyone ever had this problem...
>
> I have an Access db setup with a memo field to place news articles on a page.
> Anytime we try to write over 500 characters it throws the error below. Under
> 500 characters or with any other hosting company it works just fine.
>
> Error Executing Database Query.
> Application uses a value of the wrong type for the current operation.
>
> The error occurred in D:\Hosting\whateverpath\add-news.cfm: line 3
>
> 1 : <cfinclude template="include_CheckAuthority.cfm">
> 2 :
> 3 : <cfinsert datasource="whateverdatasource" tablename="News">
> 4 :
> 5 : <cfset loginpage = "news.cfm?Message=" & URLEncodedFormat("News item
> added!")>
>
> SQL insert into News (NEWSAUTHOR,NEWSCONTENT,NEWSTITLE) values ( (param 1)
> , (param 2) , (param 3) )
> DATASOURCE whateverdatasource
> SQLSTATE
>
> I have spent hours on the phone with these folks and it's clear no one there
> knows anything about cfserver at all. They shouldn't even be running it in my
> opinion.
>
> Thanks!
> David
>
<cfquery name="rsAdd" datasource="whateverdatasource">
INSERT INTO News
(NEWSAUTHOR, NEWSCONTENT, NEWSTITLE)
VALUES
(
<cfqueryparam value="#Trim(FORM.NEWSAUTHOR)#" cfsqltype="cf_sql_clob" maxlength="65535">,
<cfqueryparam value="#Trim(FORM.NEWSCONTENT)#" cfsqltype="cf_sql_clob" maxlength="65535">,
<cfqueryparam value="#Trim(FORM.NEWSTITLE)#" cfsqltype="cf_sql_clob" maxlength="65535">
)
</cfquery>
--
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"InkFasT!" <webforumsuser@macromedia.com> wrote in message news:es53lu$804$1@forums.macromedia.com...
> Has anyone ever had this problem...
>
> I have an Access db setup with a memo field to place news articles on a page.
> Anytime we try to write over 500 characters it throws the error below. Under
> 500 characters or with any other hosting company it works just fine.
>
> Error Executing Database Query.
> Application uses a value of the wrong type for the current operation.
>
> The error occurred in D:\Hosting\whateverpath\add-news.cfm: line 3
>
> 1 : <cfinclude template="include_CheckAuthority.cfm">
> 2 :
> 3 : <cfinsert datasource="whateverdatasource" tablename="News">
> 4 :
> 5 : <cfset loginpage = "news.cfm?Message=" & URLEncodedFormat("News item
> added!")>
>
> SQL insert into News (NEWSAUTHOR,NEWSCONTENT,NEWSTITLE) values ( (param 1)
> , (param 2) , (param 3) )
> DATASOURCE whateverdatasource
> SQLSTATE
>
> I have spent hours on the phone with these folks and it's clear no one there
> knows anything about cfserver at all. They shouldn't even be running it in my
> opinion.
>
> Thanks!
> David
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Participant
,
LATEST
/t5/coldfusion-discussions/error-executing-database-query-only-with-godaddy/m-p/608623#M56750
Mar 01, 2007
Mar 01, 2007
Copy link to clipboard
Copied
Thanks for the reply Ken, that fixed it alright. I'm going to
have to remember that one!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

