Forum Replies Created

Viewing 15 posts - 2,566 through 2,580 (of 2,610 total)

  • RE: Cursors Be Gone!

    Jeff Moden (1/3/2009)


    jacroberts (1/3/2009)


    I take is that @PrevKeep variable is redundant as it doesn't seem to be used?

    BWAA-HAAA!!! Well, at least I know someone read the code. Yes...

  • RE: Cursors Be Gone!

    I take is that @PrevKeep variable is redundant as it doesn't seem to be used?

    BWAA-HAAA!!! Well, at least I know someone read the code. Yes sir, I made...

  • RE: Cursors Be Gone!

    Jeff Moden (1/3/2009)


    OK... here we go. First, I'm gonna recommend that you add the following index to the WebLogEvents table... it will NOT interfere with inserts or deletes, will...

  • RE: Cursors Be Gone!

    Jeff Moden (1/3/2009)


    jacroberts (1/2/2009)


    The stored procedure that calls the function just takes the results table from the TVF and inserts this into a reporting table number of new site visits...

  • RE: Cursors Be Gone!

    Matt Whitfield (1/2/2009)


    Before i start - a couple of things. Given the volume of data you're talking about, i'm not confident my first method would be quicker. Because it's a...

  • RE: Cursors Be Gone!

    Jeff Moden (1/2/2009)


    Ok... from JacRobert's description, Create Table statement, and a couple of good guesses like the fact that since all the columns are nullable, there's no primary key, here's...

  • RE: Cursors Be Gone!

    Jeff Moden (1/2/2009)


    I agree... JacRoberts, would you provide the CREATE TABLE statement for the dbo.WebLogEvents table, please. From that, I'll make a million row table over a period of...

  • RE: Cursors Be Gone!

    TheSQLGuru (1/2/2009)


    jacroberts, I am pretty sure (>90%) that your problem can be solved with a self-join set-based solution. If the table is properly indexed that solution could well be...

  • RE: Cursors Be Gone!

    Jeff Moden (1/2/2009)


    Alexander Kuznetsov (12/24/2008)


    Actually in most cases the best alternative is a loop written in a modern language such as C#, not a T-SQL WHILE loop or a CURSOR....

  • RE: Cursors Be Gone!

    battelofhalfwits (1/1/2009)


    Also, when you say "Imagine scaling the cursor to tables with millions of rows". I'm imagining it! Are you sure that inserting the rows into a temporary table with...

  • RE: Cursors Be Gone!

    Jeff Moden (1/1/2009)


    One of my fellow MVP's... Go back and look at Grant's posts... you'll figure it out. I've probably said too much, already.

    When you say "fellow MPV's" does...

  • RE: Cursors Be Gone!

    Matt Whitfield (1/1/2009)


    Jeff Moden (1/1/2009)


    Yes! He actually want's to delete FROM from UPDATE. The smiley face was an indication of something else this time...

    Daym.

    Has anyone told him about...

  • RE: Cursors Be Gone!

    Haroon Said (12/24/2008)


    Just for fun if you had a banking application with millions of account records in a table and had to calculate some complex interest every day on the...

  • RE: Cursors Be Gone!

    Matt Whitfield (12/24/2008)


    @jacroberts -

    I didn't get any faster results out of the firehose than I did out of the select-only method. I ran it a few times, they came out...

  • RE: Cursors Be Gone!

    Shane Redding (12/24/2008)


    Does anyone know where all this negativity came from about cursors? All I've read about this year are articles saying get away from cursors, "Very Bad" for your...

Viewing 15 posts - 2,566 through 2,580 (of 2,610 total)