Forum Replies Created

Viewing 15 posts - 57,841 through 57,855 (of 59,066 total)

  • RE: how to write a function

    Better than that, why do you think you need a function at all?  *sniff* *sniff* I smell some RBAR coming up

  • RE: Can I do this using a ''''self-join''''? Please Help.

    This should do it for you... includes a test setup so you can "play"...

    --===== If the test table exists, drop it

         IF OBJECT_ID('TempDB..#yourtable') IS NOT NULL

            DROP TABLE...

  • RE: The Joy of Numbers

    Nicely done, Michael. Real good to see someone actually do a comparison in performance, too.

    Since you were kind enough to mention my name, I have to sing the praises of...

  • RE: Id of the last inserted

    quoteIn my view what gets assumed is that if you need a surrogate key it has to be...
  • RE: Id of the last inserted

    Thanks, Serqiy... what does the key look like?  And, actually... .1 second to insert only 80 rows across 9 tables seems a bit slow but lemme withhold judgement on that...

  • RE: Id of the last inserted

    IDENTITY is an algorithm and is the "completely sythethic" key that Erland Sommarkskog is referring to in Type C.

    I certainly don't mean to pick on anyone but I've seen endless...

  • RE: Id of the last inserted

    Ok... I feel much better... for a minute, I thought one of my old friends had actually lost his mind...

    Daniella...

    Serqiy's point is...

  • RE: Id of the last inserted

    Nope, Ken... none of that is directed at you and I think you did just fine... I think Daniella may have a larger problem if she's got a 3 level...

  • RE: Id of the last inserted

    quote

    If you need to use SCOPE_UDENTITY you're doing bad. Your applicaion is just a toy and will not...

  • RE: Id of the last inserted

    quote

    What did we do prior to the introduction of the identity column?

    Oh good grief... here we go again... ...

  • RE: Help with declare

    SG,

    Normally, a couple of us would answer the question of "What am I doing wrong?" with "You're using a cursor".

    Rather than trying to salvage this code, I think it would...

  • RE: MAX() vs. TOP 1 (fastfirstrow) DESC?

    Ack! Not enough coffee!  Took me a bit to figure out what the heck Serqiy and Eric were yakking about... took a look at Eric's previous post... I get it......

  • RE: MAX() vs. TOP 1 (fastfirstrow) DESC?

    Thanks for sharing the results of your test, Gail...

  • RE: Trigger fire sequence

    I remember reading the same article (although I can't find it anymore)... it used a homegrown sp to "renumber" the ID's of the triggers so that they would fire in...

  • RE: Id of the last inserted

    Daniella... What did it?  Scope_Identity?

    Serqiy, surely you are not one of those that believes that every table should have a natural key, are you?

Viewing 15 posts - 57,841 through 57,855 (of 59,066 total)