Solved

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

Posted on 2003-11-18
4
969 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 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...
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

749 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