Is there an XOR operator or equivalent function in SQL Server (T-SQL)?
<> is generally a good replacement for XOR wherever it can apply to booleans.
<>