Solved

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

Posted on 2003-11-18
4
964 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
  • 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:dishanf
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:dishanf
ID: 9784656
Yes I agree with arbert
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now