IF  NOT EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[PDV_VD_DEV_EST_PROD_IMP_EST_NF_ENT]') AND name = N'IX_PDV_VD_DEV_EST_PROD_IMP_EST_NF_ENT')
BEGIN 
ALTER TABLE dbo.PDV_VD_DEV_EST_PROD_IMP_EST_NF_ENT ADD CONSTRAINT
	IX_PDV_VD_DEV_EST_PROD_IMP_EST_NF_ENT UNIQUE NONCLUSTERED 
	(
	CD_IMP,
	CD_PROD,
	CD_VD,	
	CD_EMP,
	CD_FILIAL,
	CD_IT
	) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
ALTER TABLE dbo.PDV_VD_DEV_EST_PROD_IMP_EST_NF_ENT ADD CONSTRAINT
	IX_PDV_VD_DEV_EST_PROD_IMP_EST_NF_ENT UNIQUE NONCLUSTERED 
	(
	CD_IMP,
	CD_PROD,
	CD_VD,	
	CD_EMP,
	CD_FILIAL,
	CD_IT
	) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	END