title: Compare Images in SQL
body: <p>What is the best way to compare to Images in the database?
  I tried to compare them (@Image is the type Image):</p>
  
  <pre><code>Select * from Photos 
  where [Photo] = @Image
  </code></pre>
  
  <p>But receives the error "The data types image and image are incompatible in the equal to operator".</p>