I never encountered a problem of SQL query being too long in terms of number of characters, but there is a maximum number of tables a query can reference (256) and I hit this limitation a few times.
Have you ever encountered a query that SQL Server could not execute because it referenced too many tables?