title: Insert varbinary data into SQL Server database
body: <p>I have this table:</p>
  
  <pre><code>   (&lt;NUM_TRF int
     ,&lt;NAME, varchar(255),&gt;
     ,&lt;DESCRIPTION, text,&gt;
     ,&lt;REPORT, varbinary(max),&gt;)
  </code></pre>
  
  <p>I try to create a script in SQL Server 2008, in order to insert a line on my local database,</p>
  
  <pre><code>INSERT INTO [MY_DB_APP].[dbo].[CONNECT_USER]
  VALUES(1, 'name', 'description', Cast('wahid' As varbinary(max)) )
  GO
  </code></pre>
  
  <p>but I get this error:</p>
  
  <blockquote>
    <p>String or binary data would be truncated.<br>
    The statement has been terminated.</p>
  </blockquote>