SAP Knowledge Base Article - Preview

2434388 - SQL540 when schemacnt changes due to rowcount recompile - SAP ASE for BS / BW


  • loads to empty cubes failing with a technical ASE error.
  • Error 540 encountered during DTP into Infocubes
  • SM21 log
    15:11:23 BTC * BY 4 Database error 540 with SEL access to table /BIC/DSAFICAC304
    15:11:23 BTC * BY 0 > [ASE Error SQL540][SAP][ASE ODBC Driver][Adaptive Server
    15:11:23 BTC * BY 0 > Enterprise]Schema for database object '/BIC/DSAFICAC304' has
    15:11:23 BTC * BY 0 > changed since compilation of this query. Please re-execute
    15:11:23 BTC * BY 0 > query.#
    15:11:24 BTC * AB 0 Runtime error "DBIF_RSQL_SQL_ERROR" occurred.
    SQL540 error, "Schema for database object <> has changed since compilation of this query. Please re-execute query." may be reported erroneously when a SELECT query is executed at transaction isolation level 0 whereby the schema change detection is due to a row count recompilation.



  • SAP Adaptive Server Enterprise (ASE) 15.7 for Business Suite
  • SAP Adaptive Server Enterprise (ASE) 16.0 for Business Suite
  • SAP NetWeaver (NW) - All versions 


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP NetWeaver all versions


SQL540, "ASE SQL Error: 540", schema count, recompile , KBA , BW-SYS-DB-SYB , BW on Adaptive Server Enterprise , BC-DB-SYB , Business Suite on Adaptive Server Enterprise , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

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.