top of page
Writer's picturePhilipp Stiefel

No ODBC Issue for Christmas 2022

Updated: Mar 1


Fake miniature christmas trees

 

It’s nearly Christmas; a time to sit back, relax, and reflect. – Some reflection is also required regarding an issue in Microsoft’s 08 November Windows update (KB5019980 for Windows 11, KB5019959 for Windows 10, KB5020023 for Windows 8.1 and Windows Server 2012 R2). - A detailed list of the affected Windows platforms can be found in this Windows Health Notification.


On 05 December Microsoft reported that this update may cause ODBC connections “utilizing the Microsoft ODBC SQL Server Driver (sqlsrv32.dll)” to fail with an error messages like "[Microsoft][ODBC SQL Server Driver] Protocol error in TDS Stream" or "[Microsoft][ODBC SQL Server Driver]Unknown token received from SQL Server".


On 06 December this problem was news on many tech websites. Unfortunately, the journalists writing on the issue worked with varying degrees of accuracy and insight. Some basically reproduced the brief original Microsoft report without adding much clarity to it, while others went overboard blowing it up to “Windows ODBC in general is broken by the update”.


As I said, lean back and relax. So far, I haven’t seen any report on this issue in the wild, neither in any public online discussion nor as a direct report by customers and colleagues.


However, and this is the reason for this writing, since those media reports on the issue were published, I’ve seen quite a few messages, private and public, along the lines of “OMG, Microsoft broke ODBC and we are affected by this issue. When will they fix this? How can I roll back the faulty patch?” When in fact the authors were not at all affected by this issue but had some completely unrelated ODBC errors of their own making.


To prevent these false-positive problem reports, I want to clarify a few things.

  • The Windows ODBC interface in general is not affected.

  • The newer ODBC drivers for Microsoft SQL Server, "SQL Server Native Client nn.n" and "ODBC Driver nn for SQL Server" are not affected.

  • No other ODBC driver for any other DBMS is affected.

  • The problem only potentially affects the old "SQL Server" ODBC driver for Microsoft SQL Server! Still, I tried ODBC connections from Microsoft Access 2010 and 2016/365 to SQL Server on several computers with Windows 8.1 and Windows 10 with the Nov8-Patch installed and did not notice any issue at all.

Windows ODBC Data Source Administrator dialog showing SQL Server driver
ODBC Data Source Administrator

So, if you see some ODBC related error messages, don’t jump to the premature conclusion that you are affected by this issue. – Most likely you are not!


If you use the old "SQL Server" ODBC driver and you are really affected by this issue, the easiest and quickest solution is to replace that ODBC driver with one of the newer alternatives mentioned above.

293 views5 comments

Recent Posts

See All

5 Comments


Ryan W
Ryan W
Jan 07, 2023

https://www.bleepingcomputer.com/news/microsoft/microsoft-shares-temporary-fix-for-odbc-database-connection-issues/

Like
Philipp Stiefel
Philipp Stiefel
Jan 08, 2023
Replying to

Thank's for the link.

I think the title of the article "Microsoft shares temporary fix ..." is misleading.

  1. The "fix" proposed there is basically what I suggested above regarding using a newer driver. This "fix" would have been obvious right from the first report of the issue, had Microsoft and the reporting journalist made the effort to describe the scope of the issue in a comprehensible way.

  2. I don't see any reason why this "fix" would only be temporary. The only case for using the older driver is its ubiquitous availability. Once you got a newer driver installed and configured on affected computers, you can very well leave that in place as a permanent solution.

Like

Mike Wolfe
Mike Wolfe
Dec 24, 2022

Nice article, Philipp. ODBC errors--and connection errors to SQL Server generally--are notoriously difficult to troubleshoot. Bugs from Microsoft make an easy scapegoat, but there are many other possible explanations. I wrote an article awhile back with some steps to take if you're having SQL Server connection issues: https://nolongerset.com/troubleshooting-sql-server-connections/

Like
Mike Wolfe
Mike Wolfe
Dec 26, 2022
Replying to

Thanks, Philipp! I updated my post accordingly.

Like
bottom of page