The incoming request has too many parameters. The server supports a maximum of 2100 parameters

后端 未结 6 1148
野性不改
野性不改 2020-12-16 10:33

I have this seemingly simple linq-to-sql query that searches some data in several columns; something like this:

List TheTableIDs = list of IDs (s         


        
6条回答
  •  余生分开走
    2020-12-16 11:14

    Simple - as long as TheTAbleID's contains less than 2100 ID's then - it is not legal to do that.

    Cut the table into blocks of 2000 and then query each block separately, possibly in multiple threads.

提交回复
热议问题