Viewing 15 posts - 46 through 60 (of 230 total)
Interesting question.
As an R novice, it's extremely difficult to deduce from the referenced documentation that COUNT can do this. None of the (rather terse) examples outline this simple use.
May 13, 2020 at 8:28 am
Great question (albeit a tad nefarious!)
And this is precisely why both semi-colons and AS for aliases should always be used!
April 30, 2020 at 7:22 am
Well, I managed to guess how the author arrived at what was designated as the correct answer. But clearly, that is a gross misunderstanding of the cited article from BOL.
March 31, 2020 at 11:21 am
A bit iffy, this one. Change tracking cannot be enabled on a database that contains In-Memory OLTP objects. And CDC is only available from CU15 and up.
March 19, 2020 at 7:37 am
Read the question, and thought: I'm not going to touch this with a ten-foot pole, until it has been reviewed. The discussion bears this out...
On a side note: It used...
March 16, 2020 at 9:41 am
Sorry for [semi]colon 🙂
It's all right for error, because GO is a batch separator: @x is declared in the first batch and not in the second. It's the same...
March 13, 2020 at 4:24 pm
A semicolumn is missing after the two exclamation mark.
Here's from BOL:
Supported SQLCMD Syntax
The Database Engine Query Editor supports the following SQLCMD script keywords:
[!!:]GO[count]
Except that's a colon, not a semi-colon...
March 13, 2020 at 4:08 pm
Yeah, definitely in SQLCMD mode. I use it alot. I tried
!! GOas well.
Confirmed. I went ahead and tried the same as you. In SSMS you get...
March 13, 2020 at 3:26 pm
DOH!
I read that article right up to the line preceeding the one with the pertinent information.
Now I must finish my coffee!
March 13, 2020 at 7:13 am
Good question! Can we expect one for proper next? 🙂
March 11, 2020 at 7:33 am
Heh... I wonder how many people actually got this question right without having to run the code?
I've been using a related technique to emulate STRING_AGG, so it wasn't that...
March 10, 2020 at 12:04 pm
Interesting, but I'd be wary of using it. In a multi-row update, the result is pretty much undefined, unless all the rows are updated to the same value. And in...
March 10, 2020 at 7:48 am
How about temptables, session context, CLR functions, etc.?
Yeah, using temp tables is absolutely a workable solution, as is session context. CLR functions probably not, unless they utilize some external...
February 28, 2020 at 3:03 pm
I doubt that using PRINT to return information is used on a regular basis. The only time I use PRINT for the purpose is for debugging a procedure I...
February 28, 2020 at 1:40 pm
Viewing 15 posts - 46 through 60 (of 230 total)