Exception: Too many parameters were provided in this RPC request. The maximum

Exception: Too many parameters were provided in this RPC request. The maximum is 2100.

[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

时间: 2024-10-10 21:47:33

Exception: Too many parameters were provided in this RPC request. The maximum的相关文章

limits the number of elements in an IN predicate to 2100 entries.

org.hibernate.engine.jdbc.spi.SqlExceptionHelper 131 - [TxId : f68db5f5b-qmgnc^1561639897640^271530 , SpanId : 360544073895766848] The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters we

Declarative Exception Handling in Struts

Declarative Exception Handling is the procedure of handling Exceptions declaratively through the help of xml files. It is not needed to include exception-handling code in the java code of the application. The way of handling the exception would be sp

Better exception message for missing @RequestBody method parameter

https://jira.spring.io/browse/SPR-12888 Description When I use @RequestBody on one of my controllers for a required parameter, I need some useful way of saying which parameter was missing if it's not there. The exception message I see currently looks

Exception sending context initialized event to listener inst

详细错误信息如下: 严重: Exception sending context initialized event to listener instance of class com.auth.spring.listener.SpringLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in fi

create feature from text file

'''---------------------------------------------------------------------------------- Tool Name: CreateFeaturesFromTextFile Source Name: CreateFeaturesFromTextFile.py Version: ArcGIS 9.1 Author: Environmental Systems Research Institute Inc. Required

Volley框架源码浅析(二)

尊重原创 http://write.blog.csdn.net/postedit/25921795 在前面的一片文章Volley框架浅析(一)中我们知道在RequestQueue这个类中,有两个队列:本地队列和网络队列 /** The cache triage queue. */ private final PriorityBlockingQueue<Request<?>> mCacheQueue = new PriorityBlockingQueue<Request<

httpcomponents-client-4.4.x

Chapter 1. Fundamentals Prev     Next Chapter 1. Fundamentals 1.1. Request execution The most essential function of HttpClient is to execute HTTP methods. Execution of an HTTP method involves one or several HTTP request / HTTP response exchanges, usu

Understanding and Using Servlet Filters

Overview of How Filters Work This section provides an overview of the following topics: How the Servlet Container Invokes Filters Typical Filter Actions How the Servlet Container Invokes Filters Figure 5-1 shows, on the left, a scenario in which no f

maven+spring boot搭建简单微服务

项目需要使用spring boot,所以自学了几天,仅提供给新手,请根据文档查看-该项目仅是测试项目,并不完善和严谨,只实现了需要使用的基本功能.写该博客一是希望能够帮助刚学习的新人,二是加深自己的印象,如果忘了也可以再看看,有些片段是从其他博客学习来的,如有问题希望能提出来,由衷的表示感谢. 主要开发环境:jdk:1.8: maven:3.3:tomcat:8等. 涉及技术:spring boot.springMVC.maven.JdbcTemplate.json.HttpClient等. 推