Max Length of SQL in TQUERY?

Does anyone know of a maximum length of the sql text you can add for a

I'm adding a large amount of SQL from a text file into a query and it
gets cut off before the end. I've tried using sql.add, sql.loadfromfile
and the same result occurs. I can't shorten the length of text as it
constitutes a distinct set of instructions and needs to be run together.

If there is a limit is there a way of getting round it or increasing

Sent via
Before you buy.