IF COL_LENGTH('[dbo].[resempco]', 'CEP') = 9
BEGIN
  ALTER TABLE [dbo].[resempco] ALTER COLUMN cep VARCHAR(10);
END