Viewing 15 posts - 571 through 585 (of 656 total)
Good question. I was thrown by the 'does not have permission' option, and thought that maybe if the user did not have permission to create tabbles then this is the...
July 16, 2010 at 2:34 am
Oleg Netchaev (7/6/2010)
select cast('1 234' as int);
will never fly simply because it is not a valid way to represent the number in every locale (though it is valid in some...
July 7, 2010 at 2:14 am
Oleg Netchaev (7/6/2010)
July 6, 2010 at 10:17 am
I've just changed my Regional Settings to French, so the thousands seperator is a space. But even now, IsNumeric('1 234') returns 0.
I knew there was a good reason that I...
July 5, 2010 at 2:35 am
Maybe if someone posts to the discussion to point out an error in the question, the system could somehow check if there are already 10 posts saying the same thing,...
June 29, 2010 at 8:53 am
I think it's a good question - designed to make you think a bit and work out that you don't actually need to know anything about database ids in order...
June 22, 2010 at 8:37 am
I just used the len(case...) statement - since this can return only one row (master) then the answer is the one with only a single option.
June 22, 2010 at 3:43 am
I've seen that one before somewhere.
It becomes slightly more obvious if you add a 'count(*)' to the select list
June 22, 2010 at 3:09 am
I agree with Hugo - I knew the modulus answer, but had no idea what the others were. So got it correct as only one option had the right value...
June 21, 2010 at 3:00 am
Hugo Kornelis (6/18/2010)
even in that case using CREATE TABLE followed by INSERT SELECT is often the better option.
I always do an explicit create - it's more code, but it means...
June 18, 2010 at 2:41 am
The answer has to be Yes, because if there was any sort of syntax error that stops it being created, then both the other two answers would be correct, and...
June 17, 2010 at 2:09 am
Lots of people seem to be saying that because lots of other QotDs have contained accidental syntax errors, then this one is a BAD QUESTION because it contains an intentional...
June 14, 2010 at 7:54 am
Well I learnt something, though probably not what was intended.
Believe it or not, I never realised that identity columns are ignored if you could insert into a table using that...
June 11, 2010 at 2:18 am
Viewing 15 posts - 571 through 585 (of 656 total)