May 24, 2010 at 10:55 pm
All,
I tried to see IO cost for a function. I ran the function like
SET STATISTICS IO ON
SELECT dbo.fngetstrategy('A3_Fund',NULL)
But it didn't show any IO details.
I tried to include it inside the function. But this time i got some error message.
Msg 443, Level 16, State 15, Procedure fnGetStrategyId_k, Line 9
Invalid use of side-effecting or time-dependent operator in 'SET STATUS ON' within a function.
how to see the IO cost for a function?
karthik
May 24, 2010 at 11:38 pm
http://sqlinthewild.co.za/index.php/2009/04/29/functions-io-statistics-and-the-execution-plan/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply