Forum Replies Created

Viewing 15 posts - 1,381 through 1,395 (of 5,502 total)

  • RE: How to optimize this query

    Since the CTE still contains the join to the views I wouldn't expect a major improvement.

    As I stated before, one of the methods to improve the performance of such kind...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: temp

    I strongly vote against just the shrinking of tempdb.

    Tempdb didn't expand to that size without a reason. And, as long as the reason has not been found and taken care...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Cursor possibility?

    Here's what I would do:

    Step 1: extract the columns belonging together (e.g. [LN 00005_RcvCo] and [LN 00005 CtrlStnFlag]) into a separate table with just the primary key of the original...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to optimize this query

    A view (assuming it's not an indexed view) usually just holds the definition of the query.

    When referencing such a view in another query, SQL Server will use the underlying definition...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to optimize this query

    without seeing the actual execution plan it's almost impossible to tune it any further. Especially since there seem to be views involved (vw_categoryColsQuestionLORAll vw_surveyCategoryHierarchyFlat). Those views might contain code that's...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (6/22/2011)


    ALZDBA (6/22/2011)


    Steve Jones - SSC Editor (6/21/2011)


    Just an update, the horse looks good. Vet came today, said there will be a scar, but full recovery...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Running Total and then every 20

    Following opc.three's line of thought:

    Why don't you populate the "flag" together with the running total calculation?

    Since the "flag" value depends on the previous "flag" value, it's just another running total...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Update record based on another just-updated record

    Please read and follow the advice given in the first article referenced in my signature on how to post SQL code questions.

    We'll need table def and sample data ina ready...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Help with formating a QUERY ???

    You might consider having a look at the related link in my signature (strong hint: the name is related to perform a "Cross Tab" task)...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: My organization is being using Sql server 2000 from past years, now they want to move to the SQl Server 2008

    There might be a confusion between indexed views and "ordered" views.

    In SS2K it's possible to control the order of the rows returned via ORDER BY in the view definition.

    SS2K8 will...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Error on sql

    To be as precise as the question is: most probably an issue with the query. 😉

    If you decide to post a more detailed question you might get a more detailed...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Query Problem - Please Help

    As you might have noticed, this is a MS SQL Server forum.

    Maybe you'll find better answers on a Oracle forum... 😉



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Rows horizontally, no PIVOT

    Here's an alternative that should "slightly" outperform the previous solution...

    It's the rather classic CrossTab approach (see the link in my signature for details).

    ;WITH cte AS

    (

    ...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Assistance with multiple columns accessing same table to get values

    UNPIVOT the data to get one row per project and rep, join it to the User table to assign the display name and either use PIVOT or the CrossTab method.

    If...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Lessons Learned from a Large Virtualization Implementation

    Very interesting article. Thank you for providing the info.

    At the place I work we've had a virtualization discussion recently with the (outsourced) hardware team. They presented a concept to reduce...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 1,381 through 1,395 (of 5,502 total)