Share via


SQL statement parameter is required for non-prepared SqlExec( ) calls (Error 1472)

You must either use SQLPREPARE( ) first or include a SQL statement in the call to SQLEXEC( ).

  • SQLPREPARE( ) has not been called.

    Include a SQL statement directly in SQLEXEC( ) or call SQLPREPARE( ) before calling SQLEXEC( ).

  • The prepared state has been cleared because SQLEXEC( ) was called with a cSQLCommand argument or because SQLPREPARE( ) was called.

    Call SQLPREPARE( ) again.