SQL Server 配置文件 - 查看参数值? [英] SQL Server Profile - View Parameter Values?
本文介绍了SQL Server 配置文件 - 查看参数值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 SQL Server Profile 中,我让它跟踪 SP:StmtStarting 事件.TextData"包含如下信息:
In SQL Server Profile, I have it tracing SP:StmtStarting events. The "TextData" includes information like the following:
EXEC MySortedProc
@param, NULL,
@param2, NULL
我需要跟踪什么(或者我可以吗?)来查看这些参数的值?
What would I have to trace (or can I?) to view the value of those parameters?
推荐答案
有点害怕误解了这个问题,但您可以对 RPC:Completed 事件进行分析,该事件将在 textdata 列中返回存储过程执行的结果,例如:
Somewhat scared to have misunderstood the question, but you could profile on the RPC:Completed event which will return the result for stored procedure execution in the textdata column like:
exec usp_yourproc @param = 'value'
exec usp_yourproc @param = 'value'
这篇关于SQL Server 配置文件 - 查看参数值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文