Viewing 15 posts - 57,841 through 57,855 (of 59,066 total)
Better than that, why do you think you need a function at all? *sniff* *sniff* I smell some RBAR coming up ![]()
August 14, 2006 at 9:24 pm
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...
August 14, 2006 at 9:19 pm
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...
August 14, 2006 at 8:56 pm
| In my view what gets assumed is that if you need a surrogate key it has to be... |
August 14, 2006 at 7:29 pm
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...
August 14, 2006 at 7:08 am
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...
August 14, 2006 at 6:43 am
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...
August 14, 2006 at 6:21 am
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...
August 14, 2006 at 5:31 am
If you need to use SCOPE_UDENTITY you're doing bad. Your applicaion is just a toy and will not... |
August 14, 2006 at 5:28 am
What did we do prior to the introduction of the identity column? |
Oh good grief... here we go again... ...
August 14, 2006 at 5:10 am
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...
August 13, 2006 at 10:32 pm
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......
August 13, 2006 at 10:24 pm
Thanks for sharing the results of your test, Gail...
August 13, 2006 at 9:30 pm
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...
August 13, 2006 at 9:08 pm
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?
August 13, 2006 at 8:45 pm
Viewing 15 posts - 57,841 through 57,855 (of 59,066 total)