title: SQL Server Convert integer to binary string
body: <p>I was wondering if there was an easy way in SQL to convert an integer to its binary representation and then store it as a varchar.</p>
  
  <p>For example 5 would be converted to "101" and stored as a varchar.</p>