IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_EST_WMS_SAI_VOLUME_PEND_EST_WMS_SAI_VOLUME]'))
begin
	ALTER TABLE [dbo].[EST_WMS_SAI_VOLUME_PEND] DROP CONSTRAINT [FK_EST_WMS_SAI_VOLUME_PEND_EST_WMS_SAI_VOLUME]
end
go
ALTER TABLE dbo.EST_WMS_SAI_VOLUME_PEND ADD CONSTRAINT
	FK_EST_WMS_SAI_VOLUME_PEND_EST_WMS_SAI_VOLUME FOREIGN KEY
	(
	CD_PED_WMS,
	NR_VOLUME
	) REFERENCES dbo.EST_WMS_SAI_VOLUME
	(
	CD_PED_WMS,
	NR_VOLUME
	) ON UPDATE  NO ACTION 
	 ON DELETE  NO ACTION 