IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Control_PointCropping' AND COLUMN_NAME = 'States')
BEGIN
    ALTER TABLE Control_PointCropping DROP COLUMN States;
END
go
alter table Control_PointCropping add States int null
go
update Control_PointCropping set States=0
go