Viewing 15 posts - 4,186 through 4,200 (of 5,394 total)
The foreign key constraint can do it for you. Look up "FOREIGN KEY" and "ON DELETE CASCADE" in BOL.
June 16, 2010 at 7:06 am
You have to wite it as SELECT @variable = Field:
select @user-id = USerID where firstname = (SELECT SUBSTRING(@@UserName, 1, CHARINDEX(' ', @@UserName) - 1))
...
June 16, 2010 at 6:56 am
Grant Fritchey (6/16/2010)
I swear, about a third of our IT staff could fall into a bottomless pit and we wouldn't notice for a week.
Do we work for the same company?...
June 16, 2010 at 6:13 am
It does, indeed. The point is that many employers want their employees to sign NDAs or non-compete, but they don't know that this has to be explicitly paid. If those...
June 16, 2010 at 6:13 am
Your query hasn't changed, but maybe data did.
Are data volumes the same?
Are statistics up to date?
There's lots of things you could look into, I just named the first ones that...
June 16, 2010 at 6:06 am
Drop the primary key, or add to it all the fields that actually make up the key, if this applies.
Is there a better primary key fo that table?
June 16, 2010 at 6:04 am
Steve-3_5_7_9 (6/16/2010)
GilaMonster (6/16/2010)
Steve-3_5_7_9 (6/16/2010)
June 16, 2010 at 6:01 am
Dave Ballantyne (6/16/2010)
Damn Damn Damn, ive mislaid my sql magic wand.http://www.sqlservercentral.com/Forums/FindPost937995.aspx
Perhaps if i shouted at the server .....
Great! "I can't change the query, but, please, make it go faster!"
June 16, 2010 at 3:01 am
Totally different subject: I get 1 notification every 10 or 20 posts on THE THREAD.
Are you experiencing the same?
Maybe too many people subscribed.
June 16, 2010 at 2:25 am
Paul White NZ (6/16/2010)
WOOT!
:w00t:
Thanks to everyone that posted congratulations. 🙂
I'm thinking Italy should be no problem now. Do they even play football/soccer over there...
June 16, 2010 at 2:22 am
Jeff Moden (6/15/2010)
CirquedeSQLeil (6/14/2010)
Gianluca Sartori (6/14/2010)
Well done on the "Mentor" thread, Gail.Hope he stops.
It seemed to me that the argument was coming from one side today. It appeared that...
June 15, 2010 at 10:34 am
scott.pletcher (6/15/2010)
June 15, 2010 at 8:54 am
Paul White NZ (6/15/2010)
Jan Van der Eecken (6/15/2010)
Paul, Good Luck to New Zealand in their game against Slovakia in less than 4 hours from now.
Thanks Jan, I think we're just...
June 15, 2010 at 7:51 am
Well done on the "Mentor" thread, Gail.
Hope he stops.
June 14, 2010 at 8:53 am
Viewing 15 posts - 4,186 through 4,200 (of 5,394 total)