SAP Knowledge Base Article - Preview

3116987 - Query on temporary table returns information from fix table with same name - SAP ASE


When query on a Global Temporary Tables (GTT) that uses an existing user table's name, it will succeed without any error. 

Should get an error that the ##table does not exist

select * from ##t1 -- should get

Msg 208, Level 16, State 1:
Server 'myserver', Line 1:
##t1 not found. Specify owner.objectname or use sp_help to check whether the
object exists (sp_help may produce lots of output).

However, a table called t1 results are returned instead.




Adaptive Server Enterprise 16.0


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0


KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Known Error

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.