Skip to content

Bump Microsoft.Data.SqlClient and Microsoft.EntityFrameworkCore.SqlServer#15

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/MkartLogistics.Data/multi-adacad2b9d
Open

Bump Microsoft.Data.SqlClient and Microsoft.EntityFrameworkCore.SqlServer#15
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/MkartLogistics.Data/multi-adacad2b9d

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 22, 2026

Copy link
Copy Markdown

Updated Microsoft.Data.SqlClient from 2.0.1 to 5.1.5.

Release notes

Sourced from Microsoft.Data.SqlClient's releases.

5.1.5

[Stable release 5.1.5] - 2024-01-29

This update brings the below changes over the previous release:

Fixed

  • Fixed connection to unsubscribe from transaction completion events before returning it to the connection pool #​2321
  • Fixed InvalidCastException when reading an Always Encrypted date or time column #​2324

Changed

  • Changed Microsoft.IdentityModel.JsonWebTokens and Microsoft.IdentityModel.Protocols.OpenIdConnect version 6.24.0 to 6.35.0 #​2320 to address CVE-2024-21319

5.1.4

[Stable release 5.1.4] - 2024-01-09

Fixed

  • Fixed a deadlock problem for distributed transactions when on .NET.

Changed

For summary of all changes over v5.1.3, refer to 5.1.4.md

5.1.3

[Stable release 5.1.3] - 2024-01-09

Fixed

  • Fixed encryption downgrade issue. CVE-2024-0056
  • Fixed certificate chain validation logic flow.

For summary of all changes over v5.1.2, refer to 5.1.3.md

5.1.2

[Stable release 5.1.2] - 2023-10-26

Fixed

  • Fixed access violation when using SQL Express user instance. #​2101
  • Fixed Always Encrypted secure enclave retry logic for async queries. #​1988
  • Fixed LocalDb and managed SNI by improving the error messages and avoid falling back to the local service. #​2129
  • Fixed .NET and .NET Standard file version. 2093
  • Fixed non-string values and SqlConnectionStringBuilder property indexer issue. #​2018
  • Fixed SqlConnectionEncryptOption type conversion by introducing the SqlConnectionEncryptOptionConverter attribute when using appsettings.json files. #​2057
  • Fixed Transient fault handling issue with OpenAsync. #​1983
  • Fixed activity correlator to continue use of same GUID for connection activity. #​1997

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.1.1. #​2123

For summary of all changes over v5.1.1, refer to 5.1.2.md

5.1.1

[Stable release 5.1.1] - 2023-03-28

Fixed

  • Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. #​1968
  • Fixed TransactionScope connection issue when Enlist is enabled, Pooling is disabled, and Network Connection Type is set to Redirect. #​1967
  • Fixed throttling of token requests by calling AcquireTokenSilent. #​1966
  • Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync. #​1965
  • Fixed NullReferenceException in GetBytesAsync. #​1964

For summary of all changes over v5.1.0, refer to 5.1.1.md

5.1.0

Breaking changes

Added

  • Added support for .NET 6.0. #​1704
  • Added support for DateOnly and TimeOnly for SqlParameter value and GetFieldValue. #​1813
  • Added support for TLS 1.3 on .NET Core and native SNI. #​1821
  • Added ServerCertificate setting for Encrypt=Mandatory or Encrypt=Strict. #​1822
  • Added Windows ARM64 support when targeting .NET Framework. #​1828

Fixed

  • Fixed thread safety of transient error list in configurable retry logic. #​1882
  • Fixed deadlock when using SinglePhaseCommit with distributed transactions. #​1801
  • Fixed Dedicated Admin Connections (DAC) to localhost in managed SNI #​1865
  • Fixed memory leak regression from #​1781 using a DisposableTemporaryOnStack struct. #​1818
  • Fixed ReadAsync() behavior to register Cancellation token action before streaming results. #​1781
  • Fixed NullReferenceException when assigning null to SqlConnectionStringBuilder.Encrypt. #​1778
  • Fixed missing HostNameInCertificate property in .NET Framework Reference Project. #​1776
  • Fixed async deadlock issue when sending attention fails due to network failure. #​1766
  • Fixed failed connection requests in ConnectionPool in case of PoolBlock. #​1768
  • Fixed hang on infinite timeout and managed SNI. #​1742
  • Fixed Default UTF8 collation conflict. #​1739

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.1.0. #​1889 which includes fix for AppDomain crash in issue #​1418, TLS 1.3 Support, removal of ARM32 binaries, and support for the ServerCertificate option. #​1822 Read more
  • Reverted "Excluding unsupported TLS protocols" for issue #​1151 (i.e. removed Switch.Microsoft.Data.SqlClient.EnableSecureProtocolsByOS) by adding support for TLS 1.3. #​1824
  • Changed the SqlConnectionEncryptOption string parser to public. #​1771
  • Converted ExecuteNonQueryAsync to use async context object. #​1692
  • Code health improvements #​1867 #​1849 #​1812 #​1520 #​1604 #​1598 #​1595 #​1443

For summary of all changes over v5.0, refer to 5.1.0.md

5.1.0-preview2.22314.2

[Preview Release 5.1.0-preview2.22314.2] - 2022-11-10

This update brings the below changes over the previous release:

Breaking changes over preview release v5.1.0-preview1

  • Add support for .NET 6.0 and Dropped support for .NET Core 3.1. #​1704 #​1823

Added

  • Added support for DateOnly and TimeOnly for SqlParameter value and GetFieldValue. #​1813
  • Added support for TLS 1.3 for .NET Core and SNI Native. #​1821
  • Added ServerCertificate support for Encrypt=Mandatory or Encrypt=Strict. #​1822
  • Added Windows ARM64 support when targeting .NET Framework. #​1828

Fixed

  • Fixed memory leak regression from #​1781 using a DisposableTemporaryOnStack struct. #​1818

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.1.0-preview2.22311.2. #​1831 which includes the fix for the TLS 1.3 timeout and double handshake issue, removal of ARM32 binaries, and support for the ServerCertificate option. #​1822
  • Reverted "Excluding unsupported TLS protocols" for issue #​1151 (i.e. removed Switch.Microsoft.Data.SqlClient.EnableSecureProtocolsByOS) by adding support for TLS 1.3. #​1824
  • Code health improvements #​1812 #​1520

For detailed release notes, refer to 5.1.0-preview2.md

5.1.0-preview1.22279.3

[Preview Release 5.1.0-preview1.22279.3] - 2022-10-19

This update brings the below changes over the stable release v5.0.0:

Fixed

  • Fixed ReadAsync() behavior to register Cancellation token action before streaming results. #​1781
  • Fixed NullReferenceException when assigning null to SqlConnectionStringBuilder.Encrypt. #​1778
  • Fixed missing HostNameInCertificate property in .NET Framework Reference Project. #​1776
  • Fixed async deadlock issue when sending attention fails due to network failure. #​1766
  • Fixed failed connection requests in ConnectionPool in case of PoolBlock. #​1768
  • Fixed hang on infinite timeout and managed SNI. #​1742
  • Fixed Default UTF8 collation conflict. #​1739

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.1.0-preview1.22278.1. #​1787 which includes TLS 1.3 Support and fix for AppDomain crash in issue #​1418
  • Changed the SqlConnectionEncryptOption string parser to public. #​1771
  • Converted ExecuteNonQueryAsync to use async context object. #​1692
  • Code health improvements #​1604 #​1598 #​1595 #​1443

Known issues

  • When using Encrypt=Strict with TLS v1.3, the TLS handshake occurs twice on initial connection on .NET Framework due to a timeout during the TLS handshake and a retry helper re-establishes the connection; however, on .NET Core, it will throw a System.ComponentModel.Win32Exception (258): The wait operation timed out. and is being investigated. If you're using Microsoft.Data.SqlClient with .NET Core on Windows 11, you will need to enable the managed SNI on Windows context switch using following statement AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true); to use TLS v1.3 or disabling TLS 1.3 from the registry by assigning 0 to the following HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client\Enabled registry key and it'll use TLS v1.2 for the connection. This will be fixed in a future release.

For detailed release notes, refer to 5.1.0-preview1.md

5.0.2

[Stable release 5.0.2] - 2023-03-31

Fixed

  • Fixed memory leak regression from #​1785 using a DisposableTemporaryOnStack struct. #​1980
  • Fixed TransactionScope connection issue when Enlist is enabled, Pooling is disabled, and Network Connection Type is set to Redirect. #​1978
  • Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. #​1977
  • Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync. #​1976
  • Fixed deadlock when using SinglePhaseCommit with distributed transactions. #​1975

For summary of all changes over v5.0.1, refer to 5.0.2.md

5.0.1

Fixed

  • Fixed missing HostNameInCertificate connection string property in .NET Framework. #​1782
  • Fixed async deadlock issue when sending attention fails due to network failure. #​1783
  • Fixed Null Reference Exception on assigning null to SqlConnectionStringBuilder.Encrypt. #​1784
  • Fixed ReadAsync() behavior to register Cancellation token action before streaming results. #​1785
  • Fixed hang on infinite timeout and managed SNI. #​1798
  • Fixed Default UTF8 collation conflict. #​1799

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.0.1 #​1795, which includes the fix for AppDomain crash in issue #​1418.

5.0.0

Added

  • Added support for TDS 8. To use TDS 8, users should specify Encrypt=Strict in the connection string. #​1608
  • Added TDS 8 version for TDSLogin. #​1657

Fixed

  • Fixed null SqlBinary as rowversion. #​1688
  • Fixed KeyNotFoundException for the FailoverPartner key on SQL servers with availability group configured. #​1614
  • Fixed small inconsistency between netcore and netfx for EncryptionOptions. #​1672
  • Fixed Microsoft.SqlServer.Server netcore project package reference. #​1654

Changed

  • Updated AuthProviderInfo struct to be matched the changes in native SNI for TDS 8 server certificate validation. #​1680
  • Updated default system protocol for TDS 8 on managed code. #​1678
  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.0.0. #​1680
  • Updated IdentityModel dependency from 6.8.0 to 6.21.0 and IdentityClient from 4.32.2 to 4.45.0. #​1646
  • Changed from union overlay design to reflected interfaces for SqlTypes. 1647

For summary of all changes over v4.1, refer to 5.0.0.md

5.0.0-preview3

[Preview Release 5.0.0-preview3.22168.1] - 2022-06-16

Breaking changes over preview release v5.0.0-preview2

  • Added a dependency on the Microsoft.SqlServer.Server package. This new dependency may cause namespace conflicts if your application references that namespace and still has package references (direct or indirect) to System.Data.SqlClient from .NET Core.
  • Dropped classes from the Microsoft.Data.SqlClient.Server namespace and replaced them with supported types from the Microsoft.SqlServer.Server package.#​1585 The affected classes and enums are:
    • Microsoft.Data.SqlClient.Server.IBinarySerialize -> Microsoft.SqlServer.Server.IBinarySerialize
    • Microsoft.Data.SqlClient.Server.InvalidUdtException -> Microsoft.SqlServer.Server.InvalidUdtException
    • Microsoft.Data.SqlClient.Server.SqlFacetAttribute -> Microsoft.SqlServer.Server.SqlFacetAttribute
    • Microsoft.Data.SqlClient.Server.SqlFunctionAttribute -> Microsoft.SqlServer.Server.SqlFunctionAttribute
    • Microsoft.Data.SqlClient.Server.SqlMethodAttribute -> Microsoft.SqlServer.Server.SqlMethodAttribute
    • Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute -> Microsoft.SqlServer.Server.SqlUserDefinedAggregateAttribute
    • Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute -> Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute
    • (enum) Microsoft.Data.SqlClient.Server.DataAccessKind -> Microsoft.SqlServer.Server.DataAccessKind
    • (enum) Microsoft.Data.SqlClient.Server.Format -> Microsoft.SqlServer.Server.Format
    • (enum) Microsoft.Data.SqlClient.Server.SystemDataAccessKind -> Microsoft.SqlServer.Server.SystemDataAccessKind

Added

  • Added support for TDS 8. To use TDS 8, users should specify Encrypt=Strict in the connection string. Strict mode disables TrustServerCertificate (always treated as False in Strict mode). HostNameInCertificate has been added to help some Strict mode scenarios. #​1608
  • Added support for specifying Server SPN and Failover Server SPN on the connection. #​1607
  • Added support for aliases when targeting .NET Core on Windows. #​1588

Fixed

Changed

For detailed release notes, refer 5.0.0-preview3.md

5.0.0-preview2

Breaking changes over preview release v5.0.0-preview1

  • Dropped support for .NET Framework 4.6.1 #​1574

Fixed

  • Fixed connection failure by skipping Certificate Revocation List (CRL) check during authentication #​1559

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.0.0-preview2.22084.1. #​1563
  • Updated Azure.Identity version to 1.5.0 and Microsoft.Identity.Client version to 4.30.1 #​1462
  • Replaced AlwaysEncryptedAttestationException with SqlException #​1515
  • Improved error message when adding wrong type to SqlParameterCollection #​1547
  • Code health improvements #​1343 #​1370 #​1371 #​1438 #​1483

For detailed release notes, refer 5.0.0-preview2.md

5.0.0-preview1.22069.1

[Preview Release 5.0.0-preview1.22069.1] - 2022-03-09

Added

  • Added SqlDataSourceEnumerator. #​1430
  • Added new attestation protocol None option to forgo enclave attestation when using VBS enclaves. #​1425 and #​1419
  • Added a new AppContext switch to suppress insecure TLS warnings. #​1457

Fixed

  • Fixed all documentation paths to Unix format path. #​1442
  • Fixed thread safety issue for GetEnclaveProvider by converting dictionary to concurrent dictionary. #​1451

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v5.0.0-preview1.22062.1. #​1537
  • Modernized style in ValueUtilSmi. #​1351
  • Changed SQL server codenames to version names. #​1439
  • Prevented subtype generation in project files. #​1452
  • Changed Array.Copy to Buffer.BlockCopy for byte arrays. #​1366
  • Changed files in csproj to be alphabetically sorted in netfx and netcore. #​1364
  • Sqlstream, SqlInternalTransaction and MetaDataUtilsSmi are moved to shared folder. #​1337, #​1346 and #​1339
  • Various code improvements: #​1197, #​1313, #​1330,#​1366, #​1435, #​1478

4.1.1

[Stable release 4.1.1] - 2022-09-13

Fixed

  • Fixed connection failure by not requiring Certificate Revocation List (CRL) check during authentication. #​1706
  • Parallelize SSRP requests on Linux and macOS when MultiSubNetFailover is specified. #​1708, #​1746
  • Added CommandText length validation when using stored procedure command types. #​1709
  • Fixed NullReferenceException during Azure Active Directory authentication. #​1710
  • Fixed null SqlBinary as rowversion. #​1712
  • Fixed table's collation overriding with default UTF8 collation. #​1749

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v4.0.1 #​1755, which includes the fix for AppDomain crash introducing in issue #​1418
  • Various code improvements: #​1711

4.1.0

Added

  • Added new Attestation Protocol None for VBS enclave types. This protocol will allow users to forgo enclave attestation for VBS enclaves. #​1489

For detailed release notes, refer to 4.1.0.md

4.0.6

[Stable release 4.0.6] - 2024-08-21

Fixed

  • Fixed connection to unsubscribe from transaction completion events before returning it to the connection pool #​2301 #​2435
  • Fixed AcquireTokenAsync timeout handling for edge cases in ActiveDirectoryAuthenticationProvider #​2707

Changed

4.0.5

[Stable release 4.0.5] - 2024-01-09

Fixed

  • Fixed encryption downgrade issue. CVE-2024-0056
  • Fixed certificate chain validation logic flow.

For summary of all changes over v4.0.4, refer to 4.0.5.md

4.0.4

[Stable release 4.0.4] - 2023-10-30

Fixed

  • Fixed Always Encrypted secure enclave retry logic for async queries. #​1988
  • Fixed LocalDb and managed SNI by improving the error messages and avoid falling back to the local service. #​2129
  • Fixed .NET and .NET Standard file version. 2093
  • Fixed activity correlator to continue use of same GUID for connection activity. #​1997

For summary of all changes over v4.0.3, refer to 4.0.4.md

4.0.3

[Stable release 4.0.3] - 2023-04-20

Fixed

  • Fixed throttling of token requests by calling AcquireTokenSilent in AAD Integrated/Password flows when the account is already cached.#​1995
  • Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync.#​1987

4.0.2

[Stable release 4.0.2] - 2022-09-13

Fixed

  • Fixed connection failure by not requiring Certificate Revocation List (CRL) check during authentication. #​1718
  • Parallelize SSRP requests on Linux and macOS when MultiSubNetFailover is specified. #​1720, #​1747
  • Added CommandText length validation when using stored procedure command types. #​1721
  • Fixed NullReferenceException during Azure Active Directory authentication. #​1722
  • Fixed null SqlBinary as rowversion. #​1724
  • Fixed table's collation overriding with default UTF8 collation. #​1750

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v4.0.1 #​1754, which includes the fix for AppDomain crash introducing in issue #​1418
  • Various code improvements: #​1723

4.0.1

Added

  • Added AppContext switch SuppressInsecureTLSWarning to allow suppression of TLS security warning when using Encrypt=false in the connection string. #​1457

Fixed

  • Fixed Kerberos authentication failure when using .NET 6. #​1411
  • Fixed connection failure when using SqlLocalDB instance pipe name. #​1433
  • Fixed a failure when executing concurrent queries requiring enclaves. #​1451
  • Updated obsolete API calls targeting .NET 6. #​1401

4.0.0

Added

  • Added missing SqlClientLogger class to .NET Core refs and missing SqlClientLogger.LogWarning method in .NET Framework refs #​1392

Changed

  • Avoid throwing unnecessary exception when an invalid SqlNotificationInfo value is received from SQL Server #​1378
  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v4.0.0 #​1391

For summary of all changes over v3.0, refer to 4.0.0.md

4.0.0-preview3.21293.2

