Viewing 15 posts - 76 through 90 (of 286 total)
Even this would work.SELECT DISTINCT [YEAR], ID, 1 AS [ID_COUNT]
FROM @test_data
July 24, 2015 at 5:32 pm
If these 2 nonclustered indexes have only index seeks in sys.dm_db_index_usage_stats then most likely you can drop them without sacrificing performance too much, but if there are a lot of...
July 24, 2015 at 3:49 pm
I don't know how big is tblBidMaster tables, but an index on CityID should help. You can also try to create an index as suggested by optimizer itself:CREATE NONCLUSTERED INDEX...
July 24, 2015 at 12:04 pm
Jayanth_Kurup (7/23/2015)
July 23, 2015 at 11:30 am
In some cases the best solution might be to split very complex query apart using temp tables. This query is definitely not an easy one for optimizer and it tells...
July 22, 2015 at 11:41 pm
DavidDroog (7/22/2015)
Hi DrewI am a human and I disagree. I find it much easier to follow when the clauses are with the table joins.
To each their own...
Regards
David
Seriously? Look at your...
July 22, 2015 at 11:34 pm
DavidDroog (7/22/2015)
thanks for the replies.
@Drew - Sorry, not sure I follow. I am using the inner joins as the filter. The full query is actually dynamic and this is...
July 22, 2015 at 6:38 pm
In most of the cases this will return you plan from the cache for the currently running statement:
select
s.session_id,
r.plan_handle,
substring(h.text, (r.statement_start_offset/2)+1 , case when r.statement_end_offset IN(0,-1)...
June 26, 2015 at 5:53 pm
keshab.basnet (6/26/2015)
June 26, 2015 at 1:17 pm
Mircea (5/21/2015)
May 25, 2015 at 3:24 pm
The query has no sense at all! I urge everyone not to use it.
This join based on spid is simply wrong
from #cpu2 c2 join #cpu1 c1...
May 19, 2015 at 4:31 pm
And you already checked that before and after query plans are the same?
What about wait stats during that time? Any abnormality?
April 8, 2015 at 1:31 pm
Get rid of the loop. This should be your performance concern.
March 26, 2015 at 2:00 pm
Indexed views can be created in any edition of SQL Server. In SQL Server Enterprise, the query optimizer automatically considers the indexed view.
March 26, 2015 at 1:57 pm
Why do you need to drop procedures before upgrade?
Why do you need to drop ALL procedures before upgrade?
I strongly suggest you to rethink your upgrade strategy.
March 26, 2015 at 1:54 pm
Viewing 15 posts - 76 through 90 (of 286 total)