In this blog post, you’ll learn more about the Sybase Error Attempted two active database requests and the reason for receiving this error
Sybase SQL Error Message
Attempted two active database requests
Reason for this Error
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.