Breaking changes over preview release v4.0.0-preview2

  • Dropped support for .NET Core 2.1 #​1272
  • [.NET Framework] Exception will not be thrown if a User ID is provided in the connection string when using Active Directory Integrated authentication #​1359

Added

  • Add GetFieldValueAsync<T> and GetFieldValue<T> support for XmlReader, TextReader, Stream #​1019

Fixed

  • Fixed FormatException when opening a connection with event tracing enabled #​1291
  • Fixed improper initialization of ActiveDirectoryAuthenticationProvider #​1328
  • Fixed MissingMethodException when accessing SqlAuthenticationParameters.ConnectionTimeout #​1336
  • Fixed data corruption issues by reverting changes to async cancellations #​1352
  • Fixed performance degradation by reverting changes to MARS state machine #​1357
  • Fixed bug where environment variables are ignored when using Active Directory Default authentication #​1360

Changed

  • Removed attributes for classes used in Microsoft.VSDesigner due to lack of support for Microsoft.Data.SqlClient #​1296
  • Disable encryption when connecting to SQL LocalDB #​1312
  • Various code health and performance improvements. See milestone for more info.

For detailed release notes, refer 4.0.0-preview3.md

4.0.0-preview2.21264.2

Breaking changes over preview release v4.0.0-preview1

  • Removed Configurable Retry Logic safety switch. #​1254

Added

  • Added support for SqlFileStream on Windows using .NET Standard 2.0 and above. #​1240
  • Added support for localdb shared instance using managed SNI. #​1237

Fixed

  • Fixed .NET decimal conversion from SqlDecimal. #​1179
  • Fixed Event Source changes on TryBeginExecuteEvent and WriteEndExecuteEvent to address the failure on other MS products such as OpenTelemetry and Application Insight. #​1258
  • Fixed command's async cancellation. #​956
  • Fixed deadlock in transaction using .NET Framework. #​1242
  • Fixed unknown transaction state issues when prompting delegated transaction. 1216

Changed

For detailed release notes, refer 4.0.0-preview2.md

4.0.0-preview1.21237.2

Breaking changes over stable release 3.0.0

  • Changed Encrypt connection string property to be true by default. #​1210
  • The driver now throws SqlException replacing AggregateException for active directory authentication modes. #​1213
  • Dropped obsolete Asynchronous Processing connection property from .NET Framework. #​1148

Added

  • Added SqlCommand.EnableOptimizedParameterBinding property that when enabled increases performance for commands with very large numbers of parameters. #​1041
  • Included 42108 and 42109 error codes to retriable transient errors list. #​1215
  • Added new App Context switch to use OS enabled client protocols only. #​1168
  • Added PoolBlockingPeriod connection property support in .NET Standard. #​1181
  • Added support for SqlDataReader.GetColumnSchema() in .NET Standard. #​1181
  • Added PropertyGrid support with component model annotations to SqlConnectionStringBuilder properties for .NET Core. #​1152

Fixed

  • Fixed issue with connectivity when TLS 1.3 is enabled on client and server. #​1168
  • Fixed issue with connection encryption to ensure connections fail when encryption is required. #​1210
  • Fixed issue where connection goes to unusable state. #​1128
  • Fixed recursive calls to RetryLogicProvider when calling SqlCommand.ExecuteScalarAsync. #​1220
  • Fixed async deadlock scenarios in web contexts with configurable retry logic provider. #​1220
  • Fixed EntryPointNotFoundException in InOutOfProcHelper constructor. #​1120
  • Fixed async thread blocking issues on SqlConnection.Open() for active directory authentication modes. #​1213
  • Fixed driver behavior for Always Encrypted with secure enclaves to not fail when no user parameters have been provided. #​1115
  • Fixed bug with LegacyRowVersionNullBehavior App Context switch. #​1182
  • Fixed issues in Strings.resx file containing error messages. #​1136 #​1178

Changed

For detailed release notes, refer 4.0.0-preview1.md

3.1.7

[Stable release 3.1.7] - 2024-08-20

Fixed

  • Fixed connection to unsubscribe from transaction completion events before returning it to the connection pool. #​2301 #​2434
  • Fixed AcquireTokenAsync timeout handling for edge cases in ActiveDirectoryAuthenticationProvider. #​2709
  • Fixed the signing issue with Microsoft.Data.SqlClient assembly. #​2789

Changed

3.1.5

[Stable release 3.1.5] - 2024-01-09

Fixed

  • Fixed encryption downgrade issue. CVE-2024-0056
  • Fixed certificate chain validation logic flow.

For summary of all changes over v3.1.4, refer to 3.1.5.md

3.1.4

[Stable release 3.1.4] - 2023-10-31

Fixed

  • Fixed Always Encrypted secure enclave retry logic for async queries. #​1988
  • Fixed LocalDb and managed SNI by improving the error messages and avoid falling back to the local service. #​2129
  • Fixed .NET and .NET Standard file version. 2093
  • Fixed activity correlator to continue use of same GUID for connection activity. #​1997
  • Fixed FormatException when event source tracing is enabled. #​1291

For summary of all changes over v3.1.3, refer to 3.1.4.md

3.1.3

[Stable release 3.1.3] - 2023-03-10

Fixed

  • Fixed throttling of token requests by calling AcquireTokenSilent in AAD Integrated/Password flows when the account is already cached.#​1926
  • Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync.#​1939

For summary of all changes over v3.1.2, refer to 3.1.3.md

3.1.2

[Stable release 3.1.2] - 2023-02-03

Added

  • Added Windows ARM64 support when targeting .NET Framework. #​1908

Fixed

  • Fixed thread safety of transient error list in configurable retry logic. #​1911
  • Fixed deadlock when using SinglePhaseCommit with distributed transactions. #​1912
  • Fixed Default UTF8 collation conflict. #​1910
  • Added CommandText length validation when using stored procedure command types. #​1909

For summary of all changes over v3.1.1, refer to 3.1.2.md

3.1.1

[Stable release 3.1.1] - 2022-08-12

Fixed

  • Fixed null SqlBinary as rowversion. #​1700
  • Fixed Kerberos authentication failure when using .NET 6. #​1696
  • Fixed NullReferenceException during Azure Active Directory authentication. #​1695
  • Removed union overlay design and use reflection in SqlTypeWorkarounds. #​1699

3.1.0

Added

  • Added new Attestation Protocol None for VBS enclave types. This protocol will allow users to forgo enclave attestation for VBS enclaves. #​1539
  • Included 42108 and 42109 error codes to retriable transient errors list. #​1560

Fixed

  • Changed EnclaveDelegate.Crypto GetEnclaveProvider to use a thread safe concurrent dictionary. #​1564

For detailed release notes, refer to 3.1.0.md

3.0.1

Fixed

  • Fixed async thread blocking issues on SqlConnection.Open() for active directory authentication modes. #​1270
  • Fixed unknown transaction state issues when promoting delegated transaction. 1247
  • Fixed issue with connection encryption to ensure connections fail when encryption is required. #​1233 Read more
  • Fixed bug with LegacyRowVersionNullBehavior App Context switch. #​1246
  • Fixed recursive calls to RetryLogicProvider when calling SqlCommand.ExecuteScalarAsync. #​1245
  • Fixed async deadlock scenarios in web contexts with configurable retry logic provider. #​1245
  • Fixed deadlock in transaction using .NET Framework. #​1243
  • Fixed issue where connection goes to unusable state. #​1238

3.0.0

Added

  • Added support for column encryption key caching when the server supports retrying queries that require enclave computations #​1062
  • Added support for configurable retry logic configuration file in .NET Standard #​1090

Changed

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v3.0.0 #​1102
  • Improved event counter display information #​1091

Breaking Changes

  • Modified column encryption key store provider registrations to give built-in system providers precedence over providers registered on connection and command instances. #​1101

For summary of all changes over v2.1, refer to 3.0.0.md

3.0.0-preview3.21140.5

Added

  • Added support for "Active Directory Default" authentication mode #​1043
  • Added support for connection-level and command-level registration of custom key store providers to enable multi-tenant applications to control key store access #​1045 #​1056 #​1078
  • Added IP address preference support for TCP connections #​1015

Fixed

  • Fixed corrupted connection issue when an exception occurs during RPC execution with TVP types #​1068
  • Fixed race condition issues between SinglePhaseCommit and TransactionEnded events #​1042

Changed

For detailed release notes, refer 3.0.0-preview3.md

3.0.0-preview2.21106.5

Breaking Changes over preview release v3.0.0-preview1

  • User Id connection property now requires Client Id instead of Object Id for User-Assigned Managed Identity #​1010
  • SqlDataReader now returns a DBNull value instead of an empty byte[]. Legacy behavior can be enabled by setting AppContext switch Switch.Microsoft.Data.SqlClient.LegacyRowVersionNullBehavior #​998

Added

  • Microsoft.Data.SqlClient now depends on Azure.Identity library to acquire token for "Active Directory Managed Identity/MSI" and "Active Directory Service Principal" authentication modes. #​1010
  • Upgraded Native SNI dependency to v3.0.0-preview1 along with enhanced event tracing support #​1006

