Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,183 total)

  • RE: help me...

    Well, that depends on your setup.

    1. When was the record you deleted added/inserted into the database?

    2. When was your last backup?

  • RE: INSERT A Record Based on Count

    Now your just being mean Jeff ... LOL 😀

    Correct me if I'm wrong, but isn't your first part nothing more than RBAR and the second true SET Based?

    😛

    [EDIT/UPDATE] --> ...

  • RE: INSERT A Record Based on Count

    OK, now it's my turn to throw a stick in the wheel. *maybe*

    Wouldn't physical/logical reads and such depend on the platform, disk/file or memory structure you have set up for...

  • RE: INSERT A Record Based on Count

    Jeff Moden (11/13/2007)


    I've found is that in some cases one is much better than the other two

    In what way? Not necessarily looking for an example, but how were they...

  • RE: INSERT A Record Based on Count

    Matt Miller (11/13/2007)


    It's odd - because the CTE is giving me nothing but 1's in the ENGCount (not incrementing).

    *Laughs* you might want to look at the query again Matt....

  • RE: INSERT A Record Based on Count

    Matt, Why do you say it's not getting the same results. I get the same results on my box?

    Oh, and a side note. I'm not necessarily jumping on the band...

  • RE: INSERT A Record Based on Count

    OK, so the final results (at least from my tests...)


    With Cross Apply, PK and Included Column Index:

    SET STATISTICS IO ON;

    SELECT

    t1.ndex,

    t1.twodigit,

    ...

  • RE: INSERT A Record Based on Count

    Jeff Moden (11/13/2007)


    Yes, I used the tally table (or as you named it (myNumbers).

    I didn't realize you wanted the Clustered index removed for the test.

    So the new results with...

  • RE: INSERT A Record Based on Count

    Hey all, I just realized how confusing my posts might have been, so I've went back and added the code I used to run my tests into my previous posts.

    Hope...

  • RE: INSERT A Record Based on Count

    HOLY SON OF A .. %&@$#@ !!!!

    I never imagined the recursive CTE would be perform so poorly...

    The recursive CTE solution WITHOUT the Included Column index:

    SET STATISTICS IO ON;

    WITH ...

  • RE: INSERT A Record Based on Count

    Yes, I used the tally table (or as you named it (myNumbers).

    I didn't realize you wanted the Clustered index removed for the test.

    So the new results with the PK removed:

    SET...

  • RE: INSERT A Record Based on Count

    Peter Larsson (11/13/2007)


    Jason, would you mind run the tests again with this index for testdata table?

    CREATE UNIQUE NONCLUSTERED INDEX [ixu_testdata_ndex_incl_tenpower_twodigit] ON [dbo].[testData]

    (

    [nDex] ASC

    )

    INCLUDE ( [tenPower], twodigit )

    WITH (INDEX...

  • RE: INSERT A Record Based on Count

    Peter,

    I'll get that later today 🙂

  • RE: INSERT A Record Based on Count

    Yeah, and I'd really like to see the colors from EM/QA preserved in the posts to. But maybe I'm being picky.....

  • RE: Quering one value in two fields with select

    SELECT

    cod

    FROM

    yourTable

    WHERE

    yourValue BETWEEN liminf AND limsup

Viewing 15 posts - 766 through 780 (of 1,183 total)