Advertisement

07.08.2005 at 01:29PM PDT, ID: 21485348
[x]
Attachment Details

Error : String or binary data would be truncated.

Asked by anup001 in ColdFusion Application Server

Tags: binary, data, would, string, truncated

I am trying to submit some form values to the database

However i am getting an error when i insert something like (E. Jensen) or N/o . or such special characters in text fields like street. The error is

Error Executing Database Query.  
[Macromedia][SQLServer JDBC Driver][SQLServer]String or binary data would be truncated.  
 
The error occurred in E:\docs_secure\icepe\addhvp.cfm: line 9
 
7 : values('#EVALUATE('form.sitename')#','#EVALUATE('form.street')#','#EVALUATE('form.city')#','#EVALUATE('form.region')#'
8 : ,'#EVALUATE('form.county')#','#EVALUATE('form.zip')#','#EVALUATE('form.state')#','#EVALUATE('form.colocator')#',
9 : '#EVALUATE('form.siteowner')#','#EVALUATE('form.hvpowner')#','#EVALUATE('form.hvptype')#','#EVALUATE('form.phone')#','#EVALUATE('form.note')#')
10 : </cfquery>
11 : <cfquery  name="getsid1" datasource="#dbdsn#" username="#dbuser#" password="#dbpw#">
 

--------------------------------------------------------------------------------
 
SQL    insert into site_info (sitename,street,city,region,county,zip,state,colocator_name,sowner_name,owner_hvp,type_of_hvp,phone_no,note) values('McCall','Leonard Avenue, (E. Jensen )','Fresno','' ,'','','CA','Larry Duba', 'PGE','Unknown','None','268-0441','')  
DATASOURCE   sqldatas
VENDORERRORCODE   8152
SQLSTATE   22001
 

What do i need to do here?
Start Free Trial
[+][-]07.08.2005 at 01:43PM PDT, ID: 14400610

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.08.2005 at 02:44PM PDT, ID: 14401046

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.08.2005 at 04:37PM PDT, ID: 14401653

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.08.2005 at 04:38PM PDT, ID: 14401658

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.08.2005 at 10:03PM PDT, ID: 14402584

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: binary, data, would, string, truncated
Sign Up Now!
Solution Provided By: trailblazzyr55
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32