He/Him. DBA. Automation. Food, Coffee, Whiskey (not necessarily in that order)... @SOZDBA@techhub.social

Ireland
Joined February 2009
Hopping back on here to say: @MattMcgiffen ... TDE... thank you 🙏 – at Limerick, Ireland
1
1
162
Based on the number of connection requests I received today and yesterday, I assume people are talking during the PASS Summit. I can only say thank you; the stories are grossly overestimated in my favour.
8
673
First #blog back in a while - to do with #PowerShell and Read-Host nocolumnname.blog/2023/10/10…
4
191
Happy Birthday @SQLSeeker77 ! – at Kerry, Ireland
1
2
181
My #tsql2sday post is up just before the deadline: nocolumnname.blog/2023/07/11… Thanks for hosting @erikdarlingdata #sqlblog
1
2
566
I've decided to highlight blog posts that have helped me out when they help me out. Rather than just read, action, then forget. So thank you @Kendra_Little for your post on "NO_PLAN and NO_INDEX: Breaking a Forced Query Store Plan" littlekendra.com/2016/03/25/… #SQLServer
1
3
257
Thanks to all at #DataCeili. Sorry, I have to head off early, but I'm looking forward to catching up with you all again! – at Dublin City, Ireland
2
133
Getting ready for CI/CD at #dataceili with @kevchant & @SQLStad – at Dublin City, Ireland
5
124
Now, to check out #Fabric at #DataCeili – at Dublin City, Ireland
1
3
125
#dataceili kicking off with Partitioning – at Dublin City, Ireland
5
163
Hey! I know this guy! – at Limerick, Ireland
1
237
#SQLServer challenge for anyone who likes figuring things out. I've created the index it asked me to. Run the query again, and it suggests the same index **even though it uses it** I can replicate but I can't figure out why. Anyone want to try to replicate it? 😇😈
5
1
2
950
Not sure if this is a hint, but the issue is only present when the query goes through Full Optimization. When it's Trivial Optimization, no missing index shows, and the query uses the index fine. That's why I had to add AND (SELECT 1) = (SELECT 1); to the WHERE clause
1
167
Final trick, and thanks to those that responded, I now know more than before. I can only replicate this with these conditions: 1. FULL optimization 2. Range comparison on 1 of the columns, 3. Partitioned table (Yes, I was sneaky and didn't mention this)
122
cc @jodouglass 😇
Replying to @PAH66
Thankfully it's a small enough index that I can try all the different orderings. All of them lead to the same "use this index" and all the recommended indexes come back as the same column1-created_date-column2 order So, index column order doesn't seem to matter so far
1
299