Profiling statements inside a User-Defined Function

前端 未结 1 506
你的背包
你的背包 2021-01-21 02:40

I\'m trying to use SQL Server Profiler (2005) to track down some application performance problems. One of the calls being made is to a table-valued user-defined function. This f

相关标签:
1条回答
  • 2021-01-21 03:38

    You can't: a multi-statement TVF is a black box and you can only get CPU, Read, Writes etc.

    by "black box" I mean it's a fully encapsulated and opaque series of statements inside another query, and there is no "flow" like you'd get line by line through a stored proc.

    An in-line TVF is expanded like a view or macro into the main query and can be seen.

    Edit: related: Table Valued Function where did my query plan go?

    0 讨论(0)
提交回复
热议问题