Viewing 15 posts - 556 through 570 (of 2,648 total)
You could try using sqlcmd instead of SSMS
February 10, 2023 at 1:59 am
Have you tried using both the -m and -f flags?
sqlserver.exe -m -f
February 10, 2023 at 12:55 am
You could try this:

Let me know if it works.
February 9, 2023 at 11:55 pm
What I find extremely frustrating is when someone writes SQL code that joins multiple tables without prefixing the column names with their originating table or alias using dot notation. This...
February 8, 2023 at 3:51 pm
I would not prefix a view with tbl. In any case I rarely use views in an OLTP environment. I do make extensive use of them...
February 8, 2023 at 3:42 pm
I would not prefix a view with tbl. In any case I rarely use views in an OLTP environment. I do make extensive use of them in my...
February 8, 2023 at 3:05 pm
They have thumbs Up/Down buttons by each answer that you can click and leave feedback, which they supposedly look at in the aim of improving the system.
There are...
February 7, 2023 at 9:01 pm
BWAAAAA-HAAAA-HAAAA-HAAAA!!! I don't recall Itzik ever using the word TALLY in any of his code. At least I'm not the only one that it's mis-quoting. February 7, 2023 at 7:15 pm
You should have just asked it "How would Jeff Moden do it" - LOL
February 7, 2023 at 3:08 am
I'm officially "dead" with ChatGPT. It never asked me for a password when I first setup my login. I logged out and told it I forgot my password when...
February 7, 2023 at 1:59 am
Can you post the actual question that you asked it? I'm curious as to how much it needed to know.
I just tried pasting the entire question, including the "Hi"...
February 6, 2023 at 6:59 pm
So it would seem! Thanks, Jonathan. I'll check later for things like CPU, Reads, Parallelism, and what happens with different indexes.
I take it that the PK you used was...
February 5, 2023 at 8:50 pm
Here is something to set up about 500k rows of test data
Then some tests:
You're saving me lot's of time, Jonathan. What are the conclusions of your tests?
p.s. I...
February 5, 2023 at 8:30 pm
Here is something to set up about 500k rows of test data
If (OBJECT_ID('tempdb..#tbSourceData') is not null) Drop Table #tbSourceData;
--Create Table #tbSourceData (EventId int, EventStatus varchar(20), RowNum int,... February 5, 2023 at 6:35 pm
Jonathan AC Roberts wrote:Yes, nice solution Jeff.
Here is an alternative solution:
That might be the way to go instead of using the CROSSTAB method on this one, Jonathan.
Or maybe even using LEAD:
February 5, 2023 at 5:50 pm
Viewing 15 posts - 556 through 570 (of 2,648 total)