SAP Knowledge Base Article - Preview

1955037 - OLEDB error "COUNT field incorrect" or "Attempt to read or write protected memory" - SDK for SAP ASE


  • Creating a Visual Studio Report using OLEDB
  • create temp table + select into + select being executed in a query.
    SDK 157ga generates this error:
    Query execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand)
    ? [07002] [Native Code: 30070] [ASEOLEDB]COUNT field incorrect
  • Upgrading to SDK 15.7 ESD#7 generates this error:
    Attempted to read or write protected memory.



  • SAP Software Developer Kit (SDK) 15.7
  • Sql Server Reporting Services 2008 R2
  • Sybase ASE OLEDB Provider
  • odbc
  • Script Version Status
    OLEDB MDA Scripts 04-06-2010 20:23:52.35 Complete


Sybase SDK 15.7


Attempted to read or write protected memory, [ASEOLEDB]COUNT field incorrect, ASE OLE DB, oledb, parameters, query, @value, @parameter, @param, , KBA , BC-SYB-SDK , SDK , Problem

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.