Viewing 15 posts - 4,171 through 4,185 (of 59,087 total)
Just out of curiosity, you do realize that the first query is totally different than the other 2, correct? And you do realize that leading wild cards for criteria are...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 23, 2021 at 2:06 am
This whole thing is a bit concerning. Why do you have two databases on the same instance and why have they become different? There are a couple of slick tricks...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 8:43 pm
I find it hard to believe that most folks would ever run out of BIGINT values under normal situations. The field on the other database being a VARCHAR(50) is concerning...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 8:40 pm
Where I work, the DBA doesn't do the updates. The infrastructure team does the Windows and SQL Server updates.
We wait a week after they come out and look for the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 8:26 pm
It's a funny thing about "drill downs"... I love it when folks drill down to the final layer of 100,000 rows and then wonder what to do.
It is possible to...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 4:57 am
Now THAT was an "HR guy" that understood!
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 4:44 am
A minor optimization on DesNorton's good code would be to remove the ISNULL from the CASE WHEN because a NULL can't be greater than 0 (nor equal to or less...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 2:37 am
Really nice SQL "Oolie", Steve! 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 2:05 am
No problem and totally understood. I wanted to make sure that you weren't waiting on me.
You're health and then you work come first. Take your time.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 1:42 am
There's also the possibility that all 3 queries actually suck. 😀 You'll need to look at the execution plans, as well. Just don't make the mistake of using % of...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 1:16 am
There is a error in the application logs with table name not allowing nulls into column. However, the sql server error log does not show which proc is causing...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 1:00 am
I once had a ticket to update a field in the ERP system while working in the data warehouse. Their programmers were swamped, and they thought it was a...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 12:53 am
Heh... mine has started off with a bit of a "well that sucks" factor. Whole new time-keeping system where they want me to categorize virtually every aspect of...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 12:36 am
Yes, agree that it would benefit in the read loads. But we should also consider the overhead of CI on write operations. So if the database is...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2021 at 12:26 am
Ah... figured it out Steve... quite by accident, as well.
Here's what I'm seeing...

I didn't want to post such a large graphic and so I zoomed out to only...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 21, 2021 at 11:58 pm
Viewing 15 posts - 4,171 through 4,185 (of 59,087 total)