ALTER TABLE VS4TInventoryMB
ADD FOREIGN KEY (TInMTPdtCode, TInMCustom1, TInMSerialNo, TInMLotNo, TInMLotDate)
REFERENCES VS4TInventoryLOT(TIMCTPdtCode, TIMCCustom1, TIMCSerialNo, TIMCLotNo, TIMCLotDate)
GO