How do I select a 1 as a bit in a sql-server view?

Viewed 45357

I want to create a view in which I select something like the following:

select id, name, 1 as active
from users

However, I want the active field, which I am creating in the select statement (it doesn't exist in the table), to be a bit field. Is there a way to do this?

4 Answers
Related