SAP Knowledge Base Article - Preview

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

Symptom

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.

 c1
 -----------
           1


Read more...

Environment

Adaptive Server Enterprise 16.0

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0

Keywords


global temporary table issue, GTT name conflict, temporary table error, database troubleshooting, CR 825790, ASE upgrade, global temporary table naming, database error message, Msg 208 error, sp_help usage, table naming conventions , 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.