I have a SQL Trace that I'm reading through that has ~500 queries in it.
I am executing all of the queries against my target db with an output to a text file so I can search for my keyword in the results.
I have found the keyword/result one of the queries, but it's difficult to tell which query it belongs to since it just shows column headers.
Is there a way to include the query that ran as part of the query results, or some other method that would help indicate which query it belongs to?
In SSMS Query Settings there's an option for Include the query in the result set', however that compiles all 500 queries at the top of the output, and not interlaced with their corresponding results.