Viewing 15 posts - 46 through 60 (of 702 total)
Hugo Kornelis (1/3/2013)
(And yes, 20000101 is yet another more or less randomly chosen base date. I used to use 19000101 here -it seemed appropriate to use the base date-, but...
January 3, 2013 at 10:26 am
Thanks, Hugo, for the correction. I like to think, however, that you'd agree that Michael V Jones's code above would be a bit more clear. Your two literal...
January 2, 2013 at 5:45 pm
Hugo,
Just testing to see if we're reading carefully? 😉
Looks as though your option 2 is screwed up somehow, returning dates years off.
SELECT dateadd(month, datediff(month, getdate(), '20110101'), '20101231');
..... returns...
January 2, 2013 at 11:29 am
This is a straight-forward enough QOD, I suppose. But I do wonder what the point is of having the "Include_browse_information" switch to begin with. Why would MS think it...
December 28, 2012 at 3:53 pm
I'm with you on that, Tom. I get confused enough by RIGHT joins, never mind a join with conditions in the ON clause that don't directly define the relationship....
December 27, 2012 at 11:56 am
Another good QOD on a new feature of SQL 2012. Thanks, Ron.
BTW, I'm sure some of those who chose wrong answers will want to blame Microsoft for...
December 16, 2012 at 6:12 pm
SanDroid, your explanation has me puzzled. The first quote says that one cannot use an expression containing a float expression in the key column of an indexed view. ...
December 15, 2012 at 7:09 pm
Mike Dougherty-384281 (12/12/2012)
. . . .
I didn't understand the question at all. I guessed (and was wrong) just so I could see this discussion.
+1
December 12, 2012 at 10:05 am
rhythm.varshney (12/10/2012)
Nice question.However it will fetch error in SQL 2005 not sure about upper version as we can not assign value while declaration.
One could bypass this speed-bump with an explicit...
December 10, 2012 at 6:26 pm
Steve Jones - SSC Editor (12/4/2012)
December 4, 2012 at 11:01 am
Malli,
First of all, thank you for submitting a QOD. Please don't be discouraged by the barrage of comments, but rather accept that by posting one of these, your words...
November 27, 2012 at 9:59 am
First, thank you for prodding me to read about STUFF, a function I'd seen mentioned but which I haven't used.
Your explanation of answer starts with
I could not find an...
November 23, 2012 at 11:04 am
sdolan 41249 (11/16/2012)
Anybody have experience with that? I...
November 16, 2012 at 5:04 pm
Would method 1 be reliable even in the early morning hours? As SYSDATETIME() is non-deterministic, could it not use two slightly different values for the two calls?
I get the...
November 9, 2012 at 9:59 am
Thanks for the QOD, Tom.
I appreciate the heads-up that a deceptively simple condition (like "where myLetter between 'a' and 'Z'") could result in a surprise if one expects...
November 5, 2012 at 12:15 pm
Viewing 15 posts - 46 through 60 (of 702 total)