IF  EXISTS (SELECT * FROM sys.indexes 
				WHERE 
					object_id = OBJECT_ID(N'[dbo].[PDV_VD_RC_CLI_FIDELI_VALE_COMPRA]') 
					AND name = N'PK_PDV_VD_RC_CLI_FIDELI_VALE_COMPRA'
					)
ALTER TABLE dbo.PDV_VD_RC_CLI_FIDELI_VALE_COMPRA
	DROP CONSTRAINT PK_PDV_VD_RC_CLI_FIDELI_VALE_COMPRA
GO

ALTER TABLE dbo.PDV_VD_RC_CLI_FIDELI_VALE_COMPRA ADD CONSTRAINT
	PK_PDV_VD_RC_CLI_FIDELI_VALE_COMPRA PRIMARY KEY CLUSTERED (CD_CTR_VALE_CP,CD_VD, CD_FILIAL,CD_EMP) 
WITH( STATISTICS_NORECOMPUTE = OFF, 
			IGNORE_DUP_KEY = OFF, 
			ALLOW_ROW_LOCKS = ON, 
			ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
