SAP Knowledge Base Article - Preview

2245421 - SQLCODE=(-201): Procedure <LWP_name> expects parameter <parameter_name> - SAP ASE

Symptom

  • Streamlined dynamic SQL is enabled
     
  • ESQL/C application raises the following error when using cursors with multiple bind variables:

** SQLCODE=(-201)
** ASE Error
** Procedure *sq1348607062_0756049436ss* expects parameter @sql0_vName, which was not supplied.

  • If a cursor has only one bind variable, the application does not raise this error. 
      
  • For example:
        no error:       EXEC SQL DECLARE nice_cur CURSOR FOR    select id, name from sysobjects where name in (:vName);
        error:            EXEC SQL DECLARE nice_cur CURSOR FOR    select id, name from sysobjects where name in (:vName, :vName);


Read more...

Environment

SAP Adaptive Server Enterprise (ASE) 15.7

Product

SAP Adaptive Server Enterprise 15.7

Keywords

"functionality group", "host variable", "embedded SQL",  lightweight, LWP, 721889, CR721889 , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , BC-SYB-SDK , SDK , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.