Hi there - I recently ran a trace to be used by the DTA. The file grew incredibly quickly and in the trace I can see masses of the following all with a duration of 0 Object Type = 20038 - FN These are all stmtcompleted events. How can I tell what is causing this? I assume this is some function call in a procedure somewhere, but how can I find out where the function is being called from or what procedure it is in? Also should I filter out this function call to reduce the size of my trace file? Thanks for the advice
THe event id on profiler 20038 refers to be Scalar SQL Function which is an evil, http://sqlblogcasts.com/blogs/simons/archive/2008/11/03/TSQL-Scalar-functions-are-evil-.aspx fyi
HI thanks - I found this to be a function thats replacing 0 with null and have filtered it from my tuning template.