Skip to content
Advertisement

SQLSTATE[IMSSP]: Tried to bind parameter number 65536. SQL Server supports a maximum of 2100 parameters

I want to ask something what error is this. I want to display report book to PHP but the result showing like in picture

Error

Here is my report book:

JavaScript

and here is the result showing in ASP.NET:

ASP.NET

Advertisement

Answer

You need to consider the following:

  • You need to use named (:name) or question mark (?) parameter markers in the prepared statement.
  • You need to use an unambiguous datetime format (yyyymmdd in your case) for the value of :TanggalStart and :TanggalEnd parameters.

An example, based on your code:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement