IF EXISTS
(
    SELECT COLUMN_NAME
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'CoFamilyCode'
          AND COLUMN_NAME = 'GenericCode'
)
    ALTER TABLE dbo.CoFamilyCode
    ALTER COLUMN GenericCode VARCHAR(16) NOT NULL;

