Cannot use UPDATE with OUTPUT clause when a trigger is on the table
Visibility Warning: Don’t the other answer. It will give incorrect values. Read on for why it’s wrong. Given the kludge needed to make UPDATE with OUTPUT work in SQL Server 2008 R2, I changed my query from: UPDATE BatchReports SET IsProcessed = 1 OUTPUT inserted.BatchFileXml, inserted.ResponseFileXml, deleted.ProcessedDate WHERE BatchReports.BatchReportGUID = @someGuid to: SELECT BatchFileXml, ResponseFileXml, … Read more