Background documentation-10601: SQL command is the empty string Locate this document in the navigation structure

 

Explanation

The SQLDBC_Statement::execute or SQLDBC_PreparedStatement::prepare method that was called could not be executed, because no SQL statement was entered, or because 0 was specified as the length.

User Response

The following options are available:

  • Transfer the SQL statement as a character set in the sql parameter of the SQLDBC_Statement::execute r SQLDBC_PreparedStatement::prepare method.

  • Set the correct length in the sqlLength parameter.

  • If you are using UNICODE data, configure the correct character set (Encoding) for the SQL statement.