title: How Do I Insert a Byte[] Into an SQL Server VARBINARY Column
body: <p>I have a byte array highlighted below, how do I insert it into a SQL Server database Varbinary column?</p>
  
  <pre><code>byte[] arraytoinsert = new byte[10]{0,1,2,3,4,5,6,7,8,9};
  
  string sql = 
      string.format
      (
      "INSERT INTO mssqltable (varbinarycolumn) VALUES ({0});",WHATTODOHERE
      );
  </code></pre>