Exception:ToomanyparameterswereprovidedinthisRPCrequest.Themaximum
Exception: Too many parameters were provided in this RPC request. The maximum is 2100.
成都创新互联公司主要业务有网站营销策划、网站设计制作、成都网站设计、微信公众号开发、微信小程序开发、H5高端网站建设、程序开发等业务。一次合作终身朋友,是我们奉行的宗旨;我们不仅仅把客户当客户,还把客户视为我们的合作伙伴,在开展业务的过程中,公司还积累了丰富的行业经验、全网营销推广资源和合作伙伴关系资源,并逐渐建立起规范的客户服务和保障体系。
[Microsoft][SQL Native Client][SQL Server]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.
SQL语句的报错
如果是SELECT查询OR条件语句形如:SELECT * FROM tablename WHERE x1 OR x2 OR x3 OR x4 OR ... OR x2101,OR条件个数超过2100就会报错,可以改为UNION ALL。
如果是SELECT查询IN条件语句形如: SELECT * FROM tablename WHERE columnname IN (1,2,3,4,5, ........ , 2101 ),IN参数个数超过2100,会报上面的错误。可以创建临时表,将这些数据写入临时表,再关联。
--Create new table Create Table temp (myvalues uniqueidentifier) -- Join new table with your table SELECT t1.* FROM tablename t1 JOIN temp t2 ON t1.myvalues = t2.myvalues
存储过程和函数的报错
对于存储过程和函数,参数最大个数为2100
参见如下限制:
https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server
新闻标题:Exception:ToomanyparameterswereprovidedinthisRPCrequest.Themaximum
本文URL:http://myzitong.com/article/gdsggo.html