Query help!!

  • Thanks to all!

    I succeded to solve the problem using pre-fetch hints .

  • Hadrian (6/27/2012)


    Thanks to all!

    I succeded to solve the problem using pre-fetch hints .

    Please share. Others with a similar problem in the future may benefit.

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden

  • ChrisM@Work (6/27/2012)


    Hadrian (6/27/2012)


    Thanks to all!

    I succeded to solve the problem using pre-fetch hints .

    Please share. Others with a similar problem in the future may benefit.

    I agree.

    I also wonder if statistics were up to date and if actual rows were comparable to estimated rows. I had also wondered about a cartesian product given all those joins, but if the final output is correct I don't think the cartesian is possible any longer.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 3 posts - 16 through 17 (of 17 total)

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