Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 3,348 total)

  • RE: Stairway To SQL Server Columnstore Indexes Level 2: Columnstore Storage

    mshparber (5/5/2015)


    Thanks for the detailed explanation!

    I am still missing something...

    It my user whant to see a crosstab report of NetPrice Amount by Month by Product - how the Columnstore index...

  • RE: CHECK Constraints vs NULL values

    henrik staun poulsen (5/5/2015)


    So is this what is needed?

    ALTER TABLE dbo.Test ADD CONSTRAINT CK_Test_EndDateAfterStartDateAndNotNull CHECK (EndDate > StartDate AND EndDate IS NOT NULL);

    GO

    No, if you don't want null values, you...

  • RE: Stairway To SQL Server Columnstore Indexes Level 1: A First Look At Columnstore Indexes

    Vijay.Govindan (4/30/2015)


    Hi Hugo,

    You are welcome! Yes, I forgot about that, being read only limits its use in a Datawarehouse / ETL environment in our case. Thanks for the link, I...

  • RE: Stairway To SQL Server Columnstore Indexes Level 1: A First Look At Columnstore Indexes

    Vijay.Govindan (4/30/2015)


    Hi Hugo,

    Thanks for the article pointing out the savings related to I/O and Batch mode. Have you done any tests on Updates / Deletes/ Inserts with and without a...

  • RE: CDC Administration

    Stewart "Arturius" Campbell (4/30/2015)


    Interesting question, thanks...

    Now i'm wondering why this might be required, given the temporary nature of objects in tempdb...:-P

    I am convinced that it will never be required.

    When I...

  • RE: COALESCE in Left Join

    Carlo Romagnano (4/29/2015)


    Toreador (4/29/2015)


    Only 54% correct? I was expecting close to 100%!

    It depends if one has enough time to read correctly the question of th day.

    Yup! I *almost* answered wrong...

  • RE: Using a Window Aggregate in an Aggregate Query

    Eirikur Eiriksson (4/27/2015)


    Another thing to keep in mind is the somewhat strange OVER defaults, recommend always filling those in rather than relying on the supplied defaults. Koen has a good...

  • RE: Using a Window Aggregate in an Aggregate Query

    palotaiarpad (4/26/2015)


    Hmm. According to BOL, if OVER used with a SUM, then an order by clause is required...

    As others already said, BOL is wrong.

    OVER() with normal aggregate functions (like SUM)...

  • RE: Filtered Indexes

    Carlo Romagnano (4/22/2015)


    Good question!

    I do not like "Filtered indexes", they are too much limited. I prefer indexed view.

    They are different tools for different purposes. You should use each where appropriate.

    Koen...

  • RE: Use Of Cursor Vs Simple While Loop

    PHYData DBA (4/21/2015)


    This is a lot of words that mean nothing, explain less, and contradict some of your other words.

    Did you read through all the posts here?

    Did you read...

  • RE: Use Of Cursor Vs Simple While Loop

    PHYData DBA (4/21/2015)


    Hugo Kornelis (4/21/2015)


    So I compare various ways of using ROW_NUMBER to run the while loop versus using IDENTITY to run the while loop.

    quote]

    As I said... Of your own...

  • RE: Use Of Cursor Vs Simple While Loop

    PHYData DBA (4/21/2015)


    Hugo Kornelis (4/21/2015)


    PHYData DBA (4/21/2015)


    Hugo Kornelis (4/21/2015)


    I don't like the script, and I like the advice to use WHILE instead of CURSOR even less....

    This can be "fixed" by...

  • RE: Illegal CTEs

    Ed Wagner (4/21/2015)


    What if your code ran too fast and you wanted to slow it down? Between the pivot and the rcte, that should do the trick. 😛

    XPath is...

  • RE: Use Of Cursor Vs Simple While Loop

    PHYData DBA (4/21/2015)


    Hugo Kornelis (4/21/2015)


    I don't like the script, and I like the advice to use WHILE instead of CURSOR even less....

    This can be "fixed" by first storing the results...

  • RE: Use Of Cursor Vs Simple While Loop

    I don't like the script, and I like the advice to use WHILE instead of CURSOR even less.

    My take on this:

    1. Set-based is (almost) always faster than iterative. Avoid both...

Viewing 15 posts - 1,351 through 1,365 (of 3,348 total)