How do I flip a bit in SQL Server, Boolean 'NOT' in T-SQL

Use the ~ operator:

DECLARE @Bool bit
SET @Bool = 0
SET @Bool = ~@Bool
SELECT @Boole

Comments

Popular posts from this blog

OCR text detection with google APIs C#

The specified version string contains wildcards, which are not compatible with determinism.

C# Crop white space from around the image