In this blog post, you’ll learn more about the Sybase Error Too many columns and the reason for receiving this error
Sybase SQL Error Message
Too many columns
Reason for this Error
You executed a FOR XML EXPLICIT or FOR JSON EXPLICIT statement with too many expressions in the SELECT list. Rebuilding the database with a larger page size could prevent this error.