Is there a Boolean data type in Microsoft SQL Server like there is in MySQL?

TinTin picture TinTin · Jun 29, 2010 · Viewed 751.2k times · Source

Is there a Boolean data type in Microsoft SQL Server like there is in MySQL?

If so, what is the alternative in MS SQL Server?

Answer

kristian picture kristian · Jun 29, 2010

You could use the BIT datatype to represent boolean data. A BIT field's value is either 1, 0, or null.