INSERT INTO Orders
OrderName, OrderDate
OUTPUT INSERTED.OrderId
SELECT OrderName, OrderDate
FROM @tvp (table valued parameter)
I want to include other columns from the tvp that are not inserted into the table in my output clause.
For e.g. OUTPUT INSERTED.OrderId, @tvp.OrderGuidId
This throws a compilation error. Is there any other way to get around it?
Anonymous