I have used table valued parameter to do so. But I am not aware of the restrictions (if any) of SQL Server on the size of DataTable that we are passing.
Additionally I need to know if there are hidden cons of doing this by TVP method and any other better method of doing the same.
Note: the number 5 million is not the constant here, it is subjected to change every time.
SQL Server table definition:
(
ID bigint;
Size float;
)