Viewing 15 posts - 4,981 through 4,995 (of 59,067 total)
Is the table clustered on ID?
Have you got any other indexes on the table?
Have you looked at the execution plan?
Oh lordy... I posted before having enough coffee. This is...
July 1, 2021 at 5:06 pm
Instead of having multiple connections trying to delete one or two rows at a time from all over hell's little half acre in the table, remember that it's a TEMPORAL...
July 1, 2021 at 4:32 pm
Shifting gears to another aspect to employment, I'd say "and so it begins" except that it's been this way for a long time. It's just getting worse. If you have...
July 1, 2021 at 4:17 am
Heh... ah... I know what you mean now. No comment. 😉
July 1, 2021 at 3:40 am
I "love" some of the ads I've seen... they start with needing only 2 years of experience but want a full stack developer that is also an expert...
July 1, 2021 at 3:37 am
My pleasure and thank you for the feedback. xp_LoginInfo is one of those tools that I don't need to use often but it's a real life saver when I do...
July 1, 2021 at 3:34 am
He is not a member of sysadmin role.
He is in one group, but it has read only and that is it.
It must be something that carried over from the...
June 30, 2021 at 9:46 pm
What are you trying to do??? Get just the rows with the highest TotalDue for each BusinessEntityId ??? I so, just change the ASC in your ROW_NUMBER() to DESC and...
June 30, 2021 at 9:42 pm
Hello ,
I have an SQL server installed in the 'Enterprise Evaluation Edition' the server has expired I have exceeded the 180evaluation day
and despite this overrun my instance continues to...
June 30, 2021 at 9:32 pm
You might want to take a look at the execution plan for that. With just the 9 rows of data the OP posted, it does 48 table scans...
June 30, 2021 at 9:28 pm
Disregard my previous from this post if you end up seeing it in your email. I did some bad math. The 432 rows are completely necessary.
June 30, 2021 at 9:27 pm
Here is an alternate version
With accountData
As (
Select Distinct
td.[Year]
...
June 30, 2021 at 8:56 pm
Heh... ok. Been there and done that... That's how it always starts. 😀
The other thing is that someone that gets desperate for some code on something much larger, might end...
June 30, 2021 at 8:46 pm
If you want help on this, and there are a large number of people that can help with this on this forum, you're going to have to provide more information...
June 30, 2021 at 8:42 pm
Have a read of Jeff Moden's articles Cross Tabs and Pivots. They explain exactly how to achieve what you're after.
And the second article describes how to do it...
June 30, 2021 at 8:34 pm
Viewing 15 posts - 4,981 through 4,995 (of 59,067 total)