I have just added a computed column to a table, and it is showing up as an int
and I'd like to make it a bit
is this possible? I'm having a hard time finding any info on this. Below is the computed column:
IsActive AS case when DateDecommissioned is null then 0 else 1 end PERSISTED
bit
column won't be used unless heavily skewed. Are you on 2008? You could look into filtered indexes.PERSISTED
and it will not impact index performance?PERSISTED
just means that it won't take up space in the data page. Doesn't affect any other indexes that use it.