dbTalk Databases Forums  

False string truncation error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss False string truncation error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Trowbridge
 
Posts: n/a

Default False string truncation error - 07-02-2004 , 01:50 AM






We haev a DTS package that this week has decided to fail
with this error -
Step Error Source: Microsoft Data Transformation Services
(DTS) Package
Step Error Description:The task reported failure on
execution. (Microsoft OLE DB Provider for SQL Server
(80040e57): The statement has been terminated.) (Microsoft
OLE DB Provider for SQL Server (80040e57): String or
binary data would be truncated.)
Step Error code: 8004043B
Step Error Help File:sqldts80.hlp
Step Error Help Context ID:1100

Only problem is, we can't find any truncation happening !
or any bad data, or any error at all really !

The package calls a stored procedure that runs several
other procedures, that all write to a progress log table,
and when the package fails, it appears that every log
message has been produced indicating success on every step.
I tried a profiler trace and got success all the way
through, and then the package fails.

Its got me confused !

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: False string truncation error - 07-02-2004 , 02:16 AM






The error would suggest you are trying to squeeze a string into a character
field that is not sized accordingley.

Try this

USE TempDb

GO

declare @s varchar(50)

set @s = 'DTS is the best ETL tool on the market'

CREATE TABLE HoldMyString(col1 varchar(20))

INSERT HoldMyString VALUES(@s)

GO

DROP TABLE HoldMyString

--Result

Msg 8152, Level 16, State 9, Line 6

String or binary data would be truncated.

The statement has been terminated.



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Jim Trowbridge" <jtrowbridge (AT) adelaidebank (DOT) com.au> wrote

Quote:
We haev a DTS package that this week has decided to fail
with this error -
Step Error Source: Microsoft Data Transformation Services
(DTS) Package
Step Error Description:The task reported failure on
execution. (Microsoft OLE DB Provider for SQL Server
(80040e57): The statement has been terminated.) (Microsoft
OLE DB Provider for SQL Server (80040e57): String or
binary data would be truncated.)
Step Error code: 8004043B
Step Error Help File:sqldts80.hlp
Step Error Help Context ID:1100

Only problem is, we can't find any truncation happening !
or any bad data, or any error at all really !

The package calls a stored procedure that runs several
other procedures, that all write to a progress log table,
and when the package fails, it appears that every log
message has been produced indicating success on every step.
I tried a profiler trace and got success all the way
through, and then the package fails.

Its got me confused !



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.