title: What is this SQL IF doing with the Ampersand?
body: <p>What is this SQL IF doing with the Ampersand?</p>
  
  <pre><code>IF ((@TablesToDeleteFrom &amp; 1) &lt;&gt; 0 AND
              (@TablesToDeleteFrom &amp; 2) &lt;&gt; 0 AND
              (@TablesToDeleteFrom &amp; 4) &lt;&gt; 0 AND
              (@TablesToDeleteFrom &amp; 8) &lt;&gt; 0 AND
              (EXISTS (SELECT UserId FROM dbo.aspnet_Users WHERE @UserId = UserId)))
          BEGIN
      ...
  </code></pre>
  
  <p>This is from the aspnet mebership DB, inside the aspnet_Users_DeleteUser SP.  The @TablesToDeleteFrom is declared as an int and defaulted to 0.  I have not seen the use of the &amp; like this before.</p>