Skip to content

Update dependency Microsoft.Data.SqlClient to 7.0.2#36

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

Update dependency Microsoft.Data.SqlClient to 7.0.2#36
dependencyupdates[bot] wants to merge 1 commit into
mainfrom
renovate/microsoft.data.sqlclient-7.x

Conversation

@dependencyupdates

@dependencyupdates dependencyupdates Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

Release Notes

dotnet/sqlclient (Microsoft.Data.SqlClient)

v7.0.2

This update brings the following changes since the 7.1.0-preview1 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 2 of the 7.1 line continues this alignment; the following packages now ship together as 7.1.0-preview2:

  • 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-preview2 when upgrading Microsoft.Data.SqlClient to 7.1.0-preview2.

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-preview2 does not require any new .NET Framework strong-name binding redirects. See the 7.0.2 release notes for the original AssemblyVersion alignment (the one-time breaking change that raised AssemblyVersion from 1.0.0.0 to 7.0.0.0 for Extensions.Azure, Extensions.Abstractions, and Internal.Logging; AzureKeyVaultProvider was already on 7.x).

Added
  • Added SqlConnection.GetSchemaAsync overloads mirroring the existing synchronous shapes.
    (#​3005)

  • Added SQL Graph column-alias support ($node_id, $edge_id, $from_id, $to_id) as destination columns in SqlBulkCopy.
    (#​3677)

  • SqlBatchCommand.CommandBehavior (a driver-specific property that existed since batching was introduced but was previously ignored) is now honored during SqlBatch execution, and SqlBatch.ExecuteReader now respects the CommandBehavior value passed to it.
    (#​4125)

  • Added a Connection Idle Timeout connection-string keyword and matching SqlConnectionStringBuilder.IdleTimeout property to evict idle pooled connections (default 300 seconds; 0 disables). Enforcement is opt-in via Switch.Microsoft.Data.SqlClient.UseLegacyIdleTimeoutBehavior=false; the default preserves the historical pooling behavior. When enabled, idle-timeout enforcement applies to the existing connection pool as well.
    (#​4295)

Changed
  • The Connect Timeout budget can now be propagated through pool acquisition via a shared TimeoutTimer, so time spent waiting in the pool is deducted from the overall timeout. Enforcement is opt-in via Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWait=true; the default (false) preserves the historical behavior where pool waits do not count against Connect Timeout. Adds a dependency on Microsoft.Bcl.TimeProvider.
    (#​4270)

  • Hardened SqlConnection internal state transitions with Interlocked.CompareExchange guards.
    (#​4267)

  • Removed legacy connection-options inheritance from internal APIs and simplified TryOpenConnection / TryReplaceConnection / pool interfaces.
    (#​4235,
    #​4237,
    #​4261,
    #​4415)

  • Added the SQL Server 2025 json data type to the DataTypes schema table returned by SqlConnection.GetSchema.
    (#​3858)

  • Added async generic helpers to reduce sync/async duplication.
    (#​4334)

  • Use hardcoded LCID mappings when decoding strings.
    (#​4212)

  • Reduced allocations by skipping lock acquisition on SqlErrorCollection counters when no errors exist, and by avoiding stack-trace materialization on expected null-return paths.
    (#​4099,
    #​4102,
    #​4157)

  • Improved accuracy of EnclaveDiffieHellmanInfo.Size.
    (#​4346)

  • SqlVector<float> now serializes and deserializes multibyte values as little-endian explicitly.
    (#​3861)

  • Updated the bundled .NET 10 SDK to 10.0.300.
    (#​4287)

  • Re-shipped Microsoft.Data.SqlClient.Extensions.Azure as 7.1.0-preview2, adding Windows Account Manager (WAM) broker support for Entra ID authentication on Windows. See release notes.

  • Re-shipped Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.Internal.Logging as 7.1.0-preview2 (version alignment only, no functional changes). See release notes for AKV, Abstractions, and Logging.

Fixed
  • Fixed a NullReferenceException in SqlCommand.Cancel() when the active connection has already been torn down.
    (#​4372)

  • Fixed Always Encrypted column master key signature verification incorrectly reusing cached results after a prior verification failure.
    (#​4339)

  • Fixed missing bounds checks on TDS token and feature-extension-acknowledgment data lengths that could allow a spoofing server to trigger unbounded allocations.
    (#​4340)

  • Fixed SqlBulkCopy failing in least-privilege environments.
    (#​4306)

  • Fixed Always Encrypted reads of CekMdVersion and EkValueCount to align with the TDS specification.
    (#​4240)

  • Fixed LoginWithFailover to validate parser state before continuing.
    (#​4140)

  • Fixed the SPN used during login to use the resolved port instead of the instance name when Protocol=None or Protocol=Admin.
    (#​4180)

  • Fixed a race in SqlConnection.TryOpenInner that could surface as InvalidCastException; the same race now returns a deterministic InvalidOperationException.
    (#​4179)

  • Fixed several CancellationTokenSource leaks across SqlDataReader, SqlConnection reconnect, SqlCommand reconnect timeout, and sequential-stream helpers.
    (#​4009)

  • Fixed server certificate documentation.
    (#​4408)

Removed
  • Breaking: Removed SQL Server 7.0 and SQL Server 2000 support, along with the TypeSystem.SQLServer2000 enum value and the Type System Version=SQL Server 2000 connection-string value. Connection strings that specify this value now throw ArgumentException when the connection is opened. Supported values are Latest, SQL Server 2005, SQL Server 2008, and SQL Server 2012.
    (#​4015)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants