SAP Knowledge Base Article - Preview

1906538 - ODBC: SQL with unbound parameters fails - SDK for SAP ASE


  • ODBC fails with a "wrong datastream" error when executing a stored procedure with unbound parameters.
  • Example Command executed:
    p_odbc_get_row_count @user_code='username', @specified_Date = '08/27/2013'
  • Error:
    [Sybase][ODBC Driver][Adaptive Server Enterprise]A wrong datastream has been sent to the server. The server was expecting token 32 but got the token 0. This is an internal error.
    (NativeError: 3811)OLE DB Provider for ODBC Drivers)



  • SAP Adaptive Server Enterprise (ASE) 15.7
  • SAP Sybase Software Developer Kit (SDK) 15.7 SP100
  • Adaptive Server Enterprise ODBC Driver by Sybase
  • odbc
  • ODBC MDA Scripts
  • Microsoft Visual Studio 2012


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; Sybase Software Developer Kit 15.7


Software developers kit, Adaptive Server enterprise, dot net,, vs, visual studio. vs2012, Open Client, ASP, Sybase, CR#741176, CR# 741176, CR741176 , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed

About this page

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

Search for additional results

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