IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_EST_PROD_TRANSF_CONF_EST_PROD_TRANSF_CONF_FASES]'))
begin
	ALTER TABLE dbo.EST_PROD_TRANSF_CONF
		DROP CONSTRAINT FK_EST_PROD_TRANSF_CONF_EST_PROD_TRANSF_CONF_FASES
end
GO
ALTER TABLE dbo.EST_PROD_TRANSF_CONF ADD CONSTRAINT
	FK_EST_PROD_TRANSF_CONF_EST_PROD_TRANSF_CONF_FASES FOREIGN KEY
	(
	CD_CONTROLE,
	CD_CTR_FASES,
	CD_EMP
	) REFERENCES dbo.EST_PROD_TRANSF_CONF_FASES
	(
	CD_CONTROLE,
	CD_CTR_FASES,
	CD_EMP
	) ON UPDATE  NO ACTION 
	 ON DELETE  NO ACTION 