SELECT MachineID, MachineName, count(ID) as Total, sum(Size) as TotalSize
FROM Files
join Machines on Files.MachineID = Machines.MachineID
Where Files.MachineID In(sql.Append(string.Format("@MachineId{0}", i));
group by Files.MachineID,MachineName
Now, when the machinId counter is less than 2100, the request is executed, and if it goes beyond 2100, an error occurs Error:
Invalid tabular data stream (TDS) remote procedure protocol (RPC) protocol flow. Too many parameters were provided in this RPC request. Maximum 2100.
how can I increase the limit or just not get this error .. and put the values in a gridview thanks ..
source
share