Forum Replies Created

Viewing 15 posts - 3,151 through 3,165 (of 3,348 total)

  • RE: Cursor optimization

    GSquared (7/8/2008)


    Just to test this, I tried the following on a table with just over 1-million rows of data:

    (...)

    I had used fast_forward in the past, based on what BOL says,...

  • RE: Cursor optimization

    JohnG (7/8/2008)


    I'm not so sure that the "independent" testing is accurate. Therefore, for purposes of this question, the time it takes to create a copy of all of the...

  • RE: Cursor optimization

    Christian Buettner (7/8/2008)


    In general an interesting question, but it is simplified a little too much. Cursors are such a complicated construct with so many nested options and dependencies on the...

  • RE: Cursor optimization

    davidthegray (7/8/2008)


    In the recent years I mostly use dynamic SQL strings sent to the db by the client application (mostly ASP.NET), which is also deprecated

    Hi David,

    My main gripe with dynamic...

  • RE: Cursor optimization

    Craig, John, Grant - thanks for the feedback.

    As I've already indicated elsewhere in this discussion, I was wrong, due to incomplete testing. Both STATIC and FAST_FORWARD should be considered correct...

  • RE: Cursor optimization

    Mark Horninger (7/8/2008)


    Will probably end up rewriting it completely, need more speed...

    Mark,

    If possible, try eliminating the cursor completely rather than rewriting it using other options.... 🙂

  • RE: Cursor optimization

    Marius Els (7/8/2008)


    i use this to find text in any db object:

    Hi Marius,

    Mostly good, solid code, but there are a few caveats:

    Select distinct sysobjects.id, name, type

    from syscomments, sysobjects

    where syscomments.id =...

  • RE: Cursor optimization

    davidthegray (7/8/2008)


    Does anybody have a ready made query to find out the list of all the stored procedures in a db having the word 'CURSOR' inside their SQL body text?...

  • RE: Cursor optimization

    Dave F (7/8/2008)


    A very worth while read, but I'm not sure if I agree with the conclusion that STATIC is always faster than FAST_FORWARD. The table fitting in cache...

  • RE: Cursor optimization

    Iggy, Marius, Mark: Thanks for the kind words! 🙂

    This is the first time I submitted a QotD, but with reactions like this, I'm sure I'll try to submit some more!

  • RE: Moving Files

    JohnG (7/2/2008)


    1. I believe that the term "deparated" used in the QoTD was meant to be "separated" (the letter "d" and the letter "s" are next to each other on...

  • RE: Moving Files

    Mark: Startup with -d can indeed be used to move the datafile (and only the datafile) of the master database (and only the master database) - but definitely not if...

  • RE: Moving Files

    magarity kerns (7/2/2008)


    The ALTER answer was misleading, if not outright incorrect, because it did not spell out the required take offline, put back online steps. If that alter statement were...

  • RE: Moving Files

    Tao Klerks (7/2/2008)


    Hmm, I'm a little confused...

    I assumed the question was talking about files from any arbitrary database - but the "ALTER DATABASE ... MODIFY FILE" clause can only (if...

  • RE: ALL

    pollockk (6/30/2008)


    Maybe that's just because I have been caught by tables with case sensitive collations in real life.

    Thanks for the clarification, Kirsty 🙂

    I'm glad you took the question as I...

Viewing 15 posts - 3,151 through 3,165 (of 3,348 total)