Skip to content

Update dependency Microsoft.Data.SqlClient to v8 - #953

Open
dependencyupdates[bot] wants to merge 1 commit into
masterfrom
renovate/microsoft.data.sqlclient-8.x
Open

dependencyupdates[bot] wants to merge 1 commit into
masterfrom
renovate/microsoft.data.sqlclient-8.x

Conversation

@dependencyupdates

@dependencyupdates dependencyupdates Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Microsoft.Data.SqlClient (source) 5.2.3 → 8.0.0 age adoption passing confidence

Release Notes

dotnet/sqlclient (Microsoft.Data.SqlClient)

v8.0.0

The driver and four companion packages align at 8.0.0, with AssemblyVersion 8.0.0.0.
See the core release notes for platform and dependency details.

Changes Since 8.0.0-preview1
Changed
Breaking default change: pool waits share the connection timeout budget

What Changed:

  • Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWait now defaults to true.
    SqlConnection.Open and OpenAsync carry the remaining Connect Timeout budget through pool
    acquisition and login with either pool implementation.
    (#​4642,
    #​5030,
    #​5046)

Who Benefits:

  • Applications under pool contention no longer grant login a fresh full timeout after waiting.

Impact:

  • Opens may time out sooner. Set the switch to false before using SqlClient to restore the
    prior separate budgets; the switch is cached on first use. Connect Timeout=0 stays infinite.
    This does not claim that every remaining in-open round trip has been converted.
    See networking migration guidance.
Lower destination-metadata cost for name-mapped bulk copies

What Changed:

  • SqlBulkCopy restores fast SET FMTONLY ON; SELECT * discovery for destination-name
    mappings, with one catalog fallback if a name is missing. Destination-ordinal mappings,
    implicit/default mappings, and SQL Graph aliases use catalog discovery directly.
    (#​4985,
    #​4988,
    #​5036)

Who Benefits:

  • Repeated name-mapped bulk loads avoid unnecessary catalog-query work on the server.

Impact:

  • Automatic mode preserves hidden-column positions and graph-alias support. Fallback happens
    before rows are sent; it does not retry the write.
  • Switch.Microsoft.Data.SqlClient.UseBulkCopyCatalogMetadataDiscovery=true always uses catalog
    discovery and avoids fallback for hidden-name workloads. Explicit false never uses catalogs
    and uses visible-column positions, without hidden-column or graph-alias discovery.
    Leaving the switch unset selects automatic mode.
Asynchronous command execution awaits enclave attestation

What Changed:

  • Asynchronous command execution now awaits enclave-session lookup, attestation preparation,
    session creation, and retry-time invalidation, including the shared reader, nonquery, scalar,
    XML, APM, and batch paths. Caller cancellation reaches enclave-provider operations.
    (#​3672,
    #​4887,
    #​5066)

Who Benefits:

  • Always Encrypted applications avoid blocking on attestation-service I/O in async execution.

Impact:

  • Preparation failure or cancellation stops the user query from being sent and releases setup
    state. Synchronous execution retains synchronous provider dispatch.
  • Key-store operations, enclave-package generation, cryptography, and serialization can still
    run synchronously. This is not end-to-end asynchronous Always Encrypted support.
    See asynchronous enclave attestation.
Dependency and authentication-diagnostic updates
  • Updated Azure.Core to 1.65.0, MSAL and its broker to 4.92.0, and the applicable .NET 10
    dependency floors to 10.0.15. The exact per-framework direct dependencies are listed below.
    IdentityModel, Key Vault Keys, and legacy polyfill versions are unchanged from preview1.
    (#​5031,
    #​5041)
  • Updated native SNI dependencies from 8.0.0-preview1.26309.4 to 8.0.0.
    (#​5144,
    #​5146)
  • Authentication configuration/registration diagnostics now use resources owned by Abstractions.
    Existing translated messages move with their satellite assemblies; messages without a
    translation fall back to English. Exception types and authentication contracts are unchanged,
    but exact message text can change. See the Abstractions companion notes.
    (#​4852,
    #​5044)
Fixed
  • Fixed managed networking deadlocks when opening connections on a single-worker scheduler.
    Parallel SQL Browser (SSRP) requests now run on the default scheduler, and Strict TLS
    authentication completes without capturing the blocked caller's scheduler.
    (net10.0, managed SNI only)
    (#​5147,
    #​5148)

  • Fixed ExecuteXmlReaderAsync and BeginExecuteXmlReader observing the first attempt while
    an invalid enclave session is being retried. Completion now follows the retry's outcome,
    and a successful retry releases the original asynchronous reservation. This avoids competing
    reads of the TDS response, misleading XML/protocol errors, and failed connection reuse.
    (#​5117,
    #​5136)

  • Removed a socket-poll wait from pooled TCP connection health checks, avoiding an approximately
    15 ms delay when reopening healthy idle connections on Windows with managed networking.
    Peer-close detection is retained. The nonblocking check also runs on Unix, where the old
    timeout already rounded down to zero. Native SNI and .NET Framework are unaffected.
    (net10.0, managed SNI only)
    (#​5070,
    #​5071,
    #​5099)

  • Fixed managed TCP sends after connection disposal reporting an unexpected
    NullReferenceException instead of the existing connection-error path.
    (net10.0, managed SNI only)
    (#​5067,
    #​5076)

  • Fixed managed SNI TLS handshakes ignoring the remaining login timeout, which could block
    Open/OpenAsync and pool users for minutes when a server or network stalls after PRELOGIN.
    This bounds the handshake, not every separate pool-wait behavior. (net10.0, managed SNI only)
    (#​4834,
    #​5045,
    #​5051,
    #​5078)

  • Fixed SqlTransaction.Dispose() throwing NullReferenceException or InvalidOperationException
    when it races the background close of a connection broken by a network failure or an
    unacknowledged command timeout, obscuring the original error.
    (#​4971,
    #​4972,
    #​5053)

  • Fixed late SqlBatch cancellation errors being hidden by ArgumentOutOfRangeException when
    the last command has already completed. Valid command attribution is preserved.
    (#​5042,
    #​5058,
    #​5063)

Cumulative Changes Since 7.1.2

This view combines the delta above with the customer-facing changes introduced in preview1.
Changes already shipped in 7.1.1 or
7.1.2, including the user-agent configured-compatibility bits,
are not presented again as new in 8.0, even though preview1's branch-cut baseline included them.

Added
  • SQL Server float16 vectors, SqlVector<Half> (net10.0 only), and per-connection
    Vector Type Support / SqlConnectionStringBuilder.VectorTypeSupport negotiation.
    The default is V2: modern .NET returns native float16 vectors rather than JSON strings.
    Use v1 for the previous float16 string contract or off for all-vector text results.
    .NET Framework can read float16 as text or widened SqlVector<float> values.
    Column-schema VectorBaseType and VectorDimensions identify negotiated native metadata.
    Parameters and bulk copy support native base-type conversion; vector TVPs are not added.
    Float16 requires server support and PREVIEW_FEATURES while in preview.
    (#​4501)
  • Opt-in pooled transaction-isolation reset through
    Switch.Microsoft.Data.SqlClient.EnableTransactionIsolationLevelReset (default false).
    SqlClient-tracked isolation changes can reset to READ COMMITTED before reuse without an
    active enlistment/delegated root. Raw T-SQL changes alone are not tracked; known Synapse
    dedicated endpoints are excluded. Necessary resets add a round trip.
    (#​96,
    #​4330)
  • TimeOnly writes for bulk-copy DataRow/DataTable inputs and variant parameters.
    (net10.0 only; #​4604)
  • Authentication EventSource diagnostics under keyword AuthenticationTrace (0x2000);
    use 0x2002 to include ordinary tracing. PII logging remains disabled for extension-owned
    requests. Correlation is best effort, and application-owned token callbacks are not covered.
    Treat captures as sensitive. See the Azure and Internal.Logging notes.
    (#​1846,
    #​4872)
Changed
  • Breaking runtime change: the modern implementation now requires .NET 10; .NET Framework
    4.6.2 remains supported. netstandard2.0 reference/unsupported-platform assets do not restore
    runtime support for .NET 8 or .NET 9.
    (#​4779)
  • Breaking networking defaults: omitted MultiSubnetFailover defaults to true for eligible
    TCP connections; TNIR defaults to false on .NET Framework. Explicit values take precedence.
    Native SNI remote-host connections may use TCP without Named Pipes fallback. Use an explicit
    protocol/keyword or the documented compatibility switches when the previous behavior is needed.
    See networking migration guidance.
    (#​4927)
  • Breaking dependency change: Azure Attestation (Attestation Protocol=AAS) requires an
    explicit matching-version Azure extension; otherwise enclave setup fails. Credential types
    now come from Azure.Core but retain their Azure.Identity namespace. Remove older direct
    Azure.Identity references or upgrade to 1.21.0+; Azure.Identity.Broker needs 1.6.0+.
    (#​4790,
    #​4749)
  • Reference APIs match implementation accessibility/sealing, remove the nonexistent
    SqlBatchCommand.CanCreateParameter setter (net462 only), and restore the obsolete
    SqlParameterCollection.Add(string, object) overload and TriggerAction (net462 only).
    SqlParameterCollection.RemoveAt(int) now throws ArgumentOutOfRangeException for invalid
    indexes; character SqlMetaData construction in invariant mode requires an explicit LCID
    (net10.0 only). Update affected compile-time assumptions and exception handling.
    (#​4832,
    #​4890,
    #​4874,
    #​4457)
  • Managed driver assemblies now reside in lib/net462 and lib/net10.0, not duplicated
    RID-specific managed directories. Consumer builds warn with SQLCLIENT001 for mismatched
    family package versions; native SNI and independently versioned Server are excluded.
    (#​4673,
    #​4815)
  • Windows pool identity includes the Windows logon session, separating network-only
    impersonation sessions with identical local SIDs. Distinct sessions can create more pools.
    (Windows only; #​4814)
  • Authentication registration and SqlAuthenticationInitializer move to Abstractions with
    forwarding for compatibility. Public configuration handlers and a net10.0 trim/AOT-analyzed
    asset support direct registration. Configured providers precede application registrations
    and Azure defaults; failed explicit configuration is not silently replaced by defaults.
    For explicit trimmed/Native AOT registration, disable both EnableAppConfig and
    EnableAzureExtensionDiscovery at publish time, and register the required providers.
    Runtime switch changes alone do not remove reflection. Enabled reflective paths require
    retained contracts and report warnings; this is not full-driver Native AOT support.
    The driver's retry/switch-override configuration remains separately gated on modern .NET.
    (#​4816,
    #​4860,
    #​4821,
    #​4697)
  • Source-generated vector/attestation JSON and targeted diagnostics, schema, discovery, and
    interop annotations reduce trimming/AOT warnings without claiming complete AOT support.
    (net10.0 only)
    (#​4683,
    #​4801,
    #​4684,
    #​4688,
    #​4703)
  • Reduced Always Encrypted key-handling allocations/cache contention and converted async
    bulk-copy setup to native async/await. Key-store decryption remains serialized, and the
    per-row asynchronous bulk-copy loop is unchanged.
    (#​4256,
    #​4687)
  • Added reconnection database-context diagnostics.
    Reader documentation clarifies complete result consumption for trailing errors/InfoMessage;
    preparation and batch documentation clarify existing restrictions. These diagnostics/docs
    do not change effective async defaults, reconnection, or reader cleanup semantics.
    (#​4130,
    #​4723,
    #​4729,
    #​4726,
    #​4878)
Fixed
  • Managed-SNI parallel TCP attempts tolerate one immediate address failure while another
    address succeeds, disposing unused sockets. (net10.0, managed SNI only)
    (#​4929)
  • XML fragments beginning with text use UTF-16LE for streaming; bulk copy preserves
    money/smallmoney identity in sql_variant values.
    (#​4757,
    #​4727)
  • Configurable retry does not execute outside a transaction aborted by the original error.
    Non-default isolation levels are reasserted when pooled sessions reattach to the same ambient
    transaction. Pool pruning preserves in-flight acquisition/creation/replenishment and
    transaction-affine reuse, and reclaimed-connection soft counters remain accurate.
    (#​4728,
    #​4335,
    #​4755,
    #​4754,
    #​4725)
  • Retry providers resolve in SqlClient's current AssemblyLoadContext; collectible contexts
    using managed SNI can unload. Native-SNI unloadability is not promised. (net10.0 only)
    (#​4588)
  • Formatter-based SqlException serialization retains Errors and derived error properties,
    addressing .NET Framework remoting. Formatter serialization is obsolete on modern .NET;
    this is not guidance to deserialize untrusted data.
    (#​1940,
    #​4622)
Removed
  • Breaking compatibility change: SQL Server 2005 connectivity and
    Type System Version=SQL Server 2005 are removed, including legacy date/time and large-UDT
    projections. Remove that setting and consume current SQL Server type representations.
    (#​4881)
Companion packages

v7.1.2

This servicing release includes the following changes since 7.1.1.
The driver and its four companion packages use version 7.1.2 and retain
AssemblyVersion 7.0.0.0.

Changed
  • Updated dependency minimums to address
    CVE-2026-84008:
    System.Security.Cryptography.Pkcs is now 8.0.2 for net462, net8.0, and netstandard2.0.
    For net9.0, Microsoft.Bcl.Cryptography, Microsoft.Extensions.Caching.Memory,
    System.Configuration.ConfigurationManager, System.Security.Cryptography.Pkcs, and
    System.Threading.RateLimiting are now 9.0.21.
    (#​4842,
    #​4862)

  • Added user-agent Driver Properties bits for the configured
    Switch.Microsoft.Data.SqlClient.UseCompatibilityAsyncBehaviour (0x2) and
    Switch.Microsoft.Data.SqlClient.UseCompatibilityProcessSni (0x4) settings.
    These report configured values independently of the parser's effective override;
    async behavior and switch defaults are unchanged.
    (#​4912)

Fixed
  • Fixed managed SNI certificate validation to enforce an explicitly configured
    HostNameInCertificate, even when the certificate matches the connection's server name.
    When hostname validation is required, the configured name is the expected name;
    a mismatch now fails the TLS handshake. Certificate-chain checks and explicit
    ServerCertificate matching are unchanged. (net8.0/net9.0 only, managed SNI)
    (#​4907)

  • Isolated Always Encrypted enclave-session cache entries by attestation protocol so a session
    established under one protocol cannot be reused by a connection requesting another.
    (#​4866)

  • Fixed unobserved receive-continuation exceptions when a managed SNI connection is closed
    while Multiple Active Result Sets (MARS) is still receiving. Pending reads are notified
    through the existing network-error path, and receive packets are released correctly.
    (net8.0/net9.0 only, managed SNI)
    (#​4679,
    #​4951)

  • Fixed SqlDataReader.HasRows incorrectly returning false when multiple informational
    messages precede the first row. The first row remains available to Read/ReadAsync,
    and existing informational-message delivery timing is preserved.
    (#​4900)

  • Fixed statistics timer bookkeeping throwing InvalidOperationException with
    "Nullable object must have a value" when a concurrent timer release clears its timestamp.
    This can affect statistics-enabled or diagnostic-instrumented operations; it does not
    make concurrent use of a connection or MARS thread-safe.
    (#​4778,
    #​4895)

  • Fixed corrupted nvarchar text from SqlDataReader.GetTextReader with
    CommandBehavior.SequentialAccess on big-endian platforms. Decoding now preserves the
    source bytes, partial-read offsets, and raw UTF-16 code units.
    (#​4961)

  • Fixed SqlConnection.Open/OpenAsync throwing IndexOutOfRangeException for malformed
    PRELOGIN option offsets or lengths. Invalid headers, option sizes, and total response sizes
    now produce the existing corrupted-stream parsing error. Nonconforming server or proxy
    responses that previously escaped these checks are rejected.
    (#​4977)

  • Fixed malformed row, alternate-result, and authentication responses being processed without
    their required metadata or authentication state. These responses now produce a corrupted-stream
    parsing error and invalidate the physical connection so it cannot return to the pool.
    Valid SQL Server result processing is unchanged.
    (#​4983)

  • Fixed eager initialization of Windows native SNI on non-Windows platforms, preventing
    TypeInitializationException/DllNotFoundException when managed networking is selected.
    (net8.0/net9.0 on Unix only)
    (#​4770)

Companion packages

v7.1.1

Fixed
  • Fixed an ArgumentException when sending zero-valued decimal or SqlDecimal parameters whose precision equals their scale. Nonzero precision validation and support for large decimal values are unchanged.
    (#​4715, #​4721, #​4732)

  • Fixed connection pool V2 handing out pooled connections with expired or nearly expired access tokens. This affects only applications that opt in to connection pool V2.
    (#​4734, #​4739)

  • Fixed connection opens failing when ClearPool or ClearAllPools races with an in-flight open. Requests already admitted to the cleared pool can finish, and connections returned to the retired pool are discarded rather than reused.
    (#​4714, #​4718, #​4740)

Companion packages
  • Released version-aligned Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider, Microsoft.Data.SqlClient.Extensions.Azure, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.Internal.Logging 7.1.1 with no functional or API changes. See the release notes.

v7.1.0

General availability of Microsoft.Data.SqlClient 7.1. The sections below list the changes since 7.1.0-preview3. See the 7.1.0 release notes for the cumulative list of changes since the 7.0.3 stable release.

Added
  • Added a RegisteredApplication enum and a matching SqlConnection.RegisteredApplication property that let a library or tool identify itself to SQL Server through version 2 of the TDS USERAGENT feature extension. The payload also carries a new driver-owned 64-bit Driver Properties flag field; bit 0 reports whether connection pool V2 is enabled for the process. Application identity is client-supplied telemetry and must never be used for authorization or any other security decision. The value must be set before Open/OpenAsync and is not part of the connection pool key.
    (#​3201, #​4632)
Changed
  • SqlConnectionStringBuilder.TransparentNetworkIPResolution is now marked [Obsolete], directing callers to MultiSubnetFailover. There is no runtime behavior change: connection string defaults are untouched and no new AppContext switches were introduced. The only visible effect is a CS0618 build warning for code that references the property.
    (#​4494, #​4576)

  • Unified the exception message raised when conflicting token-based and SSPI authentication properties are set on the same SqlConnection, and documented the complete set of properties that conflict with AccessToken.
    (#​4629)

  • Documentation corrections for SqlDataRecord, SqlMetaData, and the LCID 1033 locale name.
    (#​1805,
    #​4440,
    #​4646)

  • Updated Microsoft.Data.SqlClient.SNI and Microsoft.Data.SqlClient.SNI.runtime to v7.1.0 (was v7.1.0-preview3.26226.3).
    (#​4698)

Fixed
  • Fixed a pooled connection being returned to the pool in a broken state after a TransactionScope rollback — for example, when distributed transaction promotion fails on .NET 8+ where implicit distributed transactions are disabled by default. Connection reset now preserves the transaction when the pooled connection is either a delegated transaction root or enlisted in a transaction.
    (#​4001, #​4557)

  • Fixed GetSchema("DataTypes") never reporting the SQL Server 2025 json type against Azure SQL. The decision now uses the json support flag negotiated through the TDS FEATUREEXTACK token instead of a server version string comparison.
    (#​4592, #​4682)

  • Fixed a malformed UNC pipe path being composed for IPv6 literal server names over Named Pipes in managed SNI, which could trigger an access violation inside LSASS on Windows and force a reboot. IPv6 literals are now transcribed to their .ipv6-literal.net form. (net8.0/net9.0 only)
    (#​4523, #​4558)

  • Fixed configurable retry logic installing a permanent, process-wide assembly-resolution handler that could interfere with unrelated assembly loading. The handler is now installed only while an explicitly configured custom retry provider is resolved and constructed, and probes AppContext.BaseDirectory instead of the current working directory. (net8.0/net9.0 only)
    (#​2214, #​4547)

  • Fixed open/close throughput regressions in the opt-in connection pool V2 (Switch.Microsoft.Data.SqlClient.UseConnectionPoolV2). The default pool is unaffected.
    (#​4543)

Companion packages
  • Released Microsoft.Data.SqlClient.Extensions.Azure 7.1.0 with an internal Entra ID authority parsing clarification and no behavior change. See release notes.
  • Released version-aligned Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.Internal.Logging 7.1.0 with no functional or API changes since preview3. See the Azure Key Vault provider, Abstractions, and Logging release notes.

v7.0.4

This servicing release includes the following changes since 7.0.3.
The driver and its four companion packages use version 7.0.4 and retain
AssemblyVersion 7.0.0.0.

Changed
  • Updated dependency minimums to address
    CVE-2026-84008:
    System.Security.Cryptography.Pkcs is now 8.0.2 for net462, net8.0, and netstandard2.0.
    For net9.0, Microsoft.Bcl.Cryptography, Microsoft.Extensions.Caching.Memory,
    System.Configuration.ConfigurationManager, and System.Security.Cryptography.Pkcs
    are now 9.0.21.
    (#​4869)

  • Updated user-agent telemetry to the v2 payload, with an application ID field fixed at 0
    and a Driver Properties field. New bits report the configured
    Switch.Microsoft.Data.SqlClient.UseCompatibilityAsyncBehaviour (0x2) and
    Switch.Microsoft.Data.SqlClient.UseCompatibilityProcessSni (0x4) settings independently
    of the parser's effective override. Async behavior and switch defaults are unchanged;
    this does not add a registered-application API to 7.0.
    (#​4913)

Fixed
  • Fixed managed SNI certificate validation to enforce an explicitly configured
    HostNameInCertificate, even when the certificate matches the connection's server name.
    When hostname validation is required, the configured name is the expected name;
    a mismatch now fails the TLS handshake. Certificate-chain checks and explicit
    ServerCertificate matching are unchanged. (net8.0/net9.0 only, managed SNI)
    (#​4908)

  • Isolated Always Encrypted enclave-session cache entries by attestation protocol so a session
    established under one protocol cannot be reused by a connection requesting another.
    (#​4867)

  • Fixed unobserved receive-continuation exceptions when a managed SNI connection is closed
    while Multiple Active Result Sets (MARS) is still receiving. Pending reads are notified
    through the existing network-error path, and receive packets are released correctly.
    (net8.0/net9.0 only, managed SNI)
    (#​4679,
    #​4950)

  • Fixed SqlDataReader.HasRows incorrectly returning false when multiple informational
    messages precede the first row. The first row remains available to Read/ReadAsync,
    and existing informational-message delivery timing is preserved.
    (#​4899)

  • Fixed statistics timer bookkeeping throwing InvalidOperationException with
    "Nullable object must have a value" when a concurrent timer release clears its timestamp.
    This can affect statistics-enabled or diagnostic-instrumented operations; it does not
    make concurrent use of a connection or MARS thread-safe.
    (#​4778,
    #​4897)

  • Fixed corrupted nvarchar text from SqlDataReader.GetTextReader with
    CommandBehavior.SequentialAccess on big-endian platforms. Decoding now preserves the
    source bytes, partial-read offsets, and raw UTF-16 code units.
    (#​4962)

  • Fixed SqlConnection.Open/OpenAsync throwing IndexOutOfRangeException for malformed
    PRELOGIN option offsets or lengths. Invalid headers, option sizes, and total response sizes
    now produce the existing corrupted-stream parsing error. Nonconforming server or proxy
    responses that previously escaped these checks are rejected.
    (#​4978)

  • Fixed malformed row, alternate-result, and authentication responses being processed without
    their required metadata or authentication state. These responses now produce a corrupted-stream
    parsing error and invalidate the physical connection so it cannot return to the pool.
    Valid SQL Server result processing is unchanged.
    (#​4982)

Companion packages

v7.0.3

General availability of Microsoft.Data.SqlClient 7.1. The sections below list the changes since 7.1.0-preview3. See the 7.1.0 release notes for the cumulative list of changes since the 7.0.3 stable release.

Added
  • Added a RegisteredApplication enum and a matching SqlConnection.RegisteredApplication property that let a library or tool identify itself to SQL Server through version 2 of the TDS USERAGENT feature extension. The payload also carries a new driver-owned 64-bit Driver Properties flag field; bit 0 reports whether connection pool V2 is enabled for the process. Application identity is client-supplied telemetry and must never be used for authorization or any other security decision. The value must be set before Open/OpenAsync and is not part of the connection pool key.
    (#​3201, #​4632)
Changed
  • SqlConnectionStringBuilder.TransparentNetworkIPResolution is now marked [Obsolete], directing callers to MultiSubnetFailover. There is no runtime behavior change: connection string defaults are untouched and no new AppContext switches were introduced. The only visible effect is a CS0618 build warning for code that references the property.
    (#​4494, #​4576)

  • Unified the exception message raised when conflicting token-based and SSPI authentication properties are set on the same SqlConnection, and documented the complete set of properties that conflict with AccessToken.
    (#​4629)

  • Documentation corrections for SqlDataRecord, SqlMetaData, and the LCID 1033 locale name.
    (#​1805,
    #​4440,
    #​4646)

  • Updated Microsoft.Data.SqlClient.SNI and Microsoft.Data.SqlClient.SNI.runtime to v7.1.0 (was v7.1.0-preview3.26226.3).
    (#​4698)

Fixed
  • Fixed a pooled connection being returned to the pool in a broken state after a TransactionScope rollback — for example, when distributed transaction promotion fails on .NET 8+ where implicit distributed transactions are disabled by default. Connection reset now preserves the transaction when the pooled connection is either a delegated transaction root or enlisted in a transaction.
    (#​4001, #​4557)

  • Fixed GetSchema("DataTypes") never reporting the SQL Server 2025 json type against Azure SQL. The decision now uses the json support flag negotiated through the TDS FEATUREEXTACK token instead of a server version string comparison.
    (#​4592, #​4682)

  • Fixed a malformed UNC pipe path being composed for IPv6 literal server names over Named Pipes in managed SNI, which could trigger an access violation inside LSASS on Windows and force a reboot. IPv6 literals are now transcribed to their .ipv6-literal.net form. (net8.0/net9.0 only)
    (#​4523, #​4558)

  • Fixed configurable retry logic installing a permanent, process-wide assembly-resolution handler that could interfere with unrelated assembly loading. The handler is now installed only while an explicitly configured custom retry provider is resolved and constructed, and probes AppContext.BaseDirectory instead of the current working directory. (net8.0/net9.0 only)
    (#​2214, #​4547)

  • Fixed open/close throughput regressions in the opt-in connection pool V2 (Switch.Microsoft.Data.SqlClient.UseConnectionPoolV2). The default pool is unaffected.
    (#​4543)

Companion packages
  • Released Microsoft.Data.SqlClient.Extensions.Azure 7.1.0 with an internal Entra ID authority parsing clarification and no behavior change. See release notes.
  • Released version-aligned Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.Internal.Logging 7.1.0 with no functional or API changes since preview3. See the Azure Key Vault provider, Abstractions, and Logging release notes.

v7.0.2

This update brings the following changes since the 7.1.0-preview2 release.
See the full release notes for detailed descriptions.

Important — package version alignment: Starting with the 7.0.2 release, the Microsoft.Data.SqlClient driver and its companion packages share a single aligned version. Preview 3 of the 7.1 line continues this alignment; the following packages now ship together as 7.1.0-preview3:

  • Microsoft.Data.SqlClient
  • Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider
  • Microsoft.Data.SqlClient.Extensions.Azure
  • Microsoft.Data.SqlClient.Extensions.Abstractions
  • Microsoft.Data.SqlClient.Internal.Logging

(Microsoft.SqlServer.Server continues to version independently and remains at 1.0.0.)

Applications that reference Microsoft.Data.SqlClient.Extensions.Azure must upgrade it to 7.1.0-preview3 when upgrading Microsoft.Data.SqlClient to 7.1.0-preview3.

Compatibility guarantee: All aligned assemblies ship with FileVersion 7.1.0.x and AssemblyVersion 7.0.0.0. The AssemblyVersion is unchanged from 7.0.2, so upgrading from 7.0.2 to 7.1.0-preview3 does not require any new .NET Framework strong-name binding redirects.

Added
  • Added four virtual asynchronous counterparts to the synchronous methods on SqlColumnEncryptionKeyStoreProvider — DecryptColumnEncryptionKeyAsync, EncryptColumnEncryptionKeyAsync, SignColumnMasterKeyMetadataAsync, and VerifyColumnMasterKeyMetadataAsync — each accepting an optional CancellationToken. 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 supplied CancellationToken. 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 the VerifyColumnMasterKeyMetadata signature-validation behavior change and the 7.1 runtime requirement.
    (#​4540)

  • Substantially expanded ChannelDbConnectionPool (the opt-in pool behind Switch.Microsoft.Data.SqlClient.UseConnectionPoolV2) to parity with the default pool: transaction support, broken-connection replacement, leaked-connection reclamation, background warmup and replenishment to Min Pool Size, idle pruning driven by Connection 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 PacketData nodes via a bounded free list on StateSnapshot. 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 SqlClientEventSource tracing 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.0 target framework to 9.0.18, and added System.Threading.RateLimiting to the packaged dependency metadata. Non-net9.0 targets keep their existing 8.0.x pins.
    (#​4507)

  • Updated the Microsoft.Data.SqlClient.SNI and Microsoft.Data.SqlClient.SNI.runtime dependencies to 7.1.0-preview3.26226.3.
    (#​4564)

  • Bypassed SQL Graph column alias

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • 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.


  • If you want to rebase/retry this PR, check this box

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

@dependencyupdates dependencyupdates Bot added dependencies Pull requests that update a dependency file NuGet labels Nov 26, 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 NuGet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants