Operational Defect Database

BugZero found this defect 559 days ago.

Microsoft Windows Server | WI480696

Database connections using Microsoft ODBC SQL Server driver might fail.

Last update date:

1/10/2023

Affected products:

Affected releases:

Fixed releases:

Description:

Impact: Apps using ODBC connections might fail to connect to databases. Originating KB URL: https://support.microsoft.com/en-us/topic/5019081 Originating KB Release Date: 2022-11-08T10:00:00-08:00 Originating Build: 20348.1249 Resolved KB URL: https://support.microsoft.com/en-us/topic/5022291 Date Resolved: 2023-01-10T10:00:00-08:00 Vendor Message History: ======================= Published: 2023-01-10T18:05:01.077+00:00 ---------------------------------------- After installing KB5019081 (https://support.microsoft.com/help/5019081), apps which use ODBC connections utilizing the Microsoft ODBC SQL Server Driver (sqlsrv32.dll) to access databases might fail to connect. You might receive an error within the app or you might receive an error from SQL Server, such as "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". Note for developers: Apps affected by this issue might fail to fetch data, for example when using the SQLFetch function (https://learn.microsoft.com/sql/odbc/reference/syntax/sqlfetch-function). This issue might occur when calling SQLBindCol function (https://learn.microsoft.com/sql/odbc/reference/syntax/sqlfetch-function) before SQLFetch or calling SQLGetData function (https://learn.microsoft.com/sql/odbc/reference/syntax/sqlgetdata-function) after SQLFetch and when a value of 0 (zero) is given for the ‘BufferLength’ argument for fixed datatypes larger than 4 bytes (such as SQL_C_FLOAT). If you are unsure if you are using any affected apps, open any apps which use a database and then open Command Prompt (select Start then type command prompt and select it) and type the following command: tasklist /m sqlsrv32.dll Workaround: To mitigate this issue, you can do one of the following: - If your app is already using or able to use Data Source Name (DSN) (https://support.microsoft.com/topic/what-is-a-dsn-data-source-name-ae9a0c76-22fc-8a30-606e-2436fe26e89f) to select ODBC connections, install Microsoft ODBC Driver 17 for SQL Server (https://learn.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#version-17) and select it for use with your app using DSN. Note: We recommend the latest version of Microsoft ODBC Driver 17 for SQL Server (https://learn.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#version-17), as it is more compatible with apps currently using the legacy Microsoft ODBC SQL Server Driver (sqlsrv32.dll) than Microsoft ODBC Driver 18 for SQL Server. - If your app is unable to use DSN, the app will need to be modified to allow for DSN or to use a newer ODBC driver than Microsoft ODBC SQL Server Driver (sqlsrv32.dll). Resolution: This issue was resolved in KB5022291 (https://support.microsoft.com/help/5022291). If you have implemented the above workaround, it is recommended to continue using the configuration in the workaround. Affected platforms: - Client: Windows 11, version 22H2; Windows 10, version 22H2; Windows 11, version 21H2; Windows 10, version 21H2; Windows 10, version 21H1; Windows 10, version 20H2; Windows 10 Enterprise LTSC 2019; Windows 10 Enterprise LTSC 2016; Windows 10 Enterprise 2015 LTSB; Windows 8.1; Windows 7 SP1 - Server: Windows Server 2022; Windows Server 2019; Windows Server 2016; Windows Server 2012 R2; Windows Server 2012; Windows Server 2008 R2 SP1; Windows Server 2008 SP2 Published: 2023-01-06T00:50:34.83+00:00 ---------------------------------------- After installing KB5019081 (https://support.microsoft.com/help/5019081), apps which use ODBC connections utilizing the Microsoft ODBC SQL Server Driver (sqlsrv32.dll) to access databases might fail to connect. You might receive an error within the app or you might receive an error from SQL Server, such as "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". Note for developers: Apps affected by this issue might fail to fetch data, for example when using the SQLFetch function (https://learn.microsoft.com/sql/odbc/reference/syntax/sqlfetch-function). This issue might occur when calling SQLBindCol function (https://learn.microsoft.com/sql/odbc/reference/syntax/sqlfetch-function) before SQLFetch or calling SQLGetData function (https://learn.microsoft.com/sql/odbc/reference/syntax/sqlgetdata-function) after SQLFetch and when a value of 0 (zero) is given for the ‘BufferLength’ argument for fixed datatypes larger than 4 bytes (such as SQL_C_FLOAT). If you are unsure if you are using any affected apps, open any apps which use a database and then open Command Prompt (select Start then type command prompt and select it) and type the following command: tasklist /m sqlsrv32.dll Workaround: To mitigate this issue, you can do one of the following: - If your app is already using or able to use Data Source Name (DSN) (https://support.microsoft.com/topic/what-is-a-dsn-data-source-name-ae9a0c76-22fc-8a30-606e-2436fe26e89f) to select ODBC connections, install Microsoft ODBC Driver 17 for SQL Server (https://learn.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#version-17) and select it for use with your app using DSN. Note: We recommend the latest version of Microsoft ODBC Driver 17 for SQL Server (https://learn.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#version-17), as it is more compatible with apps currently using the legacy Microsoft ODBC SQL Server Driver (sqlsrv32.dll) than Microsoft ODBC Driver 18 for SQL Server. - If your app is unable to use DSN, the app will need to be modified to allow for DSN or to use a newer ODBC driver than Microsoft ODBC SQL Server Driver (sqlsrv32.dll). Next steps: We are working on a resolution and will provide an update in an upcoming release. Affected platforms: - Client: Windows 11, version 22H2; Windows 10, version 22H2; Windows 11, version 21H2; Windows 10, version 21H2; Windows 10, version 21H1; Windows 10, version 20H2; Windows 10 Enterprise LTSC 2019; Windows 10 Enterprise LTSC 2016; Windows 10 Enterprise 2015 LTSB; Windows 8.1; Windows 7 SP1 - Server: Windows Server 2022; Windows Server 2019; Windows Server 2016; Windows Server 2012 R2; Windows Server 2012; Windows Server 2008 R2 SP1; Windows Server 2008 SP2 Published: 2022-12-05T23:57:00.92+00:00 ---------------------------------------- After installing KB5019081 (https://support.microsoft.com/help/5019081), apps which use ODBC connections utilizing the Microsoft ODBC SQL Server Driver (sqlsrv32.dll) to access databases might fail to connect. You might receive an error within the app or you might receive an error from SQL Server, such as "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". If you are unsure if you are using any affected apps, open any apps which use a database and then open Command Prompt (select Start then type command prompt and select it) and type the following command: tasklist /m sqlsrv32.dll Next steps: We are working on a resolution and will provide an update in an upcoming release. Affected platforms: - Client: Windows 11, version 22H2; Windows 10, version 22H2; Windows 11, version 21H2; Windows 10, version 21H2; Windows 10, version 21H1; Windows 10, version 20H2; Windows 10 Enterprise LTSC 2019; Windows 10 Enterprise LTSC 2016; Windows 10 Enterprise 2015 LTSB; Windows 8.1; Windows 7 SP1 - Server: Windows Server 2022; Windows Server 2019; Windows Server 2016; Windows Server 2012 R2; Windows Server 2012; Windows Server 2008 R2 SP1; Windows Server 2008 SP2

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Resolved

Learn More

Search:

...