r/dotnet • u/jitbitter • Aug 05 '25
My process of upgrading Microsoft.Data.SqlClient
New version comes out on Nuget
Wait 2 days
Go to github see if people experience any crashes or bugs
They do
Don't upgrade
Highly recommended.
Helped us 3 or 4 releases already.
39
u/mkt853 Aug 05 '25
Does one really rush to the latest version of a sql client in general? Like what features are being added at this point? Interacting with sql servers isn't terribly complicated and it's mature tech, so I'm curious what are they changing that requires a new release? Is it just updating for the latest version of .net?
25
u/kogasapls Aug 05 '25 edited Aug 05 '25
Like what features are being added at this point?
I would assume few new features but some occasional security patches, bugfixes, and performance improvements. Libraries like these should be stable, so upgrading should be a no brainer. I guess I'm wrong about that, though.
https://github.com/dotnet/SqlClient/releases/tag/v6.1.0
Lots of performance tweaks and fixes. A couple niche new features. Restored .NET Standard 2.0 target.
17
u/FragKing82 Aug 05 '25
The performance reworks for Async code paths were fairly extensive. It has been in preview for a while and it seems these issues were not detected then unfortunately
16
u/admalledd Aug 05 '25
A critical bug that has existed for over ~5 years (existed in SDS as well) large data over async is slow is one of the bigger ones that many people have been waiting for, for example on why attempts to update (... and quick rollbacks) soon have happened.
2
2
1
u/insta Aug 06 '25
i do, because it's referenced by a ton of packages and i get irritated as hell about build errors for version mismatches.
then again i don't write missile guidance software or pacemaker firmware, so a SqlClient bug isn't that big of a deal
1
6
6
u/Shadow_Mite Aug 05 '25
A lot of MS has really gone downhill since AI came in a couple years ago. Hate to see it.
1
u/cs_legend_93 Aug 07 '25
They probably utilize it too much and AI doesn't have the foresight that humans have
1
u/mustang__1 Aug 05 '25
Heh... thanks for the heads up. I just upgraded a bunch of packages in a project I'm about to reopen. Although that said, it looks like Data.SqlClient is only a transitive package and is still on a 5.x....
1
u/i8beef Aug 08 '25
My process is I don't until they remove Azure and Identity references because I don't work with azure and eventually those transient dependencies will cause issues.
0
u/AutoModerator Aug 05 '25
Thanks for your post jitbitter. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
18
u/twisteriffic Aug 05 '25
Is it always this much of a dumpster fire? So far I see:
release cut with deprecated versions of first-party dependencies
broken support for netstandard2.0, despite that being mentioned as a top line feature in the release blog post
literally last minute inclusion of a fix for silent data corruption without time for the community author to test
massive regression on initial connection latency