Skip to content

Update dependency Microsoft.Data.SqlClient to 7.1.2 - #56

Merged
bording merged 1 commit into
mainfrom
renovate/microsoft.data.sqlclient-7.x
Nov 17, 2026
Merged

bording merged 1 commit into
mainfrom
renovate/microsoft.data.sqlclient-7.x

Conversation

@dependencyupdates

@dependencyupdates dependencyupdates Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

Release Notes

dotnet/sqlclient (Microsoft.Data.SqlClient)

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

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 Sep 18, 2026
@dependencyupdates
dependencyupdates Bot force-pushed the renovate/microsoft.data.sqlclient-7.x branch from 1737fac to 247cfbb Compare September 30, 2026 03:33
@dependencyupdates dependencyupdates Bot changed the title Update dependency Microsoft.Data.SqlClient to 7.1.0 Update dependency Microsoft.Data.SqlClient to 7.1.1 Sep 30, 2026
@dependencyupdates
dependencyupdates Bot force-pushed the renovate/microsoft.data.sqlclient-7.x branch from 247cfbb to df13b76 Compare October 13, 2026 15:48
@dependencyupdates
dependencyupdates Bot force-pushed the renovate/microsoft.data.sqlclient-7.x branch 2 times, most recently from c9de72a to 774149d Compare November 11, 2026 15:41
@dependencyupdates
dependencyupdates Bot force-pushed the renovate/microsoft.data.sqlclient-7.x branch from 774149d to 4d90227 Compare November 13, 2026 03:22
@dependencyupdates dependencyupdates Bot changed the title Update dependency Microsoft.Data.SqlClient to 7.1.1 Update dependency Microsoft.Data.SqlClient to 7.1.2 Nov 13, 2026
@bording
bording merged commit 65ce86c into main Nov 17, 2026
17 checks passed
@bording
bording deleted the renovate/microsoft.data.sqlclient-7.x branch November 17, 2026 19:39
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.

1 participant