В зависимости от того, сколько битовых полей вы должны использовать, вы можете сгенерировать все возможные настройки, используя что-то вроде этого:
with test as (
select 0 as myId, cast(0 as bit) col1, cast(0 as bit) col2, cast(0 as bit) col3
union all
select myId + 1,
case when myId & 1 = 1 then cast(1 as bit) else cast(0 as bit) end,
case when myId & 2 = 2 then cast(1 as bit) else cast(0 as bit) end,
case when myId & 4 = 4 then cast(1 as bit) else cast(0 as bit) end
from test
where myId<100
)
select distinct col1, col2, col3 from test