Forum Replies Created

Viewing 15 posts - 51,316 through 51,330 (of 59,072 total)

  • RE: When to use a cursor

    SQLZ (4/1/2008)


    Jeff Moden (4/1/2008)


    Ah ha! Finally! A challenge! If you would, post the resulting table creation script so I can duplicate what you have... the race is...

  • RE: When to use a cursor

    matt stockham (4/1/2008)


    This is very true ... except the stepping process should be done client side using the results of a set-based query.

    Absolutely spot on!

  • RE: Choosing between a View and Table-valued function

    GSquared (4/1/2008)


    But what advantage would this gain in real-world use? It's more work to set up, slightly more work to maintain, and I'm not clear on the ROI on...

  • RE: SQL Sleep

    gr8scott_o (4/1/2008)


    Seriously, I would pay $40 for this... problem is my snoring would probably give me away.

    But wait! Don't order yet! If you're one of the next...

  • RE: SQL Sleep

    Preet (4/1/2008)


    Really!

    Do you think we got nothing better to do than read pointless articles?

    Heh... well at least we know of one person who was going to buy it right...

  • RE: trigger not called for each record?

    Matt Miller (4/1/2008)


    Jeff Moden (4/1/2008)


    Matt,

    Awesome. Can you post the test code? That sure sounds like a "keeper" to me.

    You've already seen it... right here (sorry - forgot to...

  • RE: Setting multiple values

    Rags, I've got one more "by the way"... you are using this just for a GUI passing parameters, aren't you?

    If you're trying to split a whole column of CSV's, then...

  • RE: Setting multiple values

    Rags (3/31/2008)


    Jeff Moden (3/31/2008)


    The only thing that can be faster than the Tally Table is Dynamic SQL... but that's not a split and it does have some security issues if...

  • RE: Setting multiple values

    J (4/1/2008)


    Jeff Moden (4/1/2008)


    Are you going to do that from a GUI where parameters are normally passed as CSV's?

    Er, is the question addressed to "Rags" or to "J" ?

    Sorry... I...

  • RE: PK / FK design question

    Outstanding set of posts on this thread, both pro and con! Thanks for the very interesting conversation and the testing that some of you have done! You guys...

  • RE: PK / FK design question

    John Rowan (4/1/2008)


    You should see how fast things run in the NV tables when you've had the time to add the proper indexes.

    Thanks. For my example, I've only added...

  • RE: PK / FK design question

    Moral: even if you decide to combine subtypes in the transaction table, write your SQL as if they were separate tables.

    Heh... moral of the story should be that if...

  • RE: Choosing between a View and Table-valued function

    TheSQLGuru (4/1/2008)


    Here is my take on reusability:

    1) most code doesn't actually GET reused because a) all devs don't know about it, b) devs don't bother checking to see if their...

  • RE: When to use a cursor

    SQLZ (4/1/2008)


    The trick is in knowing when to use them.

    That is absolutely correct! The problem is that most people simply give up too soon!

    When a developer comes to me...

  • RE: When to use a cursor

    Heh... Karl... no wonder that it appears that your cursor beats the function... your cursor doesn't do the same thing/produce the same row set... I'm working on it...

Viewing 15 posts - 51,316 through 51,330 (of 59,072 total)