Tables related by key constraint must both be permanent, or both be temporary and not created with ON COMMIT DELETE ROWS. For global temporary tables they must both be shared if one is shared

Error constant SQLE_INVALID_FOREIGN_KEY_TABLE
ODBC 2 state 42000
ODBC 3 state 42000
Severity 16
SQLCODE -850
SQLSTATE 42R02
Sybase error code 1709
 Probable cause