Viewing 15 posts - 331 through 345 (of 658 total)
Hugo Kornelis (1/3/2013)
For a method to find "last New Year's Eve" that works correctly in 2013 only, my suggested code would be
SELECT CAST('20121231' AS datetime);
<Like!>
January 3, 2013 at 3:08 am
I got it right because although I couldn't be bothered working through the code, it was clearly adding lots of things to @NewYearsEve so the answer was never going to...
January 3, 2013 at 2:17 am
Raghavendra Mudugal (1/2/2013)
Hope this helps
It certainly does - and reminds my why I reluctantly stick to float for arithmetic!
Here's the correct reference
January 2, 2013 at 3:42 am
dineshbabus (1/2/2013)
In first statement both values are rounded to 0 precision then how come on dividing it returns 6 digits after decimal point.Pls xplain .
That's the only non-obvious part of...
January 2, 2013 at 3:08 am
Steve Jones - SSC Editor (1/1/2013)
I changed to question to exclude Jan 31, this that doesn't work.
Jan 30 won't work either. Jan 29 will only work in leap years.
January 2, 2013 at 2:56 am
That required rather more brain cells than I was expecting to need on Christmas Eve :hehe:
Glad to see that option 5 really should be correct, I'd started to think I...
December 24, 2012 at 6:19 am
Hugo Kornelis (12/20/2012)
December 20, 2012 at 2:10 am
SQLRNNR (12/20/2012)
This demonstrates that multiple null values is possible and that multiple null values is even possible within each of the columns so long as all of the columns together...
December 20, 2012 at 2:09 am
Hugo Kornelis (12/12/2012)
The speculative answer: Documenting behaviour is one way to "close" a bug deemed not important enough to warrant fixing.
Makes sense. I wish I could get away with that...
December 12, 2012 at 6:35 am
Hugo Kornelis (12/12/2012)
Using sp_rename to rename a programmability item does not change its definition in sys.sql_modules. That's why Books Online recommends to use DROP / CREATE instead.
I've never quite...
December 12, 2012 at 3:38 am
Viewing 15 posts - 331 through 345 (of 658 total)