Forum Replies Created

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

  • RE: Addition of NOLOCK to subquery causes slower query execution

    Thanks Grant. I've corrected my message to be more convenient.

    I've also update my blog post to define what does scan "initialization" mean.


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: Addition of NOLOCK to subquery causes slower query execution

    Long time passed…

    Do you have a solution so far? Explanation?

    Did you read the blog post?

    Do you know that this problem is applied even in 2014 sql server?

    Did you examined the...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: Addition of NOLOCK to subquery causes slower query execution

    Investigated some detailes here:

    http://www.queryprocessor.com/nolock-and-top-optimization/


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: Which way is better? To join or not to join or does it matter?

    It still showing sad smiles after fixing and putting plan text into |code| tag instead of |quote|.

    Yes, that is sad query =))


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: Which way is better? To join or not to join or does it matter?

    GilaMonster (10/25/2012)


    Correlated subqueries do not run per row of the outer query (unless triangular joins or top 1 ... order by).

    One more case when optimizer is not able to decorrelate...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: sum every two number combination

    Hi!

    If you are interested in how recursive cte is working, you may check out this blog post by Rob Farley


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: Get one record on each category

    Hi! As far as I understand you need the opposite, Category and random sample project from each one. Then, just change places Project and ProjectCategory in ChrisM@Work example.

    Also, consider the...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: SQL query eliminating rows problem

    Dominic_godfrey (9/24/2012)


    Hi all, thanks again for the replies it worked great, plus it was interesting to see the different ways to approach it. I used Paul's in the end and...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: SSMS Query Logging

    Phil Parkin (9/24/2012)


    If you re-read my first post you'll see that I've tried this, but thanks anyway 🙂

    I'm sorry, I missed it!

    I know one more add-in SSMSBoost[/url], the developers announced...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: SSMS Query Logging

    Also found this one:

    SSMS Tools Pack add-in

    As it's said on the utility page:

    Query Execution History logs every SQL statement that you run in a file on your disk or in...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: SSMS Query Logging

    What about server side trace? Is it an option or not for some reasons?


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: SELECT FOR UPDATE

    You may use output clause to output the affected rows back to client

    Smth like this.

    with u as (select top(1) * from ATH_SyncEntities where Status = 0 order by EntityType, ID)

    update...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: T-SQL Help Needed

    Evil Kraig F (9/20/2012)


    Perhaps, I've been accused of optimism before... rarely, but it's happened. I'm sorry to hear your political system is falling apart however.

    Actually it is falling...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: T-SQL Help Needed

    Evil Kraig F (9/20/2012)


    We don't, not in this. You're about 10 years behind us

    You are to optimistic to evaluate. I think our country has left behind 50 years. And...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: T-SQL Help Needed

    Please, I am not an authority. Everything I have stated is simply my opinion. Why would Itzik choose Mr.Celko, you'd have to ask him. I have no...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

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