I have a procedure that receives a table as a parameter. I need to fill it on then return it to another procedure that executes the first one. But, the problem is that when y compile I receive this error message:
Mens 352, Nivel 15, Estado 1, Procedimiento Person_InsertCloud, Línea 1
The table-valued parameter “@TableServerIds” must be declared with the READONLY option.
Can’t a table as a parameter can be modified? What other options do I have?
Thanks
No. It is one of the restrictions on TVPs.
The restriction is documented:
Instead of filling a table, you can return a table from your second stored procedure using
SELECT.