Viewing 15 posts - 16 through 30 (of 583 total)
TomThomson (11/5/2014)
I was careless, and ignored the implicit conversion of ((RAND() * 10) + 1) to int; since implicit conversion to int rounds towards 0 in SQL,...
November 5, 2014 at 3:45 pm
I worked for several years in a one person shop. I still put comments in the code, ESPECIALLY little utility snippets. If I can't tell what the code was supposed...
September 17, 2014 at 11:38 am
Thanks for the question Tom. It shows quite clearly why serious consideration should be given to avoid the combo declare/set syntax.
August 19, 2014 at 6:30 am
Excellent question. Loved the text explaining the things you weren't trying to trick us with. 😉
August 13, 2014 at 7:13 am
When I worked at Intel In the mid-90's, we were growing so fast that a universal system couldn't handle the needs of the local groups fast enough. So, we had...
August 13, 2014 at 7:03 am
Koen Verbeeck (8/12/2014)
Nice question, thanks.
Koen, are you doing something different with your hair? (He said, noticing something strange about Koen's icon.)
(Later realizing that he was mistaken, as he was thinking...
August 12, 2014 at 1:05 pm
Toreador (8/6/2014)
TomThomson (8/6/2014)if I want put many column names into for example a select list using an SP to generate a complete list (which I can then prune) is faster...
August 6, 2014 at 6:22 am
Although many found it easy, quite a few have missed it. I'm happy with the two points.
Thanks for the question Hugo.
August 5, 2014 at 7:13 am
SQLRNNR (8/3/2014)
george sibbald (8/3/2014)
me too, but who's complaining? 🙂Me!! Take my points back. I protest!! :-D:hehe:;-)
No need to protest. I'll take the extra three points you don't want....
August 4, 2014 at 7:56 am
Thanks for question! Easy but still had to think about it. Please post another QOTD.
August 1, 2014 at 7:34 am
Why would I use the method in the question when, as the answer showed, I can use:
SELECT *
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
July 31, 2014 at 7:42 am
Hugo Kornelis (7/30/2014)
Brian.Klinect (7/30/2014)
If you're allowed to re-declare @j-2 inside the while loop, why are you allowed to select from @j-2 outside of the while loop?
See...
July 30, 2014 at 6:37 am
Good question for me as I had to do some investigate to confirm the answer. Thanks free mascot!
July 29, 2014 at 7:19 am
I agree with those that favor a date table. This has the advantage of removing most of the date manipulation code from SP's -> easier to maintain.
July 28, 2014 at 7:53 am
Nice, and not so easy for me that I didn't have to think, but still easy enough for a Monday. And brought up an interesting point or two. Thanks Steve.
July 21, 2014 at 7:39 am
Viewing 15 posts - 16 through 30 (of 583 total)