I have a trace file including the TEXTDATA column created by a server-side tracing. Some of the traced queries are very long.
If I re-open the trace file on Profiler, the relevant long query is displayed completely - it has 340 rows of text and 10951 characters.
But after I have imported the trace file into a SQL-Server table, the relevant query seems to be truncated. The table has a ntext column that had been created by the fn_trace_gettable method.
I queried the table using different methods: The text output in SSMS (with maximized number of characters configured) interrupts the output at line 52. The file output of SSMS (*.rpt) also truncates, here the query is getting truncated at line 250.
So right now I wonder if it's possible to get the WHOLE query out of the trace file into a SQL-Server table and how?