title: How can I store a string in a varbinary(max) column using c#
body: <p>How can I store a string in a varbinary(max) column?</p>
  
  <p>I'm havig trouble in the convertion process
  i'm doing this:</p>
  
  <pre><code>    cmd.CommandText = "Insert into " + bdcombo.Text + ".dbo.nomes (id, nome) values (@id, @nome)";
      cmd.CommandType = CommandType.Text;
      cmd.Connection = sqlcon;
  
      cmd.Parameters.Add("@nome", SqlDbType.VarBinary, 20).Value = Convert.ToSByte(textBox1.Text);
  </code></pre>