Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 error in insert

Author  Topic 

mana
Posting Yak Master

102 Posts

Posted - 2014-09-24 : 18:03:32
I have the following code and it has this error but i can't understand why. because the type of two tables are the same. can you help me please? actually i copied one table to another.

it has this error:

Msg 8152, Level 16, State 13, Line 1
String or binary data would be truncated.
The statement has been terminated.



insert into dbo.Bewegung
SELECT Teil_Nummer, Datum_Bewegung, Workcenter,Reason_Code,SumOfMenge, Anz_Adjustments, Wert, Teamleader, Zu_Addresse, Von_Addresse, Bereich,
Process, Root_Cause, Kommentar, Fehlteil, Kit, Lieferanten_Nummer, Lieferanten_Name, Teil_benennung, Disponent, Liefer_Quoto, [Wert absolut], Jahr_Bewegung,
Monat_Bewegung, Analyseinstrument, Analyseinstrument_Nummer, Ursachenanalyse, Gegenmassnahme
FROM dbo.Bewegungen_Inventur_Korrekturen
GROUP BY Datum_Bewegung, Teil_Nummer,Reason_Code,Workcenter, SumOfMenge, Anz_Adjustments, Wert, Teamleader, Zu_Addresse, Von_Addresse, Bereich,
Process, Root_Cause, Kommentar, Fehlteil, Kit, Lieferanten_Nummer, Lieferanten_Name, Teil_benennung, Disponent, Liefer_Quoto, [Wert absolut], Jahr_Bewegung,
Monat_Bewegung, Analyseinstrument, Analyseinstrument_Nummer, Ursachenanalyse, Gegenmassnahme



bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2014-09-25 : 00:31:05
Post the table structures of dbo.Bewegungen_Inventur_Korrekturen and dbo.Bewegung


we can help if we know the table structure

--
Chandu
Go to Top of Page
   

- Advertisement -