How to change column datatype in SQL Server database without losing data?
You can easily do this using the following command. Any value of 0 will be turned into a 0 (BIT = false), anything else will be turned into 1 (BIT = true). ALTER TABLE dbo.YourTable ALTER COLUMN YourColumnName BIT The other option would be to create a new column of type BIT, fill it from … Read more