Is there an XOR operator or equivalent function in SQL Server (T-SQL)?
It is ^ http://msdn.microsoft.com/en-us/library/ms190277.aspx
^
See also some code here in the middle of the page How to flip a bit in SQL Server by using the Bitwise NOT operator