Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Negate a bit

Author  Topic 

X-Factor
Constraint Violating Yak Guru

392 Posts

Posted - 2005-02-08 : 10:38:20
Hi,

How do you negate the value of a 'bit' without using a case statement?

Cheers!

TimS
Posting Yak Master

198 Posts

Posted - 2005-02-08 : 10:52:44
Look for
~ (Bitwise NOT)
^ (Bitwise Exclusive OR)

One should do what you want.

Tim S
Go to Top of Page
   

- Advertisement -