In this blog post, you’ll learn more about the Sybase Error Statement size or complexity exceeds server limits and the reason for receiving this error
Sybase SQL Error Message
Statement size or complexity exceeds server limits
Reason for this Error
The statement contains one or more constructs whose size make it impossible to process. Increasing the maximum cache size, page size, or stack size may resolve this error. Consider rewriting the query so that the internal limit is not exceeded.