Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help on a simple Update

Status
Not open for further replies.

victora

Programmer
Feb 11, 2002
118
0
0
US
gentlemen/ladies,
Running on MSSQL Server 2000.
If somebody can tell me what is wrong with this code.

Thanks very much.



Code:
____________________________________
UPDATE MM_Refer
SET Ref_Stat_Cd = 'D',
Upd_User_Name = 'JOHN D NIED',
Upd_Date_Time = GETDATE()
FROM MM_Refer R
INNER JOIN XL_RefIds X
ON R.Ref_Id = X.Ref_Id

WHERE Ref_Stat_Cd = 'AP'
______________________________________
Error Message:
Server: Msg 8152, Level 16, State 4, Line 1
String or binary data would be truncated.
The statement has been terminated.

 
Never mind! Found out my Upd_User_Name length is only 10.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top