r/SQLServer • u/ITWorkAccountOnly • Jan 21 '26
Discussion SQL Server 2025 CU1 & SQL 2022 CU23 were pulled
To make this more visible since other posts about this are in comments, SQL 2025 CU1 and SQL 2022 CU23 were just pulled by Microsoft.
There's an issue where DBmail stops working if it's installed, and as of now the only guidance is to uninstall the CU.
44
Upvotes
14
u/ITWorkAccountOnly Jan 21 '26
I haven't tested this myself, however someone on a Microsoft Learn thread about this has posted a potential workaround without a need for uninstalling the CU. It involves copying the DB Mail executable and .dll's from a non-patched server to the patched server. Paths in the answer are base paths for SQL 2022, adjust as necessary for 2025 or custom installation paths.
Link here to the Microsoft Learn page with instructions
4
u/BussReplyMail Jan 21 '26
And this is why I take it slow rolling out SQL updates. Test gets done a week or so after Patch Tuesday, let the patches "bake" for a week in test to try to find any problems, then patch Prod.
I know everyone can't do it that way, and I do get some pushback from our cybersec guys if there's a security part to an update, but so far I've been able to hold to my scheduling.
Even better is when other people find the problem and start posting about it, because then I have something to point to and say "SEE! SEE! If I apply the update it's gonna break things!"
3
u/itsnotaboutthecell Microsoft Employee Jan 21 '26
I noticed this post the other day, on this same topic:
https://www.reddit.com/r/SQLServer/comments/1qhd6o6/rant_mssql_i_am_not_more_than_1000_confident_that/
28
u/Sov1245 Jan 21 '26 •
In totally unrelated news, Microsoft claims that 80% of its new code is Ai generated.
7
u/da_chicken Jan 21 '26
As I understand it, dbmail doesn't exactly stop working. The update actually deletes
DatabaseMail.exebecause it's incorrectly not packaged in the update. The executable that the SQL Agent tries to call isn't there in the file system after the update.2
u/dentist73 Jan 21 '26
A good reminder to never be on the latest CU
2
u/topgun9050 Jan 22 '26
For us, rollback worked. However, if you rollback the CU, the send mail queue gets wiped out. Dump all mails with unsent status into a temp table before you rollback the CU and resend those mails from your temp table after undoing the patch.
1
u/TheGenericUser0815 1 Jan 21 '26
Thank you, good to know, might save my ass.
1
u/topgun9050 Jan 22 '26
Also it will cause downtime for your applications for few mins
1
u/CodeXploit1978 Jan 22 '26
I’m always one CU behind because I don’t trust Microsoft to do their job properly.