Attempted two active database requests

Error constant SQLE_DOUBLE_REQUEST
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –298
SQLSTATE 42W22
Sybase error code 13663
Probable cause

In embedded SQL, you attempted to submit a database request while you have another request in progress. You should either use a separate SQLCA and connection for each thread accessing the database, or use thread synchronization calls to ensure that a SQLCA is only accessed by one thread at a time.