In this blog post, you’ll learn more about the Sybase Error Statement’s size limit is invalid and the reason for receiving this error
Sybase SQL Error Message
Statement’s size limit is invalid
Reason for this Error
FIRST or TOP n are used in a SELECT statement to limit the size of a result. The size limit must be an integer value greater than 0 and less than 9223372036854775807.