I have a SProc with a Table-valued Parameter, @section
of type dbo.SectionIn
. This param is being used throughout the SProc and I would like to remove some records from it but of course it is ReadOnly by design.
The table-valued parameter "@sections" is READONLY and cannot be modified.
My plan is to copy its contents into a table variable and use it instead.
DECLARE @sectionDups as dbo.SectionIn
INSERT INTO @sectionDups
SELECT *
FROM @sections
My question is will this incur any performance hit in the Query plan and if not, what's the reasoning behind the ReadOnly requirement in the first place?