Repository navigation
Bump Microsoft.Data.SqlClient and Microsoft.Extensions.Caching.SqlServer - #51
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps Microsoft.Data.SqlClient from 5.2.2 to 7.0.0 Bumps Microsoft.Extensions.Caching.SqlServer from 8.0.0 to 11.0.0 --- updated-dependencies: - dependency-name: Microsoft.Data.SqlClient dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Extensions.Caching.SqlServer dependency-version: 11.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
This was referenced Nov 18, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated Microsoft.Data.SqlClient from 5.2.2 to 7.0.0.
Release notes
Sourced from Microsoft.Data.SqlClient's releases.
7.0.0
This is the general availability release of Microsoft.Data.SqlClient 7.0, a major milestone for the .NET data provider for SQL Server. This release addresses the most upvoted issue in the repository's history — extracting Azure dependencies from the core package — introduces pluggable SSPI authentication, adds enhanced routing for Azure SQL Hyperscale, and delivers async read performance improvements.
Also released as part of this milestone:
Changes Since 7.0.0-preview4
Added
Microsoft.Data.SqlClient.Extensions.Azurepackage installed, guiding users to install the correct package. (#3962, #4046)Changed
Other changes
Microsoft.Data.SqlClient.Extensions.Loggingpackage toMicrosoft.Data.SqlClient.Internal.Loggingto indicate it is for internal use only and should not be referenced directly by application code. (#4038)Azure.Coreto v1.51.1Azure.Identityto v1.18.0Azure.Security.KeyVault.Keysto v4.9.0Microsoft.Extensions.Caching.Memoryto v9.0.13 (.NET 9.0)Microsoft.IdentityModel.JsonWebTokensto v8.16.0Microsoft.IdentityModel.Protocols.OpenIdConnectto v8.16.0Microsoft.Bcl.Cryptographyto v9.0.13 (.NET 9.0)System.Configuration.ConfigurationManagerto v9.0.13 (.NET 9.0)System.Diagnostics.DiagnosticSourceto v10.0.3System.Security.Cryptography.Pkcsto v9.0.13 (.NET 9.0)System.Text.Jsonto v10.0.3System.Threading.Channelsto v10.0.3System.ValueTupleto v4.6.2Cumulative Changes Since 6.1
This section summarizes all changes across the 7.0 preview cycle for users upgrading from the latest 6.1 stable release.
Changed
Azure Dependencies Removed from Core Package
What Changed:
Microsoft.Data.SqlClientpackage no longer depends onAzure.Core,Azure.Identity, or their transitive dependencies (e.g.,Microsoft.Identity.Client,Microsoft.Web.WebView2). Azure Active Directory / Entra ID authentication functionality (ActiveDirectoryAuthenticationProviderand related types) has been extracted into a newMicrosoft.Data.SqlClient.Extensions.Azurepackage. (#1108, #3680, #3902, #3904, #3908, #3917, #3982, #3978, #3986)... (truncated)
7.0.0-preview4
Changed
Azure Dependencies Removed from Core Package
What Changed:
Microsoft.Data.SqlClientpackage no longer depends onAzure.Core,Azure.Identity, or their transitive dependencies (e.g.,Microsoft.Identity.Client,Microsoft.Web.WebView2). Azure Active Directory / Entra authentication functionality (ActiveDirectoryAuthenticationProviderand related types) has been extracted into a newMicrosoft.Data.SqlClient.Extensions.Azurepackage that can be installed separately when needed. (#1108, #3680, #3902, #3904, #3908, #3917, #3982, #3978, #3986)Microsoft.Data.SqlClient.Extensions.Abstractions(shared types between the core driver and extensions) andMicrosoft.Data.SqlClient.Extensions.Logging(shared ETW tracing infrastructure). (#3626, #3628, #3967)Who Benefits:
Azure.Core,Azure.Identity,Microsoft.Identity.Client, andMicrosoft.Web.WebView2) even for applications that only needed basic SQL Server connectivity. This was the most upvoted open issue in the repository (#1108).Impact:
ActiveDirectoryPassword,ActiveDirectoryInteractive,ActiveDirectoryDefault, etc.) must now install theMicrosoft.Data.SqlClient.Extensions.AzureNuGet package separately. No code changes are required beyond adding the package reference.Added
Expose SSPI Context Provider as Public API
What Changed:
SspiContextProviderabstract class and a publicSspiContextProviderproperty onSqlConnection, allowing applications to supply a custom SSPI context provider for integrated authentication. This enables custom Kerberos ticket negotiation and NTLM username/password authentication scenarios that the driver does not natively support. (#2253, #2494)Who Benefits:
Impact:
SspiContextProvideronSqlConnectionbefore opening the connection. The provider handles the authentication token exchange during integrated authentication. This is an additive API — existing authentication behavior is unchanged when no custom provider is set. See SspiContextProvider_CustomProvider.cs for a sample implementation.SspiContextProvideris a part of the connection pool key. Care should be taken when using this property to ensure the implementation returns a stable identity per resource.Expose Default Transient Error List
What Changed:
SqlConfigurableRetryFactory.BaselineTransientErrorsstatic property (returns aReadOnlyCollection<int>), making it easier to extend the set of transient errors without copy-pasting from the repository source. (#3903)Who Benefits:
Impact:
... (truncated)
7.0.0-preview3
Preview Release 7.0.0-preview3.25342.7 - December 8, 2025
Added
Support for .NET 10
What Changed:
(#3686)
Who Benefits:
Impact:
Enable SqlClientDiagnosticListener in SqlCommand on .NET Framework
What Changed:
(#3658)
Who Benefits:
Impact:
Enable User Agent Extension
What Changed:
(#3606)
Who Benefits:
Impact:
Switch.Microsoft.Data.SqlClient.EnableUserAgentapp context switch is enabled, the driver sends more detailed user agent strings. This switch is disabled by default. This change will assist with troubleshooting and quantifying driver usage by version and operating system.Fixed
... (truncated)
7.0.0-preview2
This update brings the following changes since the 7.0.0-preview1 release:
Bug Fixes
CreatePerformanceCounters(#3623)Added
App Context Switch for Ignoring Server-Provided Failover Partner
What Changed:
Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartnerwas introduced to let the client ignore server-provided failover partner info in Basic Availability Groups (BAGs). When the switch is enabled, only the failover partner specified in the connection string is used; server-supplied partner values are skipped. This context switch was introduced in PR #3625.Who Benefits:
Impact:
tcp:host,port) so that the client uses that instead of the server's suggestion.Other Additions
Changed
Deprecation of
SqlAuthenticationMethod.ActiveDirectoryPasswordWhat Changed:
SqlAuthenticationMethod.ActiveDirectoryPasswordis now marked as[Obsolete]. This change occurred in PR #3671Who benefits:
... (truncated)
7.0.0-preview1
Changes Since 6.1.0
This update brings the following changes since the 6.1.0 release:
Breaking Changes
Constrained Execution Regionerror handling blocks and associatedSqlConnectioncleanup which may affect how potentially-broken connections are expunged from the pool. (#3535)Bug Fixes
Added
SqlColumnEncryptionCertificateStoreProvidernow works on Windows, Linux, and macOS. (#3014)Changed
Updated
SqlVector.Nullto return a nullableSqlVectorinstance in the reference API to match the implementation. (#3521)Performance improvements for all built-in
SqlColumnEncryptionKeyStoreProviderimplementations. (#3554)Various test improvements. (#3456, #2968, #3458, #3494, #3559, #3575)
Codebase merge project and related cleanup. (#3436, #3434, #3448, #3454, #3462, #3435, #3492, #3473, #3469, #3394, #3493, #3593)
Documentation improvements. (#3490)
Updated
Azure.Identitydependency to v1.14.2. (#3538)Changes Since 6.0.2
This update brings the following changes since the 6.0.2 release. Changes already noted above are omitted:
Additions
Added dedicated SQL Server vector datatype support
What Changed:
Who Benefits:
Impact:
... (truncated)
6.1.8
This update brings the following changes since the 6.1.7 release:
Changed
Updated the
System.Security.Cryptography.Pkcsdependency to 8.0.2 (was 8.0.1) for .NET Framework 4.6.2, .NET 8.0, and .NET Standard 2.0, and updated theMicrosoft.Extensions.Caching.Memory,System.Configuration.ConfigurationManager, andSystem.Security.Cryptography.Pkcsdependencies to 9.0.21 (was 9.0.11) for .NET 9.0.(#4842, #4862, #4870)
Improved the error reported when
Active Directory Interactiveauthentication through the Windows Web Account Manager (WAM) broker fails because the host has no parent window, such as a service or Azure Functions host. The resulting error now explains the supported alternatives: supply a parent window withSetParentActivityOrWindowFunc, useActive Directory Defaultwith a configured non-interactive credential, or supply a customApplicationClientIdwithUseWamBrokerdisabled. The original MSAL error code and inner exception are preserved, and authentication selection, retry behavior, and other failures are unchanged. (Windows only)(#4854, #4858, #4918)
Fixed
Fixed the managed SNI path ignoring
HostNameInCertificateduring server certificate validation. WhenHostNameInCertificateis set, it is now the only host name the server certificate is validated against, and certificates that do not match it are rejected. Default host-name selection when the property is not set, certificate chain validation,ServerCertificatematching, and the connection destination are unchanged. (net8.0/net9.0 only)(#4905, #4909)
Fixed Always Encrypted enclave session caching so that cached enclave sessions are isolated by attestation protocol. A session established with one
Attestation Protocolsetting is no longer reused by a connection to the same server, database, and attestation URL that uses a different protocol.(#4829, #4868)
Fixed
SqlDataReader.HasRowsreturningfalsewhen a result set contains rows but the server sends multiple informational messages, or an informational message before anORDERtoken, ahead of the first row. Empty results still reportfalse, andInfoMessagedelivery is unchanged.(#3018, #4773, #4898)
Fixed an intermittent
InvalidOperationException("Nullable object must have a value") from statistics bookkeeping when commands complete concurrently on a MARS connection. This issue was reported as a regression starting with 6.1.4.(#4778, #4875, #4896)
Fixed Entra ID authentication when the server supplies an authority URL with an OAuth endpoint suffix, such as
https://login.microsoftonline.com/<tenant>/oauth2/authorizereturned by the Dataverse/Dynamics 365 TDS endpoint. The provider now extracts the tenant from the first path segment and uses the normalized authority for Azure.Identity credentials, MSAL, and their cache keys. An authority URL that cannot be parsed now fails with a clear, localizedArgumentExceptionnaming the authority. Bare tenant authority URLs used by Azure SQL and Fabric retain their existing behavior.(#4496, #4521, #4791, #4807)
Target Platform Support
Full details: release-notes/6.1/6.1.8.md
6.1.7
This update brings the following changes since the 6.1.6 release:
Changed
Microsoft.Data.SqlClient.SNIandMicrosoft.Data.SqlClient.SNI.runtimedependencies to 6.0.3 (was 6.0.2).(#4598)
Fixed
Fixed
ServerCertificatevalidation on the managed SNI path so the configured certificate is compared against the server certificate even when the server certificate passes chain and host-name validation. When certificate validation is enabled, a missing, unreadable, or invalid certificate file, a certificate mismatch, or a missing server certificate now causes the TLS handshake to fail instead of bypassing the configured certificate check. (net8.0/net9.0 only)(#4445, #4584)
Fixed Always Encrypted VSM/HGS enclave attestation to verify that the enclave public key used to establish a session matches the key committed to by the signed attestation report. Missing, malformed, or mismatched key-binding data now causes attestation to fail before the session secret is derived.
(#4532, #4552)
Fixed
SqlConnection.AccessTokenCallbacknot disabling Transparent Network IP Resolution by default, making it consistent withSqlConnection.AccessToken. An explicitly configuredTransparentNetworkIPResolutionconnection-string value still takes precedence. (net462 only)(#4520, #4560)
Fixed token authentication state handling so clearing
SqlConnection.AccessTokenpreserves an existingAccessTokenCallbackin the connection pool key, and clearingAccessTokenCallbackpreserves an existingAccessToken. Callback-based authentication now also follows the same prelogin server-certificate validation rules as an explicitly supplied access token.(#4520, #4560)
Fixed configurable retry logic installing a permanent, process-wide assembly-resolution handler that could interfere with unrelated assembly loading. The handler is now active only while an explicitly configured custom retry provider is resolved and constructed, and probes
AppContext.BaseDirectoryinstead of the current working directory. Place custom retry assemblies in the application base directory; dependencies loaded after provider construction must be resolvable through normal application dependency resolution or an application-provided handler. (net8.0/net9.0 only)(#2214, #4547, #4664)
Target Platform Support
Full details: release-notes/6.1/6.1.7.md
6.1.6
This update brings the following changes since the 6.1.5 release:
Added
WAM broker support for the supported Entra ID authentication modes (Windows only)
What Changed:
ActiveDirectoryAuthenticationProviderOptionsoptions bag and a correspondingActiveDirectoryAuthenticationProvider(ActiveDirectoryAuthenticationProviderOptions options)constructor were introduced, exposing aUseWamBrokerproperty (alongsideApplicationClientIdandDeviceCodeFlowCallback).(#4288, #4387)
SetParentActivityOrWindowFunc(Func<object> parentActivityOrWindowFunc)method so callers can supply a parent window handle on Windows or a parentActivity/UIViewControlleron Android/iOS/MAUI.Who Benefits:
ActiveDirectoryInteractiveand other supported Entra ID authentication modes on Windows benefit from the WAM broker's improved security (tokens are brokered by the OS), single sign-on with the logged-in Windows account, and support for Conditional Access and Windows Hello.Impact:
ApplicationClientId, WAM is opt-in viaActiveDirectoryAuthenticationProviderOptions.UseWamBroker. Consider enabling it when you want OS-brokered tokens, single sign-on with the signed-in Windows account, Windows Hello, and Conditional Access support.UseWamBrokeris a Windows-only setting and has no effect on non-Windows platforms, where interactive Entra ID flows always use the system browser.Changed
Hardened TDS token parsing with data-length bounds checks
What Changed:
(#4340, #4359)
Who Benefits:
Impact:
... (truncated)
6.1.5
This update brings the following changes since the 6.1.4 release:
Fixed
ExecuteScalarto properly propagate errors when the server sends data followed by an error token. Previously, errors such as conversion failures duringWHEREclause evaluation were silently consumed duringSqlDataReader.Close()instead of being thrown to the caller, which could result in transactions being unexpectedly zombied. (#3736, #3947)SqlDataReader.GetFieldTypeandSqlDataReader.GetProviderSpecificFieldTypeto return the correct type (SqlVector<float>) for vector float32 columns. Previously, these methods did not follow the same type-resolution logic asGetValue, returning an incorrect type for vector columns. (#4104, #4151)Target Platform Support
Dependencies
.NET Framework 4.6.2
.NET 8.0
.NET 9.0
... (truncated)
6.1.4
This update brings the following changes since the 6.1.3 release:
Fixed
SqlDataAdapterwhen processing batch scenarios where certain SQL RPC calls may not include system parameters.(#3877)
(#3776)
Added
AppContext Switch for enabling MultiSubnetFailover
What Changed:
Switch.Microsoft.Data.SqlClient.EnableMultiSubnetFailoverByDefaultto setMultiSubnetFailover=trueby default in connection string.(#3851)
Who Benefits:
Impact:
Changed
SqlStatisticsexecution timing by usingEnvironment.TickCountinstead of more expensive timing mechanisms.... (truncated)
6.1.3
This update includes the following changes since the 6.1.2 release:
Added
App Context Switch for Ignoring Server-Provided Failover Partner
What Changed:
Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartnerwas introduced to let the client ignore server-provided failover partner info in Basic Availability Groups (BAGs). When the switch is enabled, only the failover partner specified in the connection string is used; server-supplied partner values are skipped. This context switch was introduced in PR #3702.Who Benefits:
Impact:
tcp:host,port) so that the client uses that instead of the server's suggestion.Fixed
Target Platform Support
Dependencies
.NET Framework 4.6.2+
... (truncated)
6.1.2
This update brings the below changes over the previous stable release:
Fixed
System.InvalidOperationException#36296.1.1
This update includes the following changes since the 6.1.0 release:
Fixed
SqlVector<T>.NullAPI signature in Reference assembly. #3521Changed
Azure.Identityand other dependencies to newer versions. (#3538) (#3552)6.1.0
Release Notes
Stable Release 6.1.0 - 2025-07-25
This update brings the following changes since the 6.0.2 stable release:
Added
Added dedicated SQL Server vector datatype support
What Changed:
Who Benefits:
Impact:
Revived .NET Standard 2.0 target support
What Changed:
Who Benefits:
... (truncated)
6.1.0-preview2
Preview Release 6.1.0-preview2.25178.5 - 2025-06-27
This update brings the following changes since the 6.1.0-preview1 release:
Added
Added dedicated SQL Server vector datatype support
What Changed:
Who Benefits:
Impact:
Revived .NET Standard 2.0 target support
What Changed:
Who Benefits:
Impact:
... (truncated)
6.1.0-preview1
This update brings the following changes over the previous release:
Added
Fixed
Data Sourceparameter begins with a comma. #3250.Changed
SqlBulkCopyto explicitly identify mismatched column names. #3183.IBufferWriter<byte>. #2452.byte[]withstringfor SNI to improve efficiency. #2790.New Contributors
DockerLinuxTest/Program.csreference dotnet/SqlClient#30416.0.5
[Stable release 6.0.5] - 2026-01-15
This update brings the below changes over the previous stable release:
Fixed
SqlDataAdapterwhen processing batch scenarios where certain SQL RPC calls may not include system parameters.(#3878)
Added
What Changed:
Switch.Microsoft.Data.SqlClient.EnableMultiSubnetFailoverByDefaultto setMultiSubnetFailover=trueby default in connection string.(#3852)
Who Benefits:
Impact:
Changed
... (truncated)
6.0.4
This update brings the below changes over the 6.0.3 release:
Added
App Context Switch for Ignoring Server-Provided Failover Partner
What Changed:
Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartnerwas introduced to let the client ignore server-provided failover partner info in Basic Availability Groups (BAGs). When the switch is enabled, only the failover partner specified in the connection string is used; server-supplied partner values are skipped. This context switch was introduced in PR #3703.Who Benefits:
Impact:
tcp:host,port) so that the client uses that instead of the server's suggestion.Target Platform Support
Dependencies
.NET Framework
.NET 8
... (truncated)
6.0.3
This update brings the below changes over the previous stable release:
Fixed
Changed
SqlDecimalimplementation to improve code compliance #34666.0.2
This update brings the below changes over the previous release:
Fixed
NullPointerExceptionduring socket receive #3283Changed
6.0.1
Released to NuGet.org on 2025-01-23
Breaking Changes
Added
JSON Support
JSON data type support is now available in Microsoft.Data.SqlClient v6.0. This release introduces
SqlJsontype available as an extension toSystem.Data.SqlDbTypes: