There are no records in the SqlDataRecord enumeration. To send a table-valued parameter with no rows, use a null reference ...