?
Solved

Microsoft OLE DB Provider for SQL Server error '80040e57'

Posted on 2003-11-18
4
Medium Priority
?
980 Views
Last Modified: 2012-06-21
accountManagerID= 2
assignedto=
select * from crm_accountManager where accountManagerID = 2
19-11-2003 9:53:14 AM
2003-11-19 9:53:00.000
INSERT INTO crm_notes (contactID, accountManagerID, noteDate, noteTime, noteTypeID, [note], noteDateFollowUp, noteTimeFollowUp, followUpNote) VALUES (1769, 67,CAST('2003-11-19 9:53:00.000' as smalldatetime),'', 8, 'test', '2003-12-19', '9:52:46 AM', '')
INSERT INTO crm_noteOutbound (noteID, callType, custReaction, noPurchase, price, callOutcome, term) VALUES (28235, 'general', 'other', 'expensive', 'competitive price', 'negative','Term 1')

Microsoft OLE DB Provider for SQL Server error '80040e57'

String or binary data would be truncated.

/note_action.asp, line 189


Coding should be right, just with the data base area I think could some one help?

Xenia
0
Comment
Question by:XeniaGoh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 40 total points
ID: 9775918
This means you're passing data too the database that is too long for your defined definition.  Verify your field definitions in the database and compare the lengths with the data you're trying to insert...
0
 
LVL 8

Expert Comment

by:Dishan Fernando
ID: 9779218
If you use
SET ANSI_WARNINGS OFF
Then Data will be truncated . But this is not good thing to do.
0
 
LVL 34

Expert Comment

by:arbert
ID: 9779241
Exactly--changing the ANSI settings only masks the problem.....
0
 
LVL 8

Expert Comment

by:Dishan Fernando
ID: 9784656
Yes I agree with arbert
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question