That solution works fine.
But I have the following error message:
Message
Executed as user: MYDOMAIN\MYUSER.
NbError: 631
[SQLSTATE 01000] (Message 0) File attachment or query results size exceeds allowable value of 1000000 bytes.
[SQLSTATE 42000] (Error 22050). The step failed.
How would you look if the query result is exceeding the maximum?