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

Posted on 2003-11-18
Last Modified: 2012-06-21
accountManagerID= 2
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?

Question by:XeniaGoh
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
LVL 34

Accepted Solution

arbert earned 20 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...

Expert Comment

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

Expert Comment

ID: 9779241
Exactly--changing the ANSI settings only masks the problem.....

Expert Comment

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

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

738 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