Viewing 5 posts - 1 through 6 (of 6 total)
Awesome. I created local variables to hold the values passed to the parameters. Then used the local variables inside the function rather the parameters. Now it runs just as fast...
May 12, 2005 at 3:14 pm
Okay. I've got the execution plans and I'm going to go through them in detail. Something I'm noticing off the bat is that the batch uses Hash Joins where as...
May 12, 2005 at 2:24 pm
I looked at that. The problem is when you look at the execution plan for a function it doesn't go into the internal details of the funtion. There are 2 steps. ...
May 12, 2005 at 1:04 pm
How do you recompile a function?
I've tried dropping and recreating it but still no change.
Also I've tried DBCC Freeproccache to remove the plan out of memory but still no improvement.
May 12, 2005 at 12:49 pm
Here's the function it's a little convoluted.
ALTER FUNCTION DDOverrideComp
(@From smalldatetime,
@To smalldatetime, @Region varchar(5))
RETURNS @table_var TABLE (tableid numeric(18,0) IDENTITY(1,1) primary key clustered,
[Personalid] varchar(40),
[Name] varchar(100),
[mga] varchar(40),
[Phone#] varchar(50),
[BizCode] varchar(5),
[policy]...
May 12, 2005 at 12:00 pm
Viewing 5 posts - 1 through 6 (of 6 total)