• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

PM for SQL Server 2008

mudskipper

TPAFKAk2p2
Joined
Sep 12, 2009
Messages
26,487
Likes received
6,761
Thanks received
1,926
Location
Null island
Dear SQL Server 2008

Please, please don't, without any warning or authorisation, ditch a query plan that has worked perfectly well and efficiently over a year and replace it with a plan that causes the query to run 120x slower.

Doing so is very annoying.

Many thanks
mudskipper
 
Dear SQL Server 2008

Please, please don't, without any warning or authorisation, ditch a query plan that has worked perfectly well and efficiently over a year and replace it with a plan that causes the query to run 120x slower.

Doing so is very annoying.

Many thanks
mudskipper

A poor work(wo)man always blames their tools.
 
When did you last update the statistics on the database(s)?
I suggest you do that first, and see whether it starts to use the old (correct) query plan again.
 
I suggest you do that first, and see whether it starts to use the old (correct) query plan again or breaks loads of others.

Well, it might...
 
When did you last update the statistics on the database(s)?
I suggest you do that first, and see whether it starts to use the old (correct) query plan again.

Did that. Didn't work. Users not happy, so had to resolve quickly. Adding ' OPTION (FORCE ORDER) ' seemed to do the trick, but guess this could happen to any query if the stats change.
 
USE PLAN query hint.

Sorted.
 
I suppose that with not having any SQL Server skills I shouldn't have changed it myself. But can you fix it?
 

Advertisers

Back
Top