Viewing 5 posts - 1 through 6 (of 6 total)
The Hint FORCESEEK, seems to do the trick.
Analysing the "bad" execution plan, I notice that the searches where done with index scan instead of index seek, incresing drastically the reads...
May 20, 2015 at 8:50 am
May 18, 2015 at 3:00 am
This is the QUERY constructed.
declare @Destinations table (Destination nvarchar(50))
insert into @Destinations (Destination)
Select Distinct 'K2SQL:' + CODE collate Latin1_General_CI_AS as destination from Claims.dbo.t_usersEntityRelation A
inner join (
...
May 15, 2015 at 2:51 am
It's getting complicated to get the bad execution plans. I'm using profiler -> performance events -> show plan all and show plan XML
But after some minutes I get " There...
May 15, 2015 at 2:33 am
Hi thank you for the replies.
What I meant with dinamic query is that part of the SQL code is passed to the stored procedure as a parameters. EXample:
exec SP_SELECT_ROWS_K2_CLAIMS_WF @SectionId=13,',@FirstRow=1,@RowCount=1500,...
May 13, 2015 at 5:46 pm
Viewing 5 posts - 1 through 6 (of 6 total)