I have created a stored procedure that takes a table valued parameter that is a table with a single column of type int. The idea is to simply pass a list of ids in
int
The trick is: don’t pass in the parameter at all. The default value for a table-valued parameter is an empty table.
It is a shame that the exception message is so unhelpful.