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 fund out what the function is called from this information or what procedure it is in? Thanks for the advice
You have to understand this: if duration is = 0 then you will trace a lot of sql internal things without meanings. Trace something > 0, at least 300 milliseconds.
Ok thanks, in the end I found the function to be a simple replace of 0 to null for which gets called a lot of times. I have filtered out this function from my tuning template.