开发者

Can SQL Profiler display return result sets alongside the query?

开发者 https://www.devze.com 2022-12-16 22:30 出处:网络
In SQL Profile开发者_StackOverflow中文版r 2005, is it possible to capture a result set in a SQL trace, so that I could see corresponding queries with result sets?...Or is it only a one way trace?

In SQL Profile开发者_StackOverflow中文版r 2005, is it possible to capture a result set in a SQL trace, so that I could see corresponding queries with result sets? ...Or is it only a one way trace?

Thanks! George


No, you can't get the resultset produced by a query included in an SQL trace. You can only tell various statistics about the call (i.e. the query executed, duration, reads etc etc).

Output parameter values are recorded in the trace (if you parse TextData), and you can get it to include the rowcount info in the trace alongside the query. It just won't show you the actual resultset returned by the query.


No, you can't.

But you can capture the SQL statement and parameter values (for parameterised queries) and run these manually in SQL Server Management Studio to obtain the resultset (on the assumption that the query does not modify any data obviously).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号