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

后端 未结 5 1864
臣服心动
臣服心动 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:27

    The maximal length of the target column is shorter than the value you try to insert.

    Rightclick the table in SQL manager and go to 'Design' to visualize your table structure and column definitions.

    Edit:

    Try to set a length on your nvarchar inserts thats the same or shorter than whats defined in your table.

提交回复
热议问题