Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

CDbCommand failed to execute the SQL statement: SQLSTATE[07002]

  • hmueller_mpi
  • hmueller_mpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago - 3 years 1 month ago #223715 by hmueller_mpi
Hi all,

I have tried to update the version 5.2.4 to 5.2.9 but it stopped with the follwoing error, before I was able to check/update the database. The database needs an upgrade from version 478 to 479.

Error:
CDbCommand failed to execute the SQL statement: SQLSTATE[07002]: [Microsoft][ODBC Driver 17 for SQL Server]Das COUNT-Feld ist nicht korrekt, oder es besteht ein Syntaxfehler. 
File: ...\
application\helpers\update\updatedb_helper.php, line 5047.

Information about the system:
- OS: Windows Server 2019
- Webserver: IIS
- PHP: 7.4.27
- DB: MS SQL Server Express (14.0.3381.3)

I have found the following information on a Microsoft website ( docs.microsoft.com/en-us/sql/odbc/refere...iew=sql-server-ver15 ):
07002 COUNT field incorrect
The number of parameters specified in SQLBindParameter was less than the number of parameters in the SQL statement contained in *StatementText.

SQLBindParameter was called with ParameterValuePtr set to a null pointer, StrLen_or_IndPtr not set to SQL_NULL_DATA or SQL_DATA_AT_EXEC, and InputOutputType not set to SQL_PARAM_OUTPUT, so that the number of parameters specified in SQLBindParameter was greater than the number of parameters in the SQL statement contained in *StatementText.
Does anyone have any idea how to fix this problem?
Last edit: 3 years 1 month ago by hmueller_mpi.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #223716 by holch
Sounds like the problem that was discussed last week in the German part of the Forum:

forums.limesurvey.org/forum/german-forum...-nach-comfort-update

bugs.limesurvey.org/view.php?id=17831

Have a look.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: hmueller_mpi
The topic has been locked.
  • hmueller_mpi
  • hmueller_mpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #223718 by hmueller_mpi
Thank you for your help!!!

The update worked now!

Database update
2022-01-17 15:01
The database has been updated from version 478 to version 479.

 
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose