Viewing 15 posts - 2,641 through 2,655 (of 3,348 total)
Paul White NZ (9/3/2010)
I really want to break this down to a simple point which I hope everyone can agree on:
"The single requirement for Quirky Update is that rows get...
September 3, 2010 at 6:02 am
Tom.Thomson (9/3/2010)
As has been pointed out often enough, MS published a knowledge-base article on this technique stating conditions under which it does work and conditions under which it doesn't.
Are you...
September 3, 2010 at 5:40 am
Though I am very happy to see a question on a relatively new and very valuable option, I am a bit disappointed that the answers are debatable.
It all depends on...
September 3, 2010 at 3:56 am
Jeff Moden (2/7/2010)
September 3, 2010 at 3:32 am
Jeff Moden (9/2/2010)
September 3, 2010 at 2:03 am
oscar.leeper (9/2/2010)
if(1=0 and 1=null)
Does ternary logic have the same rule that allows me to to say that the above is logically equivalent to
if 1!=0 or 1!=null
Well, yes and no.
It is...
September 2, 2010 at 3:25 pm
boudinov (9/2/2010)
I bet we would love to see "groupings on repeated data such as "Start/Stop" indications over time (although there is a clever way to solve that which will...
September 2, 2010 at 7:32 am
Robert Dennyson (9/2/2010)
It should work
SELECT COVERT(VARCHAR,GETDATE(),111);
If you add the missing letter N (CONVERT), it does work. It is an explicit conversion from datetime to varchar format, using the yyyy/mm/dd format...
September 2, 2010 at 4:01 am
oscar.leeper (9/1/2010)
On both my 2k8 and 2k5 installations, I only got the OR behavior to match the article. Is there a setting I'm missing?
No, you are making a logic...
September 2, 2010 at 12:02 am
Oleg Netchaev (9/1/2010)
September 1, 2010 at 9:32 am
da-zero (9/1/2010)
Nice question. But I believe I've seen a similar one here in the QotD (but I may be mistaken).
Correct. That was April 14, and it was similar but not...
September 1, 2010 at 8:27 am
webrunner (9/1/2010)
DECLARE @a INT
DECLARE @b DATETIME
SET @a = @b
The above code executed successfully for me in SQL 2005 but gave the error listed in the answer when I ran it...
September 1, 2010 at 8:26 am
Dave62 (9/1/2010)
SELECT DATEADD(day, DATEDIFF(day, '20100101', CURRENT_TIMESTAMP), '20100101');
The only thing I don't like about this method is the hard-coded string. I suppose a dynamic expression could replace it but it...
September 1, 2010 at 8:24 am
tushkieeeee (9/1/2010)
please try the code below. I think this is what the auhtor wanted to convey.
I don't think so. I think the author wanted to convey that implicit conversion from...
September 1, 2010 at 7:17 am
Chris Cradock (9/1/2010)
September 1, 2010 at 7:02 am
Viewing 15 posts - 2,641 through 2,655 (of 3,348 total)