Symptom
- A complex query on CDS view/object fails with Msg 251
Msg 251, Level 16, State 3: Server 'XXX', Line 1: Unable to allocate ancillary table for query optimization. Maximum number of tables in a query (128) exceeded.
- For Business Suite, you may see sql error 251 reported in dev trace file (dev_w*):
C (251) [ZZZZZ] [SAP][ASE ODBC Driver][Adaptive Server Enterprise]Unable to allocate ancillary t
C able for query optimization. Maximum number of tables in a query (128) exceeded. - The ASE version is higher than ASE16 SP03 PL06 which has fix of SAP CR 815102.
Read more...
Environment
- SAP Adaptive Server Enterprise (ASE) 16.0
- SAP Adaptive Server Enterprise (ASE) 16.0 for Business Suite
Product
SAP Adaptive Server Enterprise 16.0 ; SAP NetWeaver Application Server for ABAP 7.52
Keywords
Msg 251, 251, ancillary, worktable , KBA , 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 for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.