In this blog post, you’ll learn more about the Sybase Error Connection is not allowed to have table locks when executing this statement and the reason for receiving this error
Sybase SQL Error Message
Connection is not allowed to have table locks when executing this statement
Reason for this Error
An attempt was made to execute a statement by a connection that is holding table locks. Because the statement could release all locks, including those held before the statement started, the locks must be released before the statement can be executed.