According this link: Bitwise Operators (Transact-SQL) we can do bitwise operation between binary and int, smallint, tinyint or vice versa.
But how can I make a bitwi
I used bigints for storing both values. This way you'll get more range. If the value is bigger than bigint, you might need to split the values in two bigint and use AND / OR operator combination.