Fixed

  • Fixed wrong data blended with transactions in .NET Core by marking a connection with open result to be doomed #​1023
  • Fixed derived parameters containing typename incorrectly #​1020
  • Fixed server connection leak possibilities when an exception occurs in pooling layer #​890
  • Fixed IP connection resolving logic in .NET Core #​1016 #​1031

Changed

  • Performance improvements in SqlDateTime to DateTime internal conversion method #​912
  • Improved memory allocation by avoiding unnecessary context switching 1008
  • Updated Microsoft.Identity.Client version from 4.21.1 to 4.22.0 #​1036
  • Various performance improvements #​963 #​996 #​1004 #​1012 #​1017
  • Event source tracing improvements #​1018
  • Changes to share common files between NetFx and NetCore source code #​871 #​887

For detailed release notes, refer 3.0.0-preview2.md.

3.0.0-preview1.21075.2

Breaking Changes over stable release v2.1

  • The minimum supported .NET Framework version has been increased to v4.6.1. .NET Framework v4.6.0 is no longer supported. #​899

Added

  • Added support for Configurable Retry Logic #​693 #​966
  • Added support for Event counters in .NET Core 3.1+ and .NET Standard 2.1+ #​719
  • Added support for Assembly Context Unloading in .NET Core #​913
  • Added missing System.Runtime.Caching dependency for .NET Standard assemblies #​877

Fixed

  • Fixed wrong results issues by changing the timeout timer to ensure a correct execution state #​906
  • Fixed Kerberos authentication issues when configured Server Principal Name (SPN) didn't contain default port #​930
  • Fixed MARS header errors when MakeReadAsyncBlocking App Context switch is set to false #​910 #​922
  • Fixed unwanted exceptions being thrown from SqlDataReader.Dispose #​920
  • Fixed issues connecting to SQL Server instance with instance name specified from Unix environment #​870
  • Fixed TCP Keep Alive issues in .NET Core #​854
  • Fixed Kerberos Authentication issues caused due to regression #​845
  • Fixed issues with System-Assigned Managed Identity in Azure Functions #​829
  • Fixed missing error messages in Managed SNI #​882
  • Fixed event source trace string issue #​940

Changes

  • Changed App Context switch MakeReadAsyncBlocking default to false #​937
  • Replaced usage of BinaryFormatter with DataContractSerializer #​869
  • Prohibited DtdProcessing on XmlTextReader instance in .NET Core #​884
  • Improved performance by reducing memory allocations in SerializeEncodingChar/WriteEncodingChar and some options boxing #​785
  • Improved performance by preventing orphaned active packets being GC'ed without clear #​888
  • Various performance improvements #​889 #​900
  • Partial event source tracing improvements in .NET Core #​867 #​897
  • Changes to share common files between NetFx and NetCore source code #​827 #​835 #​838 #​881

For detailed release notes, refer 3.0.0-preview1.md.

2.1.7

[Stable release 2.1.7] - 2024-01-09

Fixed

  • Fixed encryption downgrade issue. CVE-2024-0056
  • Fixed certificate chain validation logic flow.

For summary of all changes over v2.1.6, refer to 2.1.7.md

2.1.6

[Stable release 2.1.6] - 2023-04-27

Fixed

  • Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync. #​1986
  • Fixed Default UTF8 collation conflict. #​1989
  • Fixed async deadlock issue when sending attention fails due to network failure. #​1767

2.1.5

[Stable release 2.1.5] - 2022-08-30

Fixed

  • Added CommandText length validation when using stored procedure command types. #​1726
  • Fixed Kerberos authentication failure when using .NET 6. #​1727
  • Removed union overlay design and used reflection in SqlTypeWorkarounds. #​1729

2.1.4

Fixed

  • Fixed issue with connection encryption to ensure connections fail when encryption is required. #​1232
  • Fixed issue where connection goes to unusable state. #​1239

2.1.3

Fixed

  • Fixed wrong data blended with transactions in .NET Core by marking a connection as doomed if the transaction completes or aborts while there is an open result set #​1051
  • Fixed race condition issues between SinglePhaseCommit and TransactionEnded events #​1049

2.1.2

Fixed

  • Fixed issue connecting with instance name from a Linux/macOS environment #​874
  • Fixed wrong results issues by changing the timeout timer to ensure a correct execution state #​929
  • Fixed a vulnerability by prohibiting DtdProcessing on XmlTextReader instances in .NET Core #​885
  • Fixed Kerberos authentication when an SPN does not contain the port #​935
  • Fixed missing error messages in Managed SNI #​883
  • Fixed missing System.Runtime.Caching dependency for .NET Standard assemblies #​878
  • Fixed event source tracing issues #​941
  • Fixed MARS header contains errors issue against .NET Framework 4.8.1 #​928

