Update dependency Microsoft.Data.SqlClient to v7#1166
Open
dependencyupdates[bot] wants to merge 1 commit intomainfrom
Open
Update dependency Microsoft.Data.SqlClient to v7#1166dependencyupdates[bot] wants to merge 1 commit intomainfrom
dependencyupdates[bot] wants to merge 1 commit intomainfrom
Conversation
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.0Release Notes
dotnet/sqlclient (Microsoft.Data.SqlClient)
v7.0.0This section summarizes all changes across the 7.0 preview cycle for users upgrading from the latest 6.1 stable release.
See the full release notes for detailed descriptions.
Also released as part of this milestone:
Changed
Breaking: Removed Azure dependencies from the core package. Entra ID authentication (
ActiveDirectoryAuthenticationProviderand related types) has been extracted into a newMicrosoft.Data.SqlClient.Extensions.Azurepackage. The coreMicrosoft.Data.SqlClientpackage no longer depends onAzure.Core,Azure.Identity, or their transitive dependencies. Applications using Entra ID authentication must now installMicrosoft.Data.SqlClient.Extensions.Azureseparately.(#1108,
#3680,
#3902,
#3904,
#3908,
#3917,
#3982,
#3978,
#3986)
Two additional packages were introduced to support this separation:
Microsoft.Data.SqlClient.Extensions.Abstractions(shared types between the core driver and extensions) andMicrosoft.Data.SqlClient.Internal.Logging(shared ETW tracing infrastructure).(#3626,
#3628,
#3967,
#4038)
Deprecated
SqlAuthenticationMethod.ActiveDirectoryPassword(ROPC flow). The method is now marked[Obsolete]and will generate compiler warnings. Migrate toActiveDirectoryInteractive,ActiveDirectoryServicePrincipal,ActiveDirectoryManagedIdentity, orActiveDirectoryDefault.(#3671)
Reverted public visibility of internal interop enums (
IoControlCodeAccessandIoControlTransferType) that were accidentally made public during the project merge.(#3900)
Removed
Constrained Execution Regionerror handling blocks and associatedSqlConnectioncleanup.(#3535)
Performance improvements across SqlStatistics timing, Always Encrypted scenarios, and connection opening:
(#3609,
#3612,
#3732,
#3660,
#3791,
#3772,
#3554)
Allow
SqlBulkCopyto operate on hidden columns.(#3590)
Updated UserAgent feature to use a pipe-delimited format, replacing the previous JSON format.
(#3826)
Minor improvements to Managed SNI tracing to capture continuation events and errors.
(#3859)
Added
Added
SspiContextProviderabstract class andSqlConnection.SspiContextProviderproperty, enabling custom SSPI authentication for scenarios like cross-domain Kerberos negotiation and NTLM username/password authentication.(#2253,
#2494)
Continued refinement of packet multiplexing with bug fixes and stability improvements, plus new app context switches for opt-in control.
(#3534,
#3537,
#3605)
Added support for enhanced routing, a TDS feature that allows the server to redirect connections to a specific server and database during login, enabling Azure SQL Hyperscale read replica load balancing.
(#3641,
#3969,
#3970,
#3973)
Updated pipelines and test suites to compile the driver using the .NET 10 SDK.
(#3686)
Added
SqlConfigurableRetryFactory.BaselineTransientErrorsstatic property exposing the default transient error codes list as aReadOnlyCollection<int>.(#3903)
Added app context switch
Switch.Microsoft.Data.SqlClient.EnableMultiSubnetFailoverByDefaultto setMultiSubnetFailover=trueglobally without modifying connection strings.(#3841)
Added app context switch
Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartnerto let the client ignore server-provided failover partner info in Basic Availability Groups.(#3625)
Enabled
SqlClientDiagnosticListenerforSqlCommandon .NET Framework, closing a long-standing observability gap where diagnostic events were previously only available on .NET Core.(#3658)
Brought the 15 strongly-typed diagnostic event classes in the
Microsoft.Data.SqlClient.Diagnosticsnamespace (e.g.,SqlClientCommandBefore,SqlClientConnectionOpenAfter,SqlClientTransactionCommitError) to .NET Framework as part of the codebase merge. These types were originally introduced for .NET Core in 6.0.(#3493)
Enabled User Agent Feature Extension (opt-in via
Switch.Microsoft.Data.SqlClient.EnableUserAgent).(#3606)
Added actionable error message when Entra ID authentication methods are used without the
Microsoft.Data.SqlClient.Extensions.Azurepackage installed.(#3962,
#4046)
Fixed
Fixed a connection performance regression where SPN generation was triggered for non-integrated authentication modes (e.g., SQL authentication) on the native SNI path.
(#3929)
Fixed
ExecuteScalarto propagate errors when the server sends data followed by an error token.(#3912)
Fixed
NullReferenceExceptioninSqlDataAdapterwhen processing batch scenarios.(#3857)
Fixed reading of multiple app context switches from a single
AppContextSwitchOverridesconfiguration field.(#3960)
Fixed an edge case in
TdsParserStateObject.TryReadPlpByteswhere zero-length reads returnednullinstead of an empty array.(#3872)
Fixed issue where extra connection deactivation was occurring.
(#3758)
Fixed debug assertion in connection pool (no impact to production code).
(#3587)
Prevented uninitialized performance counters escaping
CreatePerformanceCounters.(#3623)
Fixed
SetProviderto return immediately if user-defined authentication provider found.(#3620)
Fixed connection pool concurrency issue.
(#3632)
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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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