IF EXISTS (SELECT * FROM SYS.INDEXES WHERE NAME = 'IDX_PDV_VD_IT_FISCAL_ALTERACAO')
BEGIN   
 DROP INDEX [IDX_PDV_VD_IT_FISCAL_ALTERACAO] ON [dbo].[PDV_VD_IT_FISCAL_ALTERACAO]
END
GO
IF NOT EXISTS (SELECT * FROM SYS.INDEXES WHERE NAME = 'IDX_PDV_VD_IT_FISCAL_ALTERACAO')
BEGIN
CREATE NONCLUSTERED INDEX IDX_PDV_VD_IT_FISCAL_ALTERACAO
ON [dbo].[PDV_VD_IT_FISCAL_ALTERACAO] ([CD_EMP],[CD_FILIAL],[CD_VD],[CD_IT])
END