SAP Knowledge Base Article - Preview

2805819 - Large number of orphan #temp tables using batch sql in python or JDBC - SAP ASE


  • Large number of orphan #temp tables were left in the tempdb
  • The explicit drop is not dropping the table and is left as orphaned.
  • A batch sql were run using pyodbc, pysybdb or JDBC.
  • The batch sql include "select into #temp.. select * from #temp drop table #temp"
  • Example in pysybdb:
    cur.execute("select id into #mytable from sysobjects select * from #mytable drop table #mytable")



Adaptive Server Enterprise 16.0


SAP Adaptive Server Enterprise 16.0


python,pyodbc, java, JDBC,PreparedStatement
, 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.