January 18, 2025
Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]The incoming request has too many parameters
Comments
(0)
January 18, 2025
Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]The incoming request has too many parameters
Newbie 3 posts
Followers: 0 people
(0)

Hello, CF Community:

I got this error

Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.

When it executed some query like the one below:

<cfquery name=”aQuery” datasource=”#application.DSN#”>
    SELECT          aColumn
     FROM           aTable
     AND            aId IN (#aVeryLongList#”)
 </cfquery>

One way that I can think of to fix it is to break “aVeryLongList” into a smaller list, but how do I do that?

But do you have any other ways to resolve it?

Thank you so much

0 Comments
Add Comment