sql server 2008 r2 - Looking for a SQL bitwise alternative that is sargable -


i inheriting lot of code this...

select * dbo.items ( option & @optionsum = @optionsum) 

this has become problem, calculation not sargable , dataset large enough there performance implications.

any suggestions on alternative using bitwsie operation in clause give me same functionality sargable? integer value stored in option column integer calculated bitwise operation , unable change value.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -