title: How to get individual bytes from a SQL binary field
body: <p>I have a binary field in SQL Server which I want to read one byte at time in a SQL function.  In code I would use a byte array. Is there an equivalent in SQL?</p>
  
  <p>I couldn't find anything with google.</p>