The SQL statement that you entered is too long
Shorten the SQL statement.
Check the value of the CommandBufferSize database parameter and increase it if necessary.