Security

Patches

Microsoft fixes Windows database connections it broke in November

January Patch Tuesday update resolves issue caused by Patch Tuesday update late in '22


Included in the usual tsunami of fixes Microsoft issued this week as part of Patch Tuesday was one that took care of a connectivity problem for applications using the Open Database Connectivity (ODBC) interface.

The ODBC problem was one of several stemming from the November Patch Tuesday updates that Microsoft had to address.

The software giant last month said that a Windows update included in the November fixes could cause issues for apps using the Microsoft ODBC SQL Server Driver that led to attempts to access databases resulting in an error message when the connection failed.

The issue affected users who installed the November updates and impacted a range of operating systems, from Windows 7 SP1 and Windows 8.1 through various versions of Windows 10 and the latest Windows 11 version, 22H2.

In addition, multiple Windows Server OSes were affected, including versions 2008, 2012, 2016, 2019, and 2022.

Microsoft said it fixed the issue with the KB5022303 update it released on Tuesday.

The vendor warned in early December that after installing KB5019980, applications that used the Microsoft ODBC SQL Server Driver (sqlsrv32.dll) saw their ODBC connections to databases fail.

The user would see an error in the app itself or receive an error from SQL Server that said: "The EMS System encountered a problem" with "Message: [Microsoft][ODBC SQL Server Driver] Protocol error in TDS Stream" or "Message: [Microsoft][ODBC SQL Server Driver] Unknown token received from SQL Server." 

In addition, apps failed to fetch data when running such tasks as the SQLFetch feature, either when calling the SQLBindCol function before SQLFetch or calling SQLGetData feature after SQLFetch.

The problem also could arise "when a value of 0 (zero) is given for the 'BufferLength' argument for fixed datatypes larger than 4 bytes (such as SQL_C_FLOAT)," Microsoft wrote in the Windows Health Dashboard.

ODBC is a call-level interface used to enable applications to access data from databases that use an ODBC driver, according to Microsoft. The interface includes an API that enables developers to build database applications that are independent of the source database management system.

Microsoft earlier created a workaround for the problem, calling for developers who already use the Data Source Name (DSN) function to select ODBC connections to install the company's ODBC Driver 17 for SQL Server and selecting it to be used with the app using DSN.

The company said the latest version of the ODBC Driver 17 for SQL Server is more compatible with apps using the legacy ODBC SQL Server Driver than version 18.

Microsoft also said that for users who implemented the workaround, it recommended they "continue using the configuration in the workaround." ®

Send us news
3 Comments

Microsoft issues deadline for end of Windows 10 support – it's pay to play for security

Limited options will be available into 2028, for an undisclosed price

Microsoft's code name for 64-bit Windows was also a dig at rival Sun

Should have called Vista 'Shitterton' and had done with it

Tiny11 shrinks Windows 11 23H2 down to pocket size

An option when sun sets on Windows 10, but Microsoft might have a problem

Microsoft confirms Smart App issue renaming everyone's printers to HP

Not only turning up uninvited, but telling folks they suddenly have a LaserJet

Microsoft to intro dedicated mode for Cloud PCs

Latest Insider Build brings new features for Windows 365 Boot

Messed up metadata could be to blame for Microsoft's Windows printer woes

It looks like everything is coming up HP. Do you want some help with that?

Microsoft, Databricks double act tries to sew up the data platform market

But the one-stop shop vision fails to take it far beyond the competition

Microsoft unleashes Copilot preview on Windows 10 insiders

Teething issues show up as operating system gets a taste of the future

Google submits complaints about Microsoft licensing to UK competition regulator

Now Microsoft has regulator breathing down its neck in three regions

Nostalgia for XP sells out Microsoft's 2023 'Windows Ugly Sweater'

Bliss not your thing? You could win the Paint version

USB Cart of Death: The wheeled scourge that drove Windows devs to despair

Stout heart a requisite for software engineers in days of yore

FTC wants Microsoft's relationship with OpenAI under the microscope

Hey Bing, how can I invest billions in a company but not break antitrust laws?