Preventing recompile

  • Comments posted to this topic are about the item Preventing recompile

  • 🙂 Good One Steve 🙂

  • An easy one, thanks Steve.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • This was removed by the editor as SPAM

  • Another question where I got to learn something. Thanks. I haven't gotten to play with 2014 yet, but still enjoy learning about it. Perhaps someday, but it won't be for a while yet, I'm sure.

  • Good Question, learned something...

  • Stewart "Arturius" Campbell (10/14/2014)


    Good one, thanks Steve

    I prefer to avoid using query hints, only using them where absolutely necessary, and then only after serious thought...

    The best practice, IMHO.

  • Ed Wagner (10/14/2014)


    Another question where I got to learn something. Thanks. I haven't gotten to play with 2014 yet, but still enjoy learning about it. Perhaps someday, but it won't be for a while yet, I'm sure.

    +1 Thanks for the question Steve.



    Everything is awesome!

  • Nice question. Thanks for sharing

  • Dana Medley (10/14/2014)


    Ed Wagner (10/14/2014)


    Another question where I got to learn something. Thanks. I haven't gotten to play with 2014 yet, but still enjoy learning about it. Perhaps someday, but it won't be for a while yet, I'm sure.

    +1 Thanks for the question Steve.

    +1

    Thank you for the post, Steve, very new one to me.

    (I am playing with 2014 theoretically using the local_help, it has enough material to keep me busy for the rest of my life.)

    ww; Raghu
    --
    The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.

  • What's a scenario where it would make sense to use this?

  • Learnt something new today, thanx.

    Thanks & Best Regards,
    Hany Helmy
    SQL Server Database Consultant

  • Nice question - the fourth option is an amusing trap, but it didn't cTHIS IS CLEARLY SPAM.

    Don't much like query hints, because they are an opportunity for the typical de-optimizer (aka arrogant DBA or Developer) to overrule the optimizer.

    Tom

  • marcia.j.wilson (10/14/2014)


    What's a scenario where it would make sense to use this?

    Probably somewhere that is giving you bad plans or sniffing, and you want to freeze things when you get one. However, I would try to avoid it as it becomes a point of maintenance and if things change, you might wonder why you get stranger things happening.

  • Stewart "Arturius" Campbell (10/14/2014)


    Good one, thanks Steve

    I prefer to avoid using query hints, only using them where absolutely necessary, and then only after serious thought...

    I agree about the query hints. For some reason I believe (in general) the system is smarter than me and can figure it out without my giving it a hint.

Viewing 15 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic. Login to reply