To combine multiple SQLTextDoc rows with the same query ID into one easily readable document, perform a SELECT request on the QryLogSQLDocV view.
Example
sel queryid,sqltextdoc from qrylogsqldocv where queryid=977188741514475132;
Export the result set to a file. On the monitor, lines may truncate.
The memory allocated for the input is 32 MB.