-1

What is the Difference between Bit and Boolean?

Why can't we use boolean in SQL Server 2017.

I tried to use bool in SQL query it showing error.

harsha reddy
  • 72
  • 1
  • 13
  • 1
    "*Why can't we use boolean in SQL Server 2017?"* - SQL Server simply does not support the standard `boolean` data type. –  Aug 12 '19 at 07:15

1 Answers1

4

There is no boolean in SQL Server. Instead it uses BIT type to store 0 or 1.

You can refer this for more info

Jibin Balachandran
  • 3,381
  • 1
  • 24
  • 38