title: String or binary data would be truncated. The statement has been terminated
body: <p>I have met some problem with the SQL server, this is the function I created:</p>
  
  <pre><code>ALTER FUNCTION [dbo].[testing1](@price int)
  RETURNS @trackingItems1 TABLE (
     item       nvarchar  NULL,
     warehouse   nvarchar NULL,
     price int   NULL
  ) 
  AS
  BEGIN
     INSERT INTO @trackingItems1(item, warehouse, price)
     SELECT ta.item, ta.warehouse, ta.price 
     FROM   stock ta
     WHERE  ta.price &gt;= @price; 
  
     RETURN;
  END;
  </code></pre>
  
  <p>When I write a query to use that function like the following it getting the error</p>
  
  <blockquote>
    <p><em>String or binary data would be truncated. The statement has been terminated</em></p>
  </blockquote>
  
  <p>How can I fix this problem?</p>
  
  <pre><code>select * from testing1(2)
  </code></pre>
  
  <p>This is the way I create the table</p>
  
  <pre><code>CREATE TABLE stock(item       nvarchar(50) NULL,
                     warehouse   nvarchar(50) NULL,
                     price int NULL);
  </code></pre>