Forum Replies Created

Viewing 15 posts - 301 through 315 (of 514 total)

  • RE: Limit Resources to UGLY query

    DECLARE @Dummy INT,@PrevID INT

    SELECT @PrevID = 0

    DECLARE @PreDaily_D FLOAT

    DECLARE @PreDaily_M FLOAT

    DECLARE @PreDaily_RM FLOAT

    UPDATE #ComplexFilter

    SET

    @PreDaily_D = CASE WHEN @PrevID = StoredCalcDataID THEN @PreDaily_D ELSE NULL END,

    @PreDaily_M = CASE WHEN...

  • RE: Half a Million

    Why I like SSC.

    Earlier this year, I was blessed by a company who saw through the fact that I knew almost NOTHING about SQL Server. I had...

  • RE: Limit Resources to UGLY query

    I was able to update 11M+ rows 3x and Update every 20th row (months) 1x

    in 210 seconds. I am going to see if I can get this to do...

  • RE: Limit Resources to UGLY query

    It's going to take a little to fix the code. Should have it done a little later today. Let you know the results. Now for the other...

  • RE: Limit Resources to UGLY query

    I love that trick you did. I tried to do that myself, but was unable to find a way to do it.

    @dummy = change = sign(type1 - @previous) ,@previous...

  • RE: Limit Resources to UGLY query

    Jeff,

    The update I am doing is calculating the delta from row N-1 to row N. And storing that as an INT (1 for rising, 0 for same, -1 for...

  • RE: Limit Resources to UGLY query

    When I get some time tomorrow, I'll try your tests. But this goes back to the initial point of this post.

    The insert is the pivot of the 1BILLION row...

  • RE: different execution time

    The parametered statements DON'T run faster, as mentioned the plans are cached, but that doesn't imply that they work better. However, looking at the plan it looked the same...

  • RE: How to write this stored procedure?

    You did what you could, but this is obviously a bad design.

  • RE: How to write this stored procedure?

    You have a table with 255 columns? Sounds like a design issue with the table, not the procedure.

  • RE: Limit Resources to UGLY query

    Jeff Gray (9/26/2007)


    Another thing you might try is to use the READ UNCOMMITTED transaction isolation level. That will reduce overhead to some degree.

    I have run throught about 10 runs...

  • RE: Sub Newbie question

    Given that version should have been released somewhere in the 93-95 range.

    1993 - SQL Server 4.21 for Windows NT

    1995 - SQL Server 6.0, codenamed SQL95

    So that puts...

  • RE: I just want to do my job !

    Loner,

    There is a kind way to say this, but this isn't it.

    Life isn't fair. People who deserve the job often don't get it. Why? Because they don't...

  • RE: Sub Newbie question

    art (9/29/2007)


    So, I'm up to two T-shirts. Pretty tempting. That would be about $1,750 per shirt. But, hey, as you can see, it wouldn't be the dumbest...

  • RE: Limit Resources to UGLY query

    Formatting in this new site is less than adequate.

    I tried to post the table, but that didn't work so well.

    Short answer is that Adding a PK to the process for...

Viewing 15 posts - 301 through 315 (of 514 total)