View references '%1', which is a temporary object. Views can only refer to permanent objects

Error constant SQLE_VIEW_OVER_TEMP_OBJECT
ODBC 2 State 42000
ODBC 3 State 42000
Parameter 1 Temporary object name.
Severity 16
SQLCODE –766
SQLSTATE 42U00
Sybase error code 4412
Probable cause

Views must refer only to permanent objects, not to temporary objects such as local temporary tables.