SAP Knowledge Base Article - Preview

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

Symptom

  • 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)


Read more...

Environment

  • 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 15.7.0.504.1012
  • Microsoft Visual Studio 2012

Product

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

Keywords

Software developers kit, Adaptive Server enterprise, dot net, ado.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 for Me (Login required).

Search for additional results

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