Steven Rushing @RushingSQL
SQL newbie. Seeker of laughter and smiles. Golfer. Animal lover. Detroit sports fandom, yes even the Lions Michigan Joined November 2022-
Tweets15
-
Followers9
-
Following43
-
Likes17
The latest SQL Server cumulative updates (2022 CU 10, 2019 CU23) contain an interesting bug fix, which @josh_the_coder noticed earlier today: Before this update, in some rare cases, if IDENTITY_INSERT is set to ON, the identity value for the target table is set to the highest value in the source table when joining tables, even if the highest value doesn't satisfy the join condition or the predicate. This update improves the current design and fixes this issue. Note: To apply this update, you need to set the QUERY_OPTIMIZER_HOTFIXES database scoped configuration to ON. To turn off this update, you can enable trace flag 13193. The cases turn out not to be so rare: SQL Server assigns the new identity value when IDENTITY_INSERT is ON by calling an internal function setidentity() in a Compute Scalar plan operator. It is the placement of this operator in the plan that is the problem. If it appears before a filtering condition, it might be called more times than necessary, using the wrong source values. In other words, the destination will behave as if identity values had been assigned when they ultimately weren't, due to the later filtering. In many cases, SQL Server is saved by deferred evaluation of expressions in a Compute Scalar. This is where SQL Server waits until another operator needs the result of the computation before performing it, despite the position of the Compute Scalar operator in the plan. (This optimisation was added in 2005 and only applies to row mode Compute Scalar operators.) Now, the only operator that will need the result of the setidentity() call is the Insert operator adding rows to the target table with IDENTITY_INSERT. This means any filtering of rows will occur before the insert, and no unnecessary setting of identity values occurs. Yay! This is all well and good, unless there is a blocking operator in the plan after the setidentity() Compute Scalar but before the filtering. A blocking operator has to materialize the data it receives in one way or another - in a hash table or sort memory for example - and this materialization necessarily needs the result of the setidentity() call. Oops. When this happens, setidentity() is called when it shouldn't be. The target table then behaves as if identity values have been used when they were not. The fix is to ensure the Compute Scalar appears on the 'write cursor' (left) side of the insert plan, where SQL Server has full control, and any user-coded filtering of rows is bound to have already happened. Without the fix, the Compute Scalar can appear surprisingly early on the 'read cursor' side of the plan where rows are read and processed to see which ones qualify for the update. The optimizer tends to push Compute Scalars as far to the right as possible for several reasons, including computed column matching. This will never apply to the special setidentity() Compute Scalar of course, but general rules apply generally. I wrote a toy demo that materializes the setidentity() call in the build-side hash table of a hash join: dbfiddle.uk/v7Ci0_pU Unfortunately, db<>fiddle is still at 2022 RTM so I can't show the fix with query optimizer hotfixes enabled there, but as you can imagine it ensures the Compute Scalar stays in a safe place on the left side of the plan. For more about deferred expression evaluation see my 2012 article, Compute Scalars, Expressions and Execution Plan Performance sql.kiwi/2012/09/comput…
Like the spread of attendees in the community zone at #PassDataSummit. Hope we see even more pins next year
I swear this week just started! Sad to say goodbye, but THANK YOU to our host @redgate , some absolutely fantastic presenters, and the kick ass staff of the Seattle Convention Center for allowing me to Connect, Share, and Learn #PASSDataSummit
SQL Superheroes in the making here at Summit ‘23! #PureStorage #DiskIsDone, #PASSDataSummit
@dgmelkin @PASSDataSummit Great session, thanks!
@LaurieLCarr You too! Look forward to chatting again
Goodbye Seattle, you were a great host! Hopefully I'll get to return next year for #PASSDataCommunitySummit . Such an amazing conference and community! #SQLFamily
Hanging out with Lego folk! @redgate #PASSDataSummit #SingWithLegoKathi #LegoSteveReturns
@Ask_Spectrum Fix your line that’s been down since November 222
@GetSpectrum Why is my cable line still not repaired after 11 months of spotty Internet service?
Bumping this new Azure Feedback item about making TF 3226 be enabled by default. It only has 8 votes so far... feedback.azure.com/d365community/… #sqlserver #sqlserver2022
100%!
Having @KimberlyLTripp and @PaulRandal do the last session together on Friday should be a #PASSDataCommunitySummit tradition
@SQLChick @PASSDataSummit @SQLAllFather Amazing talk, thanks @SQLAllFather for sharing so much
#LegoSteveAtSummit Who's ready for lunch? @redgate
First conference day woot! #passdatacommunitysummit #sqlfamily
Andy Yun @SQLBek
4K Followers 864 Following @dgmelkin's Personal Chef | Pure Storage FSA | SQL Server Dev/DBA | Conference Speaker | Dog Lover | Foodie | Novice Guitarist | https://t.co/T30nEdWvJU
RogerWoods @roger_woods_go
125 Followers 782 Following Engineer, AI enthusiasts, Like AI Native Hardware
Laurie Carr @LaurieLCarr
807 Followers 1K Following LA SQL Chapter Leader, SQL DBA, Loves to rock climb, ski, run and be in the mountains!
Database Health @DatabaseHealth
2K Followers 3K Following Official X account of the Database Health Monitor Application - Making SQL Servers Run Faster - Get it FREE today! https://t.co/S5U3T51hqy
Surbhi Pokharna @Surbhi_Pokharna
159 Followers 329 Following
Mike Walsh @Mike_WalshNH
387 Followers 1K Following Sinner saved by grace - husband - CEO - Geek "It is false piety to preserve peace at the expense of truth.” - Blaise Pascal
Power BI Sentinel @PBISentinel
2K Followers 3K Following Enhancing #PowerBI & #MicrosoftFabric with our SaaS solution. 🔦Audit Logs | 🔑Governance Reporting | 💾Disaster Recovery | 💻Data Lineage | 📊Change Tracking
Scott Stauffer 🇨�... @SQLSocialite
4K Followers 3K Following Data Consultant Currently working with MS Fabric Microsoft Data Platform MVP Alumni Puppy Air Transport Volunteer at BC and Alberta Guide Dogs 🐕🦺🦮
Heini Ilmarinen @HeiniIlmarinen
834 Followers 289 Following Cloud Solution Architect, Data Platform MVP, MCT. Passionate about data and architecture 🧩 Math nerd in a previous life 🤓 Love riding bikes 🚵🏼♀️
SQL Family @SQLFamily
279 Followers 0 Following
Josh Darnell @josh_the_coder
246 Followers 144 Following 👋 New Contributor // Husband // Dad // Musician // .NET Developer // SQL Server enthusiast
Paul White @SQL_Kiwi
5K Followers 157 Following I live in Aotearoa New Zealand and write about SQL Server internals at https://t.co/nuZwOWQzHy Microsoft MVP 2011-2022 DBA Stack Exchange Mod 2015-2025
Andy Yun @SQLBek
4K Followers 864 Following @dgmelkin's Personal Chef | Pure Storage FSA | SQL Server Dev/DBA | Conference Speaker | Dog Lover | Foodie | Novice Guitarist | https://t.co/T30nEdWvJU
Deborah Melkin @dgmelkin
1K Followers 720 Following @sqlbek’s food taster | #sqlfamily | Microsoft MVP, Data Platform | #Redgate100 | singing girl | she/her | just my opinions | @[email protected]
Laurie Carr @LaurieLCarr
807 Followers 1K Following LA SQL Chapter Leader, SQL DBA, Loves to rock climb, ski, run and be in the mountains!
Surbhi Pokharna @Surbhi_Pokharna
159 Followers 329 Following
Mike Walsh @Mike_WalshNH
387 Followers 1K Following Sinner saved by grace - husband - CEO - Geek "It is false piety to preserve peace at the expense of truth.” - Blaise Pascal
Glenn Berry (@glennal... @GlennAlanBerry
10K Followers 686 Following Services Database Engineer Microsoft Data Platform MVP @glennalanberry.bsky.social YouTube: https://t.co/OiMek3gCTP
Denny Cherry - @mrden... @mrdenny
9K Followers 1K Following CEO, Microsoft MVP, VMware vExpert, #Azure, #AWS, #Cloud, #IT #Security
Homer Mc @KillaDBA
2K Followers 2K Following I write techie songs for IT Businesses. Subscribe to my YouTube (link below) Ques! Go Dawgs! BZ. BS/CS @UGA. MS/CS @GaTech. http://[email protected] 🎤🎧🎵🎹
Scott Stauffer 🇨�... @SQLSocialite
4K Followers 3K Following Data Consultant Currently working with MS Fabric Microsoft Data Platform MVP Alumni Puppy Air Transport Volunteer at BC and Alberta Guide Dogs 🐕🦺🦮
Redgate Software @redgate
16K Followers 5K Following Take control of your databases with the trusted Database DevOps solutions provider Redgate Software.
Heini Ilmarinen @HeiniIlmarinen
834 Followers 289 Following Cloud Solution Architect, Data Platform MVP, MCT. Passionate about data and architecture 🧩 Math nerd in a previous life 🤓 Love riding bikes 🚵🏼♀️
way0utwest 🎙️ (H... @way0utwest
8K Followers 598 Following Steve Jones -Editor, SQL Server Central and Advocate, Redgate Software. Data Platform MVP, husband, father, volleyball coach, and lover of Hawaiian shirts.
Grant Fritchey @GFritchey
15K Followers 348 Following Grant Fritchey is a database geek, a Microsoft Data Platform MVP & AWS Community Builder. He works for Red Gate Software as a Product Advocate. Call: KC1KCE
Jess Pomfret (@Jpomfr... @jpomfret
2K Followers 2K Following Data platform architect with a passion for automation, proper football and fitness. She/Her.
Ben Weissman (he/him) @bweissman
3K Followers 444 Following Dad. Data Platform MVP. Biml Hero. Author. FoRG. Barkeeper @DataGrillen. Owns more than 1 pair of glasses. https://t.co/zyu97m5vbg
Monica Morehouse (Rat... @SQLEspresso
6K Followers 870 Following Consultant at @dcacco, Microsoft Data Platform MVP, MCSE, vExpert, Leader @HamptonRoadSSUG Meetup, and International Speaker. SQL Performance Tuning is fun.
Buck Woody @BuckWoodyMSFT
11K Followers 263 Following
Rie Merritt🌻 @IrishSQL
7K Followers 758 Following Mom, Feminist, Liberal, Southern girl, She/Her, https://t.co/mf0kZjtd2N, MVP Lead Data Platform, #MVPBuzz Tweets are my OWN
James McGillivray �... @JamesMcG_MSBI
846 Followers 529 Following Microsoft BI Architect | Speaker - PowerBI World Tour / PASS Summit / SQLBits | MCSE Data Analytics & Management | Cricket | Arsenal | Musical Theatre 🚻 He/Him
Guy In A Cube @GuyInACube
30K Followers 2K Following Guy in a Cube is teaching you more than the clicks of #PowerBI and #MicrosoftFabric THE CUBE: https://t.co/uc2FxyCROK YouTube: https://t.co/orW2MYjAhC
Kimberly L. Tripp @KimberlyLTripp
12K Followers 427 Following SQL Server professional (https://t.co/xZY5mLMzBh) since 1990, SCUBA diver, photographer (https://t.co/vDosjGCcf0) 💙 adventures! Married to @paulrandal. 7 cats!
Adam Saxton @awsaxton
8K Followers 2K Following Christ Follower, Principal PM @Microsoft working on #MicrosoftFabric including #PowerBI.
Kristyna Ferris (Hugh... @data_dragoness
558 Followers 217 Following Microsoft Fabric MVP. Love finding new ways to see the world. I write about PBI, SQL, and more on https://t.co/PMUHYocMjp 💡 #HappyCoding
patrick leblanc @patrickdba
9K Followers 2K Following
datasaturdays @datasaturdays
845 Followers 17 Following Our FREE resources offer community events for the Microsoft Data Platform. A place By The Community For The Community. Not SQL Saturday.
sqlsatofficial @sqlsatofficial
636 Followers 25 Following The official twitter account for the SQL Saturday corporation and franchise
Bob Pusateri @SQLBob
4K Followers 778 Following Microsoft Certified Master. Senior Data Professional. International presenter, blogger, author, conference organizer. Tweets are my own.
Bob Ward @bobwardms
8K Followers 26 Following Principal Architect, Microsoft, Azure Data. Empowering others to make a difference
Darling Data @erikdarlingdata
5K Followers 118 Following I will make your #SQLServer faster in exchange for money. https://t.co/YMFfQpiRqU
Brent Ozar @BrentO
31K Followers 284 Following I make SQL Server go faster. I love teaching, travel, laughing. Las Vegas. Ferrari 328 GTS, two Jaguar XKR-S’s, Speedster replica. He/him, pan.
Rohan Kumar @RohanKData
4K Followers 2K Following President & Chief Platform and Engineering Officer, Salesforce
SQLBits @SQLBits
11K Followers 3K Following Industry’s leading Data Platform conference - over 200 sessions across 4 days covering a range of data technologies📊 Winner of UK Conference of the Year 2020🏆
Hugo Kornelis @Hugo_Kornelis
3K Followers 340 Following Married, father of 2 children. No cats anymore :(. MVP SQL Server/Data Platform (2006-2016/2019-now). Also likes computer games, snooker, good food. (he/him)
PASS Data Community S... @PASSDataSummit
3K Followers 949 Following Join us for a series of in-person #PASSDataSummit conferences for data professionals in 2026! See you in Chicago, Frankfurt and Seattle later this year.





