Is there a way of comparing two bitmasks in Transact-SQL to see if any of the bits match? I\'ve got a User table with a bitmask for all the roles the user belongs to, and I\
To find all programmers use:
SELECT * FROM UserTable WHERE Roles & 2 = 2