The AdventureWorks Data Dictionary specifies that the [EmailPromotion]
column in the [Contact]
table is an int
and that:
0 = Contact does not wish to receive e-mail promotions.
1 = Contact does wish to receive e-mail promotions.
and [Employee].[CurrentFlag]
uses bit
as follows:
0 = Inactive
1 = Active
My question has two parts:
- Is there a good reason to use the
int
datatype in placebit
(both uses will be documented)? - What naming conventions for boolean and boolean-like columns do you recommend? (e.g. IsActive, ActiveFlag, Active)