SAP Knowledge Base Article - Preview

2271207 - Ado.Net: Error 'Attempting to read past stream EOM' when SELECT with WHERE combined with COMPUTE generates empty result set - SDK for SAP ASE

Symptom

  • Empty Results in a result set generated by a SELECT statement with a COMPUTE clause causes an exception.
  • When adding a WHERE clause (no matching data in the table) to a SELECT statement combined with a COMPUTE clause, it fails with:

Exception: Sybase.Data.AseClient.AseException: Attempting to read past stream EOM.
   at Sybase.Data.AseClient.AseDataReader.Close()
   at System.Data.Common.DbDataReader.Dispose(Boolean disposing)
   at System.Data.Common.DbDataReader.Dispose()
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at TdsAltTest.TdsAltTestExec.ExecAltTest(String sql) in \TdsAltTestExec.cs:line 79


Read more...

Environment

  • SAP Sybase Software Developer Kit (SDK) 15.7
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
  • Adaptive Server Enterprise ADO.NET Data Provider
  • .Net

Product

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

Keywords

ASE, msdev, TDS, ADONET, .net, CR786570, CR#786570, 786570, AltRow, TDS_ALTROW, AltResultSet, tdsadors , 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.