UPDATE [MF].[ProductionInventoryDoc] SET [DocStatus] = -1 WHERE DocStatus = 0 GO