Viewing 15 posts - 8,356 through 8,370 (of 8,414 total)
Thanks! But all those smileys have left me emotionally confused 😀
@Halloween,
My entirely personal view is that if someone is able to talk a little about things like...
April 6, 2009 at 3:36 pm
Bob Hovious (4/6/2009)
April 6, 2009 at 3:23 pm
Jeff Moden (4/5/2009)
Heh... ok... understood. And absolutely spot-on with the rest of what you said. Thanks, Paul. And good "meeting" you.
Thanks Jeff - and you too! 🙂
April 6, 2009 at 2:32 am
@Flo:
Yes I've just seen it (the cascade)...spooky!
@Kruti
I'm going to assume the results are right then (your time zone is GMT +5 or something?)
The 4ms timing difference came about, I imagine,...
April 6, 2009 at 2:18 am
Nice solution flo!
Typical developer - a code-based solution 😛 😀
...while the DB guy hacks away with cut and paste :laugh:
Yours is great 'cos it goes all the way to 100...and...
April 6, 2009 at 2:14 am
kruti (4/6/2009)
here is the output of both functions.GetDate(): 2009-04-06 13:06:29.197
Solution by Flo: 2009-04-06 12:54:29.193
Solution by Paul: 2009-04-06 12:54:29.193
You didn't tell us what the input was!
The 4ms difference is odd, I...
April 6, 2009 at 1:53 am
Well I was 100% wrong!
Cascades do not have a limit of 32 levels.
@@NESTLEVEL is not updated.
CREATE DATABASE [BCE86EC3-7D5C-4D73-B5BE-D9295C7C0CB1];
GO
USE [BCE86EC3-7D5C-4D73-B5BE-D9295C7C0CB1];
GO
CREATE TABLE A (A INT PRIMARY KEY);
CREATE TABLE B (A INT NOT...
April 6, 2009 at 1:49 am
metoseeu (4/5/2009)
Assume the casacading effect continues....How long can this delete happen?
Is there any count constraint for it?
Hey there,
I'm going to assume you are asking how many times an action (DELETE...
April 6, 2009 at 1:35 am
Hey all,
The DECIMAL needs to be (4,2) because the precision (4) includes the scale (2):
Apologies to flo who posted at the same time - but I'd already written this so...
April 6, 2009 at 1:22 am
Bob Hovious (4/5/2009)
April 5, 2009 at 10:01 pm
Lynn Pettis (4/5/2009)
Well, it's still Sunday, and I am I praying for MORE SNOW! I want a snow day! :w00t:
Well, according to my faithful weather widget, Colorado Springs will...
April 5, 2009 at 7:36 pm
An alternative method (albeit less satisfactory) would be to define the UNIQUE index with IGNORE_DUP_KEY = ON.
Another method would be to use WHERE NOT EXISTS or the EXCEPT operator.
Cheers,
Paul
April 5, 2009 at 7:20 pm
RBarryYoung (4/5/2009)
Paul White (4/5/2009)
I do still think though that some massive assumptions have been made - that the questions were in fact for an interview...
Well that one was no assumption....
April 5, 2009 at 7:14 pm
Grant Fritchey (4/5/2009)
April 5, 2009 at 3:27 pm
Viewing 15 posts - 8,356 through 8,370 (of 8,414 total)