Skip to content
Advertisement

Updating bool to non-nullable in sql server

I’m looking for the equivalent of the query below for bit data types

 Sql("ALTER TABLE Table_name ALTER COLUMN column INTEGER NOT NULL");

Thanks

Advertisement

Answer

You probably mean:

Sql("ALTER TABLE Table_name ALTER COLUMN column BIT NOT NULL");
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement