-- Tables

-- Alters
Update [RDS].[T_ELECTRONIC_CERTIFICATE_STATUS] set StatusDateTime = coalesce(StartDate, getdate()) where StatusDateTime is null
GO

exec dbo.sp_AlterDropColumn '[RDS].[T_ELECTRONIC_CERTIFICATE_STATUS]' , 'StatusDateTime', 1, 'datetime NOT NULL'
GO

