Viewing 4 posts - 1 through 5 (of 5 total)
Thank you all of you for your answers. I am sorry I am not able to provide code or exec plans, but I thought they were not relevant for my...
June 19, 2012 at 10:58 am
Duncan:
I thought about parameter sniffing, but all resource I found about it was related to stored procedures. Nevertheless, I tried wrapping it in stored procedure that would do exactly what...
June 18, 2012 at 10:32 am
In general I agree with you. However, what amazed me the most is the difference between calling function with variables and direct values. Current workaround is to use dynamic sql...
June 18, 2012 at 2:05 am
Hi Gail,
This is inline table valued function. It looks pretty much like this:
CREATE FUNCTION [dbo].[SomeTVF]
( @param1 varchar(50)
, @param2 datetime
, @param3 datetime
) RETURNS TABLE AS
RETURN
(
WITH cte as
(
..
)
SELECT cols
FROM dbo.SomeTVF2(@param1, @param2) t1
LEFT...
June 18, 2012 at 12:44 am
Viewing 4 posts - 1 through 5 (of 5 total)