2.1.1

Fixed

  • Fixed issue with System-Assigned Managed Identity in Azure Functions #​841
  • Fixed issue with Kerberos Authentication for .NET Core in Unix environments #​848
  • Fixed issue with TCP Keep Alive for .NET Core in Unix environments #​855

2.1.0

Added

  • Microsoft.Data.SqlClient symbols are now source-linked #​789
  • Added an API to clear cached access tokens from the token provider #​800
  • Added SqlFacetAttribute implementation #​757

Fixed

  • Fixed InvalidOperationException and NotSupportedException errors due to WriteAsync collisions #​796
  • Fixed incorrect Settings.Async flag in ExecuteXmlReaderAsync #​782
  • Fixed a regression in Windows Integrated authentication when using managed networking #​777
  • Fixed Bulk Copy Async deadlock issues with custom IDataReader when using SqlDataReader internally #​779
  • Fixed a serialization issue with SqlException in .NET Core #​780

Changes

  • Updated versions of Microsoft.IdentityModel package dependencies #​794

For summary of all changes over v2.0, refer 2.1.0.md

2.1.0-preview2.20297.7

Added

  • Added support for Azure Active Directory Managed Identity authentication #​730
  • Added support to provide a user-defined application client ID when using Active Directory authentication #​740
  • Added the "Command Timeout" connection string property to set a default timeout for all commands executed with the connection #​722
  • Added support for Always Encrypted on all supported platforms for .NET Standard 2.0 #​756

Fixed

  • Fixed unobserved exception issue when a timeout occurs before a faulted task completes with an exception #​688 #​773
  • Fixed an issue where driver continues to prompt for credentials when using Azure Active Directory authentication #​770

Changes

  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v2.1.1 and removed symbols from Microsoft.Data.SqlClient.SNI.runtime, which are now published to Microsoft Symbols Server #​764
  • Updated Microsoft.Identity.Client dependency version to v4.21.1 #​765
  • Performance improvements when establishing an encrypted channel by removing sync over async method calls #​541
  • Performance improvements by replacing heap-allocated arrays with Spans #​667
  • Moved common files to shared folder between .NET Framework and .NET Core implementation #​734 #​753

For detailed release notes, see 2.1.0-preview2.md

2.1.0-preview1.20235.1

Added

  • Added support for Always Encrypted with secure enclaves on Unix for .NET Core 2.1+ and on all supported platforms for .NET Standard 2.1+ #​676
  • Added support for Azure Active Directory Device Code Flow authentication #​597
  • Added new APIs to enable customizations for "Active Directory Interactive" authentication experience #​597
  • Added Sensitivity Rank support in Sensitivity Classification information #​626
  • Added support to obtain ServerProcessId() (SPID) information on an active SqlConnection instance #​660
  • Added support for a new Configuration Section, SqlClientAuthenticationProviders (duplicate of existing SqlAuthenticationProviders), to allow co-existence of configurations for both drivers, "System.Data.SqlClient" and "Microsoft.Data.SqlClient" #​702
  • Added TraceLogging in Native SNI to extend SqlClientEventSource support #​650
  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to v2.1.0 with trace logging implementation #​705

Fixed

  • Fixed Enclave session cache issue with Azure Database #​686
  • Fixed pooled connection re-use on access token expiry issue when using Active Directory authentication modes #​635
  • Fixed transient fault handling for Pooled connections #​637
  • Fixed SPN generation issue when no port is provided #​629
  • Fixed missing null checks for SqlErrors in SqlException for .NET Framework implementation #​698

Changes

  • Performance improvements by fixing unnecessary allocations with EventSource implementation #​684
  • Reverted changes to return empty DataTable from GetSchemaTable to return null as before. #​696
  • Removed multiple CacheConnectionStringProperties calls when setting ConnectionString properties #​683
  • Code Improvements by only checking inexact match when no exact match is found for an embedded resource #​668
  • Changed _SqlMetaData to lazy initialize hidden column map #​521
  • Renamed internal string resource file and helpers for .NET Core implementation #​671
  • Perform...

Description has been truncated

…rver

Bumps Microsoft.Data.SqlClient from 2.0.1 to 5.1.5
Bumps Microsoft.EntityFrameworkCore.SqlServer from 5.0.17 to 7.0.20

---
updated-dependencies:
- dependency-name: Microsoft.Data.SqlClient
  dependency-version: 5.1.5
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.SqlServer
  dependency-version: 7.0.20
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants