Viewing 15 posts - 39,646 through 39,660 (of 59,072 total)
mister.magoo (2/23/2010)
For those interested, here's the proper way to write the code following "my" best practices...
UPDATE dbo.TableA
SET SomeColumn = b.SomeOtherColumn
FROM dbo.TableA ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 7:25 pm
That certainly works and it's a whole lot better than a WHILE loop. It certainly shows that you have more than just a casual knowledge (as previous similar examples...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 7:14 pm
Jeff Moden (2/23/2010)
Paul White (2/22/2010)
Jeff Moden (2/22/2010)
I guess I didn't understand that one... it sets all the rows to 50 instead of doing the requested data smear.
It works on...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 5:38 pm
WayneS (2/22/2010)
Paul White (2/22/2010)
WayneS (2/22/2010)
I must have missed the updated requirements... let me look at what those are and see what I can do.
The updated test data setup script is...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 4:50 pm
Paul White (2/22/2010)
Jeff Moden (2/22/2010)
I guess I didn't understand that one... it sets all the rows to 50 instead of doing the requested data smear.
It works on my system...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 4:44 pm
Steve Jones - Editor (2/23/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 12:57 pm
tony rogerson (2/18/2010)
I don't honestly know what your problem is here Paul - even Jeff...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 12:48 pm
Gary Varga (2/23/2010)
Jeff Moden (2/23/2010)
You're right, Gary... it might make a good article called "Winning the Interview with Code" or somesuch.
OK. Perhaps two articles. The one you suggest should highlight...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 8:38 am
jcrawf02 (2/23/2010)
Paul White (2/23/2010)
Jeff Moden (2/22/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 8:31 am
Paul White (2/23/2010)
Jeff Moden (2/22/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 8:28 am
Tom.Thomson (2/22/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 8:10 am
Gary Varga (2/23/2010)
I have followed this thread from the start and I have read the article of yours you recommended. I was hoping to work out what solution you are...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 7:47 am
Manie Verster (2/23/2010)
Take note, you only have to do 100 records for this interview.
True enough... and the interviewer will send all of those people who only make it capable of...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 7:18 am
Manie Verster (2/23/2010)
Jeff I am on your case today.
No problem, Manny... I'm on your's, as well but I did install some handrails so you can enjoy the ride. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 7:09 am
Manie Verster (2/23/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 23, 2010 at 6:44 am
Viewing 15 posts - 39,646 through 39,660 (of 59,072 total)