Too many temporary tables in connection

Error constant SQLE_TOO_MANY_TEMP_TABLES
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 16
SQLCODE -817
SQLSTATE 52W41
Sybase error code 13823
 Probable cause