Description | I configured a limesurvey server to use Microsoft SQL Server 2008 as database engine. I tried to import a survey in .lss format into my server, but I get the error: "[Microsoft][ODBC SQL Server Driver][SQL Server]Operand type clash: int is incompatible with text:UPDATE [questions] SET relevance=1 WHERE qid=787"
Apparently, it happens when updating table "limesurvey_questions". The SQL tries to assign value 1 to column "relevance". On my database "relevance" is of type "text", and the SQL syntax tries to assign a int value. Normally on MS SQL Server, you have to use '1' (single quotes are mandatory) for assigning an int value to a text column.
Could you tell me how to modify the SQL syntax in order to add the single quotes? |
---|