SAP Knowledge Base Article - Preview

2115565 - SELECT INTO query fails with error 225: "Cannot run query--referenced object ... dropped during query optimization." - SAP ASE 15.7 SP122

Symptom

  • Executing a SELECT INTO query to generate a temporary table
  • Query includes UNION operator
  • Query may include an outer join
  • User executing query has been granted predicated privileges

For example:

select col1 = "C" --, col2 = C.col2
into #t1
from t1 A, t2 B --, t3 C
where A.col3 *= B.col3
and 1=2
union
select "D" -- , -- F.col3
from t4 D, t2 E -- , t3 F
where D.col3 *= E.col3
and 1=2

  • Error 225 is reported:

Msg 225, Level 16, State 11:
Server SYBASE', Line 3:
Cannot run query--referenced object (name NAME NOT RECOVERABLE) dropped during
query optimization.


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) 15.7 SP122
  • SAP Adaptive Server Enterprise (ASE) 15.7 SP130

Product

SAP Adaptive Server Enterprise 15.7

Keywords

KBA , 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.