all groups > sql server (alternate) > september 2007 >
You're in the

sql server (alternate)

group:

dumb question


Re: dumb question --CELKO--
9/28/2007 5:55:51 PM
sql server (alternate): [quoted text, click to view]

No, and you should not write SQL that way -- bit flags are too low
level for a high level language. We left BOOLEANs out for good
reasons having to do with 3VL, NULLs and consistent language model.
dumb question news
9/28/2007 8:43:16 PM
Sorry about this. But I've worked primarily in access for years.

Does SQL Server have a boolean or a yes/no data type for its table columns?

Thanks in advance,

Bill


Re: dumb question Tony Rogerson
9/29/2007 10:20:46 AM
Hi Bill,

No it doesn't, people usually use the BIT data type which holds 0 or 1; some
folk like myself use Y or N / T or F in a char(1) column.

Tony.

--
Tony Rogerson, SQL Server MVP
http://sqlblogcasts.com/blogs/tonyrogerson
[Ramblings from the field from a SQL consultant]
http://sqlserverfaq.com
[UK SQL User Community]


[quoted text, click to view]
AddThis Social Bookmark Button