String or binary data would be truncated. The statement has been terminated

后端 未结 5 1858
臣服心动
臣服心动 2020-12-29 01:51

I have met some problem with the SQL server, this is the function I created:

ALTER FUNCTION [dbo].[testing1](@price int)
RETURNS @trackingItems1 TABLE (
   i         


        
5条回答
  •  离开以前
    2020-12-29 02:30

    In my case, I was getting this error because my table had

    varchar(50)
    

    but I was injecting 67 character long string, which resulted in thi error. Changing it to

    varchar(255)
    

    fixed the problem.

提交回复
热议问题