Update dependency Microsoft.Data.SqlClient to v7 - #1166
Open
dependencyupdates[bot] wants to merge 1 commit into
Open
Update dependency Microsoft.Data.SqlClient to v7#1166dependencyupdates[bot] wants to merge 1 commit into
dependencyupdates[bot] wants to merge 1 commit into
Conversation
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
from
April 7, 2026 09:56
933a03b to
84db951
Compare
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
3 times, most recently
from
April 28, 2026 16:12
258067f to
4c3009c
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
from
May 26, 2026 22:03
4c3009c to
14acb1a
Compare
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
2 times, most recently
from
June 5, 2026 21:50
14acb1a to
393941d
Compare
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
2 times, most recently
from
June 25, 2026 21:51
e47024b to
61358a7
Compare
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
2 times, most recently
from
July 14, 2026 15:58
660aa1a to
f8c528b
Compare
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
from
July 27, 2026 19:34
f8c528b to
62f5c4b
Compare
DavidBoike
requested changes
Jul 27, 2026
DavidBoike
left a comment
Member
There was a problem hiding this comment.
This one needs to have the split-out Azure SQL dependency added in, and from what I've seen, that also requires an update to Azure.Identity that has a deprecation to deal with related to managed identity.
And then a Renovate config to make sure the two SqlClient dependencies are updated in version-locked unison.
dependencyupdates
Bot
force-pushed
the
renovate/microsoft.data.sqlclient-7.x
branch
from
August 14, 2026 15:54
62f5c4b to
4c4dfde
Compare
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.
This PR contains the following updates:
5.2.3→7.0.2Release Notes
dotnet/sqlclient (Microsoft.Data.SqlClient)
v7.0.2This update brings the following changes since the 7.1.0-preview2 release.
See the full release notes for detailed descriptions.
Added
Added four
virtualasynchronous counterparts to the synchronous methods onSqlColumnEncryptionKeyStoreProvider—DecryptColumnEncryptionKeyAsync,EncryptColumnEncryptionKeyAsync,SignColumnMasterKeyMetadataAsync, andVerifyColumnMasterKeyMetadataAsync— each accepting an optionalCancellationToken. The default implementations delegate to the existing synchronous methods, so existing custom providers are unaffected. These APIs are introduced for provider authors but are not consumed by the driver yet; a future release will enable their use from the driver's own asynchronous APIs.(#3673)
Implemented those four asynchronous APIs in
SqlColumnEncryptionAzureKeyVaultProvider, calling the Azure SDK's own asynchronous methods and flowing the suppliedCancellationToken. Concurrent cache misses for the same key are gated so a burst of callers issues a single Key Vault request. See the AKV release notes for theVerifyColumnMasterKeyMetadatasignature-validation behavior change and the 7.1 runtime requirement.(#4540)
Substantially expanded
ChannelDbConnectionPool(the opt-in pool behindSwitch.Microsoft.Data.SqlClient.UseConnectionPoolV2) to parity with the default pool: transaction support, broken-connection replacement, leaked-connection reclamation, background warmup and replenishment toMin Pool Size, idle pruning driven byConnection Idle Timeout, optional connection-creation rate limiting, and metrics/tracing parity. Default pooling behavior is unchanged.(#4395,
#4396,
#4429,
#4452,
#4463,
#4487,
#4504,
#4529)
Changed
The driver now builds a single cross-platform assembly. Package structure and contents are unchanged, and Windows-only native SNI types now trim cleanly on Linux and macOS.
(#4207,
#4465,
#4474)
Reduced managed allocations in the async read path by restoring reuse of
PacketDatanodes via a bounded free list onStateSnapshot. This applies to the default async read path and is not gated behind any AppContext switch.(#4536)
Operations no longer allocate a formatted trace string when
SqlClientEventSourcetracing is disabled, recovering a memory regression against the 6.1.6 baseline. Trace output with tracing enabled is unchanged.(#4528)
Updated centrally managed dependency versions for the
net9.0target framework to9.0.18, and addedSystem.Threading.RateLimitingto the packaged dependency metadata. Non-net9.0targets keep their existing8.0.xpins.(#4507)
Updated the
Microsoft.Data.SqlClient.SNIandMicrosoft.Data.SqlClient.SNI.runtimedependencies to7.1.0-preview3.26226.3.(#4564)
Bypassed SQL Graph column alias mapping in
SqlBulkCopywhen neither the source nor destination table contains graph pseudo-columns, recovering a bulk copy performance regression. Graph table bulk copy behavior is unchanged.(#4535)
Re-shipped
Microsoft.Data.SqlClient.Extensions.Azureas7.1.0-preview3, fixing Entra ID tenant parsing for multi-segment authorities. See release notes.Re-shipped
Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvideras7.1.0-preview3with new asynchronous key store provider APIs, andMicrosoft.Data.SqlClient.Extensions.AbstractionsandMicrosoft.Data.SqlClient.Internal.Loggingas7.1.0-preview3(version alignment only, no functional changes). See release notes for AKV, Abstractions, and Logging.Fixed
Fixed Always Encrypted VSM/HGS enclave attestation not verifying that the enclave public key used to establish the session matches the key committed to by the signed attestation report.
(#4532)
Fixed a
SqlConnectionFactorytimer that woke the process every 30 seconds for the lifetime of the application even when no connection pools existed, including withPooling=Falseand afterClearAllPools().(#4479)
Fixed connection pool performance counter defects affecting the default pool as well as pool V2.
active-soft-connectsandnumber-of-active-connectionscould go negative after a failed connection activation, and several gauges drifted upward permanently after a broken connection was replaced.(#4504)
Fixed
OverflowExceptionwhen sending largedecimalvalues as a parameter with explicitPrecisionandScale, which primarily affected Always Encrypted scenarios.(#4443)
Fixed a TDS stream error when passing a
DateOnlyvalue as a parameter withSqlDbType.Variant.(#4294)
Fixed
DateOnlyvalues written to asql_variantcolumn of a table-valued parameter being sent asdatetimeinstead ofdate, which also caused an overflow for values out ofdatetimerange.(#4439)
Fixed the
ServerCertificateconnection-string keyword not being honored when the platform reported no TLS policy errors, and made an unloadable certificate file fail closed instead of silently falling back to host-name validation.(#4445)
Fixed
SqlConnection.AccessTokenCallbacknot disabling Transparent Network IP Resolution by default, unlikeSqlConnection.AccessToken, along with a related connection pool key defect.(#4520)
Fixed several async entry points in
SqlBulkCopy,SqlDataReader, andSqlCommandthat captured fatal exceptions such asOutOfMemoryExceptioninto faultedTasks instead of letting them propagate.(#4437)
Fixed
Authentication=Active Directory Service Principal(and the other Entra ID flows) failing against endpoints that return a multi-segment authority such as the Dataverse / Dynamics 365 TDS endpoint; the tenant id is now taken from the first path segment of the STSURL authority instead of the last. Ships inMicrosoft.Data.SqlClient.Extensions.Azure.(#4521)
v7.0.1This update brings the following changes since the 7.0.0 release.
See the full release notes for detailed descriptions.
Fixed
Fixed
SqlBulkCopyfailing on SQL Server 2016 withInvalid column name 'graph_type'error by using dynamic SQL to extract column names.(#3714,
#4092,
#4147)
Fixed
SqlBulkCopyfailing on Azure Synapse Analytics dedicated SQL pools by usingSTRING_AGGfor the column-list query when targeting Synapse.(#4149,
#4176,
#4182)
Fixed
SqlDataReader.GetFieldType()andGetProviderSpecificFieldType()returning incorrect type for vector float32 columns.(#4104,
#4105,
#4152)
Added missing
System.Data.Common(v4.3.0) NuGet package dependency for .NET Framework consumers to resolveCS0012compilation errors.(#4063,
#4074)
Changed
Enabled the User Agent TDS feature extension unconditionally; removed the
Switch.Microsoft.Data.SqlClient.EnableUserAgentAppContext switch.(#4124,
#4154)
Added type forwards from the core assembly to public types moved to
Microsoft.Data.SqlClient.Extensions.Abstractions.(#4067,
#4117)
Fixed API documentation include paths and duplicate doc snippets.
(#4084,
#4086,
#4107,
#4161)
v7.0.0This update brings the following changes since the 7.0.1 release.
See the full release notes for detailed descriptions.
Fixed
Fixed a
NullReferenceExceptioninSqlCommand.Cancel()when the active connection has already been torn down.(#4372,
#4373)
Fixed a
NullReferenceExceptioninSqlDataReader.GetBytes/GetCharswhen called with anulldestination buffer.(#4159,
#4206)
Fixed Always Encrypted column master key signature verification incorrectly reusing cached results.
(#4339,
#4343)
Changed
Hardened TDS token parsing by adding data-length bounds checks for token and feature-extension-acknowledgment data.
(#4340,
#4358)
Released
Microsoft.Data.SqlClient.Extensions.Azure 7.0.2, adding WAM broker support for Entra ID authentication modes on Windows. See release notes.(#4288,
#4388)
Re-shipped
Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider,Microsoft.Data.SqlClient.Extensions.Abstractions, andMicrosoft.Data.SqlClient.Internal.Loggingas7.0.2(version alignment only, no functional changes). See release notes for AKV, Abstractions, and Logging.v6.1.6This update brings the following changes since the 6.1.5 release.
See the full release notes for detailed descriptions.
Added
ActiveDirectoryAuthenticationProviderOptionstype with aUseWamBrokerproperty, anActiveDirectoryAuthenticationProvider(ActiveDirectoryAuthenticationProviderOptions options)constructor overload, and a cross-platformSetParentActivityOrWindowFunc(Func<object>)method.(#4288,
#4387)
Changed
Hardened TDS token parsing with data-length bounds checks to prevent unbounded memory allocation from a server spoofing length fields.
(#4340,
#4359)
Updated dependencies (#4387):
Microsoft.Identity.Clientto 4.84.2 (was 4.80.0)Microsoft.Identity.Client.Broker4.84.2Fixed
Fixed a
NullReferenceExceptioninSqlDataReader.GetCharson the PLP +SequentialAccesspath when anullbuffer was passed with a negativebufferIndex; it now throwsArgumentOutOfRangeException.(#4159,
#4205)
Fixed column master key (CMK) signature verification caching where a cached verification failure could subsequently be reported as a valid signature.
(#4339,
#4356)
v6.1.5This update brings the following changes since the 6.1.4 release.
See the full release notes for target platform support and dependency information.
Fixed
Fixed a connection performance regression where SPN (Service Principal Name) generation was triggered for non-integrated authentication modes (e.g., SQL authentication) on the native SNI path, causing unnecessary DNS lookups and significantly slower connection times.
(#3523, #3946)
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)
Fixed
SqlDataReader.GetFieldTypeandSqlDataReader.GetProviderSpecificFieldTypeto return the correct type (SqlVector<float>) for vector float32 columns.(#4104, #4151)
v6.1.4This 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.(#3830)
v6.1.3This 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
preventing missed telemetry when EventSource is enabled early.
(#3718)
v6.1.2This update includes the following changes since the 6.1.1 release:
Fixed
System.InvalidOperationException#3629v6.1.1This 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)v6.1.0This update brings the following changes since the
6.1.0-preview2 release:
Added
No new features were added.
Fixed
(#3475)
(#3478)
operations.
(#3477)
(#3474)
(#3500)
(#3513)
Changed
SqlDecimal type workarounds conversions
What Changed:
compliance policies.
(#3467)
Who Benefits:
This change removes calls to undocumented APIs and replaces them with
compliant API use.
Impact:
SqlVector API improvements
What Changed:
6.1.0-preview2 release
(#3472):
CreateNull()method.Sizeproperty was removed.Who Benefits:
Impact:
and any class-specific behaviour.
v6.0.5This 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
.NET Framework 4.6.2:
.NET 8.0:
.NET 9.0:
v6.0.4This update brings the below changes over the previous stable 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.v6.0.3This update brings the below changes over the previous stable release:
Fixed
Changed
SqlDecimalimplementation to improve code compliance #3466v6.0.2This update brings the following changes since the
6.1.0-preview1 release:
Added
Added dedicated SQL Server vector datatype support
What Changed:
custom binary format over the TDS protocol.
(#3433,
#3443)
Who Benefits:
to processing times and memory requirements.
a consistent look-and-feel.
Impact:
using SQL Server 2025 preview:
operation.)
serialization/deserialization and string representation bloat.
applications may continue to use JSON strings to send/receive vector data,
although they will not see any of the performance improvements noted above.
Revived .NET Standard 2.0 target support
What Changed:
(#3381)
community voicing concerns.
Who Benefits:
frameworks:
actual implementation, and cannot be used with a runtime.
MDS .NET/.NET Framework runtime implementation.
Standard 2.0 reference DLL at runtime are not supported.
Impact:
this:
warning NU1701: Package 'Microsoft.Data.SqlClient 6.0.2' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.Fixed
(#3325)
(#3399)
SqlCachedBufferasync read edge case.(#3329)
SqlSequentialTextReaderedge case with single-byte reads.(#3383)
PoolBlockingPeriod.(#3411)
ToString()override toSqlJson.(#3427)
Changed
(#3364)
(#3337,
#3377,
#3422)
(#3364,
#3369,
#3401)
(#2454)
(#3352,
#3396)
AccessToken and
AccessTokenCallback
documentation.
(#3339)
(#3391)
.NET Core implementations.
(#3262,
#3291,
#3305,
#3306,
#3310,
#3323,
#3326,
#3335,
#3338,
#3340,
#3341,
#3343,
#3345,
#3353,
#3355,
#3368,
#3373,
#3376,
#3388,
#3389,
#3393,
#3405,
#3414,
#3416,
#3417,
#3420,
#3431,
#3438)
dependencies, removal of hardcoded credentials, and improved robustness.
(#3204,
#3379,
#3380,)
#3402
System.Text.Json8.0.5 (.NET 8.0) and
9.0.5 (.NET Standard 2.0, .NET 9.0)
to avoid transitive vulnerabilities (CVE-2024-43485).
(#3403)
v6.0.1This update brings the below changes over the previous release:
Fixed
Changed
Microsoft.Data.SqlClient.SNIandMicrosoft.Data.SqlClient.SNI.runtimeto6.0.2#3116 #3117v6.0.0No changes since the last preview release
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
Commands to ignore dependencies
You can trigger dependency actions by commenting on this PR:
@particularbot ignore this major version@particularbot ignore this minor version@particularbot ignore this dependency