Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft.Data.SqlClient ships independently of .NET. This article summarizes the significant features, behavior changes, and compatibility changes in each release line. The release tables include every stable package publication, including each hotfix and unlisted package. For every fix and dependency update, see the complete release notes in the SqlClient repository.
Current releases
| Release line | Latest version | Release date | Support |
|---|---|---|---|
| 8.0 | 8.0.0 | November 2026 | Standard Term Support (STS) |
| 7.1 | 7.1.2 | November 2026 | Standard Term Support (STS) |
| 7.0 | 7.0.4 | November 2026 | Standard Term Support (STS) |
| 6.1 | 6.1.8 | October 2026 | Long Term Support (LTS) |
Don't use preview releases in production. Preview APIs and behavior can change before General Availability (GA).
Release tables and general availability summaries use the NuGet publication month. The lifecycle article lists official release dates, which can differ. For support windows, see SqlClient driver support lifecycle.
Version timeline
These releases changed how existing applications connect. They're listed newest first. Check each one that falls between your current version and the version you're moving to.
| Version | Change | What to do |
|---|---|---|
| 8.0 | The modern .NET implementation requires .NET 10. .NET Framework 4.6.2 and later versions remain supported. | Retarget .NET 8 and .NET 9 applications to .NET 10, or stay on 7.1.2. |
| 8.0 | MultiSubnetFailover defaults to true for TCP connections. On .NET Framework, TransparentNetworkIPResolution defaults to false. |
Test failover and protocol selection. Set the keyword explicitly or use the compatibility switches to keep the earlier defaults. |
| 8.0 | Time spent waiting for a pooled connection counts against Connect Timeout. |
Under pool contention, raise Connect Timeout or Max Pool Size, or turn off the switch. |
| 8.0 | On Windows, the connection pool key includes the Windows logon session. | Reuse a logon token when you impersonate, and don't rely on Min Pool Size across impersonation boundaries. |
| 8.0 | SQL Server 2005 connectivity and Type System Version=SQL Server 2005 are removed. |
Remove the setting and read current SQL Server type representations. |
| 8.0 | Family packages use AssemblyVersion 8.0.0.0, and Azure Attestation requires the Azure extension. |
Review .NET Framework binding redirects, and align every family package to 8.0.0. |
| 7.1.2, 7.0.4, 6.1.8 | A configured HostNameInCertificate must match the server certificate, even when the certificate already matches the server name. |
Remove HostNameInCertificate when the server name matches the certificate, or set it to a name in the certificate. |
| 7.0 | Microsoft Entra authentication moves to Microsoft.Data.SqlClient.Extensions.Azure. |
Add the extension package when you use an Active Directory authentication mode. |
| 5.0 | Encrypt=Strict adds TDS 8.0. SqlConnectionStringBuilder.Encrypt changes from bool to SqlConnectionEncryptOption. |
Recompile code that uses SqlConnectionStringBuilder.Encrypt. |
| 4.0 | Encrypt defaults to true. |
Trust the server certificate, or set TrustServerCertificate=true only for development. |
.NET 10 required for modern .NET in 8.0
Starting with version 8.0, the package ships runtime assemblies for .NET Framework 4.6.2 and later versions on Windows, and for .NET 10 and later versions on Windows, Linux, and macOS. The package still contains netstandard2.0 assets, but those assets are for reference and unsupported-platform scenarios only. A .NET 8 or .NET 9 project restores and builds against 8.0.0 without an error or a warning, and then fails at run time. The first SqlClient call, such as new SqlConnectionStringBuilder(), throws:
System.PlatformNotSupportedException: Microsoft.Data.SqlClient is not supported on this platform.
Retarget the application to .NET 10, or keep the application on version 7.1.2 until you can retarget it. For support dates, see SqlClient driver support lifecycle.
MultiSubnetFailover and TNIR defaults in 8.0
Starting with version 8.0, when the connection string doesn't set MultiSubnetFailover, the driver uses true for TCP connections. The driver tries every IP address that the server name resolves to in parallel and uses the first connection that succeeds. The addresses don't need to be in different subnets. On .NET Framework, TransparentNetworkIPResolution (TNIR) now defaults to false. An explicit value in the connection string always takes precedence. SqlConnectionStringBuilder.MultiSubnetFailover returns true when the connection string doesn't set the keyword.
The default stays false for these connections:
- A failover partner, configured in the connection string or sent by the server for database mirroring.
- Named Pipes and Shared Memory, selected with the
np:orlpc:prefix, a pipe path, theNetwork Librarykeyword on .NET Framework, or a client alias. - LocalDB, and
admin:orvia:connections. - On Windows with native networking, a local server without a protocol prefix, such as
.,(local),localhost, or the computer name.
On Windows with native networking, a remote server without a protocol prefix now connects over TCP only and no longer falls back to Named Pipes. Add the np: prefix or set MultiSubnetFailover=false to keep Named Pipes. With MultiSubnetFailover on, the connection fails when the server name resolves to more than 64 IP addresses.
To restore the 7.1 defaults, set these AppContext switches at startup, before you create a connection string builder or a connection:
AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.EnableMultiSubnetFailoverByDefault", false);
// .NET Framework only.
AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.DisableTNIRByDefaultInConnectionString", false);
Restoring the TNIR default doesn't turn off MultiSubnetFailover. To use TNIR, turn off MultiSubnetFailover too. For connection strategies and their limitations, see High availability and disaster recovery with SqlClient.
Pool waits count against Connect Timeout in 8.0
Starting with version 8.0, Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWait defaults to true for both connection pool implementations. Open and OpenAsync deduct the time spent waiting for a pooled connection from the Connect Timeout budget, and login gets only the time that remains. In 7.1, the switch defaults to false, and login starts a new Connect Timeout after the pool wait. Under pool contention, opens can fail sooner after the upgrade. Connect Timeout=0 still waits indefinitely.
To restore the 7.1 behavior, set the switch to false at startup. The driver reads the switch once, on first use.
AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWait", false);
For more information, see Use one connect timeout for pool waits and network connections.
Windows logon session in the pool key in 8.0
Starting with version 8.0, on Windows, connections that use Windows integrated authentication are pooled by Windows identity and logon session. The change applies to both connection pool implementations, with native or managed networking. A network-only logon, such as runas /netonly or LogonUser with LOGON32_LOGON_NEW_CREDENTIALS, keeps the local security identifier (SID) of the process account but no longer shares a pool with that account.
Separate logon sessions use separate pools, even for the same account. An application that calls LogonUser for every operation can create many more pools after the upgrade, so reuse a logon token where you can. Background replenishment creates connections only under the identity that owns the pool, so Min Pool Size isn't guaranteed across impersonation boundaries. Open connections inside the impersonation scope. For more information, see Understand pool keys.
SQL Server 2005 support removed in 8.0
Version 8.0 removes SQL Server 2005 connectivity and the Type System Version=SQL Server 2005 connection option, including the legacy projections that returned date, time, datetime2, and datetimeoffset values as strings and large user-defined types (UDTs) as bytes. A connection string that sets Type System Version=SQL Server 2005 throws:
System.ArgumentException: Invalid value for key 'Type System Version'.
Remove the setting, and update code that depends on the legacy type representations. Version 7.1.2 and earlier versions still accept the setting.
Package alignment and assembly version 8.0.0.0 in 8.0
Version 8.0 changes the AssemblyVersion of the driver and its companion packages from 7.0.0.0 to 8.0.0.0. .NET Framework applications that upgrade from a 7.x version must rebuild or update their binding redirects. A build that references family packages with different versions emits warning SQLCLIENT001. Align Microsoft.Data.SqlClient, Microsoft.Data.SqlClient.Extensions.Azure, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider to the same version.
Always Encrypted with Azure Attestation (Attestation Protocol=AAS) now requires a direct reference to Microsoft.Data.SqlClient.Extensions.Azure at the same version as the driver. Without it, enclave setup fails. Azure credential types now come from Azure.Core and keep their Azure.Identity namespace. If the application references Azure.Identity directly, use version 1.21.0 or a later version. If it references Azure.Identity.Broker, use version 1.6.0 or a later version.
HostNameInCertificate enforcement in 7.1.2, 7.0.4, and 6.1.8
Starting with versions 7.1.2, 7.0.4, and 6.1.8, when you set HostNameInCertificate, SqlClient validates the server certificate against that name instead of the server name in Data Source. Earlier versions checked HostNameInCertificate only when the certificate didn't match the server name, so a wrong value had no effect when the server name already matched. In 7.1.2 and 7.0.4, this change applies to both native and managed networking, on .NET and .NET Framework. In 6.1.8, it applies only to managed networking, which is the default on Linux and macOS and opt-in on Windows. With native networking, 6.1.8 still accepts a HostNameInCertificate value that isn't in the certificate when the server name matches. Native networking includes every .NET Framework application.
After the upgrade, a HostNameInCertificate value that isn't in the certificate fails the connection. With native networking, the message is:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate's CN name does not match the passed value.)
With managed networking, the inner AuthenticationException message is:
Certificate name mismatch. The provided 'DataSource' or 'HostNameInCertificate' does not match the name in the certificate.
Remove HostNameInCertificate when the server name already matches the certificate, or set it to a name that the certificate contains. A ServerCertificate file that exactly matches the server certificate still passes validation. For details, see Encryption and certificate validation in Microsoft.Data.SqlClient.
Microsoft Entra authentication moves to an extension package in 7.0
Starting with version 7.0, the core package no longer depends on Azure.Core, Azure.Identity, or the Microsoft Authentication Library (MSAL). The Active Directory authentication modes require Microsoft.Data.SqlClient.Extensions.Azure. Without that package, in 7.x versions, Open or OpenAsync throws System.ArgumentException when the server requests Microsoft Entra authentication, with a message such as:
Cannot find an authentication provider for 'ActiveDirectoryDefault'. Install the 'Microsoft.Data.SqlClient.Extensions.Azure' NuGet package (https://www.nuget.org/packages/Microsoft.Data.SqlClient.Extensions.Azure) to use Active Directory (Entra ID) authentication methods.
In 7.x versions, the exception type isn't SqlException, so code that catches only SqlException doesn't handle it. Starting with 8.0.0, the driver throws SqlException with the same message prefix. Starting with 7.0.2, use the same version of the core package and its companion packages. For setup, see Microsoft Entra authentication with Microsoft.Data.SqlClient.
Strict encryption and TDS 8.0 in 5.0
Version 5.0 added Encrypt=Strict, which uses TDS 8.0. Strict mode starts TLS before the TDS login exchange and always validates the server certificate, so TrustServerCertificate has no effect. Strict mode requires SQL Server 2022 or later, Azure SQL Database, or Azure SQL Managed Instance. The same release changed SqlConnectionStringBuilder.Encrypt from bool to SqlConnectionEncryptOption. That change is binary breaking, so recompile applications and libraries that set the property.
Encrypt defaults to true in 4.0
Starting with version 4.0, connections encrypt by default and validate the server certificate. Before 4.0, Encrypt defaulted to false. After the upgrade, a server that presents a self-signed certificate, or a certificate whose name doesn't match the server name in the connection string, fails the connection with a certificate chain or name error. Install a certificate that the client trusts and connect by the name on the certificate. For development only, you can set TrustServerCertificate=true. For details, see Encryption and certificate validation in Microsoft.Data.SqlClient.
8.0 STS
Version 8.0 reached general availability on November 26, 2026. It's the current STS line. Supported application targets are .NET 10 and later versions on Windows, Linux, and macOS, and .NET Framework 4.6.2 and later versions on Windows. Applications on .NET 8 or .NET 9 can't use 8.0. For details, see .NET 10 required for modern .NET in 8.0.
Breaking changes
- The modern .NET implementation requires .NET 10. For details, see .NET 10 required for modern .NET in 8.0.
MultiSubnetFailoverdefaults totruefor TCP connections, andTransparentNetworkIPResolutiondefaults tofalseon .NET Framework. For details, see MultiSubnetFailover and TNIR defaults in 8.0.- Time spent waiting for a pooled connection counts against
Connect Timeout. For details, see Pool waits count against Connect Timeout in 8.0. - SQL Server 2005 connectivity and
Type System Version=SQL Server 2005are removed. For details, see SQL Server 2005 support removed in 8.0. - Family packages use
AssemblyVersion 8.0.0.0, mismatched family package versions emit build warningSQLCLIENT001, and Azure Attestation requires the Azure extension. For details, see Package alignment and assembly version 8.0.0.0 in 8.0. SqlParameterCollection.RemoveAt(int)throwsArgumentOutOfRangeExceptionfor an invalid index. On .NET 10 in invariant globalization mode, constructing a characterSqlMetaDatarequires an explicit locale ID (LCID).
Features and changes
- SQL Server float16 vectors, including
SqlVector<Half>on .NET 10. TheVector Type Supportconnection string keyword, also available asSqlConnectionStringBuilder.VectorTypeSupport, controls vector negotiation. The default,v2, returns float16 vectors as native values on .NET 10. Usev1to keep float16 vectors as strings, oroffto return all vectors as text. Float16 vectors require server support, and thePREVIEW_FEATURESdatabase scoped configuration while the server feature is in preview. - Opt-in isolation level reset for pooled connections through
Switch.Microsoft.Data.SqlClient.EnableTransactionIsolationLevelReset. The switch defaults tofalse. When you turn it on, an isolation level that you change through SqlClient resets toREAD COMMITTEDbefore the connection is reused. The reset doesn't happen while the connection has an active transaction enlistment or is a delegated transaction root, and known Azure Synapse Analytics dedicated SQL pool endpoints are excluded. Isolation level changes made only through Transact-SQL (T-SQL) aren't tracked. A reset adds a round trip. TimeOnlyvalues in bulk copy fromDataRowandDataTablesources, and insql_variantparameters, on .NET 10.- Authentication diagnostics under the
AuthenticationTraceEventSource keyword (0x2000). Use0x2002to include ordinary tracing. Treat captured traces as sensitive. - Authentication provider registration moves to
Microsoft.Data.SqlClient.Extensions.Abstractions, with type forwarding for compatibility. For trimmed or Native AOT publishing with explicit provider registration, turn off bothEnableAppConfigandEnableAzureExtensionDiscoveryat publish time and register the providers you need. This change reduces trimming warnings, but the driver doesn't claim full Native AOT support. - Asynchronous command execution awaits Always Encrypted enclave attestation, and cancellation reaches the enclave provider. Key store operations and cryptography can still run synchronously, so this change isn't end-to-end asynchronous Always Encrypted support.
SqlBulkCopywith destination column name mappings uses fast metadata discovery again, with one catalog query fallback when a name is missing.Switch.Microsoft.Data.SqlClient.UseBulkCopyCatalogMetadataDiscovery=truealways uses catalog discovery.falsenever uses it, and loses hidden column and graph alias discovery.- On Windows, the connection pool key for Windows integrated authentication includes the logon session. For details, see Windows logon session in the pool key in 8.0.
- Updated
Azure.Coreto 1.65.0, MSAL to 4.92.0, .NET 10 dependency minimums to 10.0.15, and the native SQL Server Network Interface (SNI) library to 8.0.0.
Key fixes
- With managed networking on .NET 10, parallel TCP connection attempts no longer fail when one address fails immediately and another address succeeds.
- Non-default isolation levels are reasserted when a pooled connection reattaches to the same ambient transaction. Configurable retry no longer runs outside a transaction that the original error aborted.
- With managed networking on .NET 10, the TLS handshake honors the remaining login timeout. Earlier versions could block
Open,OpenAsync, and pool waiters for minutes when a server or network stalled after the PRELOGIN exchange. - With managed networking on Windows on .NET 10, reopening a healthy idle pooled connection no longer waits about 15 milliseconds for a health check.
- With managed networking on .NET 10, opening a connection on a single-worker task scheduler no longer deadlocks.
SqlTransaction.Dispose()no longer throwsNullReferenceExceptionorInvalidOperationExceptionwhen it races the background close of a broken connection, so the original error is visible.- Late
SqlBatchcancellation errors are no longer hidden byArgumentOutOfRangeException. SqlExceptionkeepsErrorsand derived error properties through formatter serialization, for .NET Framework remoting.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 8.0.0 | November 2026 | General availability release, including the cumulative changes from 8.0.0-preview1. |
Important
Upgrade every directly referenced family package to 8.0.0 with the core driver, including Microsoft.Data.SqlClient.Extensions.Azure, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider. Let Microsoft.Data.SqlClient.Internal.Logging resolve transitively. The family AssemblyVersion changes from 7.0.0.0 to 8.0.0.0, so .NET Framework applications that upgrade from 7.x must rebuild or update their binding redirects. Native SNI and Microsoft.SqlServer.Server keep their own version numbers.
The Azure Key Vault Provider 8.0.0 release updates dependencies only. The driver still resolves keys synchronously during command execution. The Azure extension 8.0.0 release validates the Azure Attestation token and adds the authentication diagnostics. The extension abstractions 8.0.0 release takes over authentication registration and its messages, so the exact text of some authentication error messages can change. The Internal.Logging 8.0.0 release aligns the version only.
For preview history, see the release notes for 8.0.0-preview1.
7.1 STS
Version 7.1 reached general availability in September 2026. It remains supported until February 26, 2027, three months after the 8.0 release. Version 7.1.2 is the latest release for applications that still target .NET 8 or .NET 9.
Features and changes
SqlBatchsupport on .NET Framework.- Asynchronous
SqlConnection.GetSchemaAsyncoverloads. - Application identity reporting through
SqlConnection.RegisteredApplicationand version 2 of the TDS USERAGENT payload. Set the property before opening the connection. The value isn't part of the connection pool key, so a reused physical connection reports the application that originally created it. Application identity is client-supplied telemetry, not a basis for authorization or other security decisions. - Connection string aliases such as
ColumnEncryption,ConnectTimeout,FailoverPartner,PacketSize, andWorkstationId. - SQL Graph pseudo-column mappings for
$node_id,$edge_id,$from_id, and$to_idinSqlBulkCopy. - The SQL Server
jsontype in theDataTypescollection returned bySqlConnection.GetSchema, including on Azure SQL. - Opt-in
Connection Idle Timeoutenforcement throughSwitch.Microsoft.Data.SqlClient.UseLegacyIdleTimeoutBehavior=false. The default idle timeout is 300 seconds;0disables idle expiration. Default pooling behavior is unchanged. - An opt-in connection timeout mode that includes time spent waiting for a pooled connection through
Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWait=true. The switch defaults tofalse. - Expanded transaction support, broken-connection recovery, pool warmup, idle pruning, leaked-connection reclamation, and diagnostics in connection pool V2. The pool remains in evaluation and requires
Switch.Microsoft.Data.SqlClient.UseConnectionPoolV2. - Asynchronous methods on Always Encrypted key store providers. The driver doesn't yet call these methods during command execution, so they don't make existing Always Encrypted operations asynchronous.
- Updated native SNI packages to 7.1.0. Supported application targets remain .NET 8 and later versions and .NET Framework 4.6.2 and later versions.
Compatibility changes
SqlConnectionStringBuilder.TransparentNetworkIPResolutionis obsolete on .NET Framework. UseMultiSubnetFailoverinstead. This change adds a compile-time warning; it doesn't change runtime behavior or either option's default.SqlBatchCommand.CommandBehaviorand theCommandBehaviorpassed toSqlBatch.ExecuteReaderare honored. Earlier versions ignored these settings.- The obsolete
Type System Version=SQL Server 2000connection option now throwsArgumentExceptionwhen you open the connection. Use a supported value such asLatest.
Version 7.1 also includes the certificate and enclave validation fixes serviced in 6.1.7 and 7.0.3. When you enable certificate validation on managed SNI, ServerCertificate compares the configured certificate file with the certificate presented by the server. An invalid or unreadable file fails the connection instead of bypassing the configured certificate check. Virtual Secure Mode (VSM) and Host Guardian Service (HGS) enclave attestation verifies that the enclave public key is bound to the signed attestation report. Retest these paths when you upgrade from an earlier release without these fixes.
Key fixes
- Fixed pooled connections remaining broken after a
TransactionScoperollback, which could cause a laterBeginTransaction()call to fail. - Fixed IPv6 literal server names over Named Pipes in managed SNI.
- Fixed large
decimalparameter overflows with explicit precision and scale,DateOnlyparameters and table-valued parameters usingsql_variant, and streamed column data being skipped afterIsDBNull(). - Fixed connection pool counters, unnecessary pool-maintenance timer activity, and connection pool V2 open/close throughput regressions.
- Fixed configurable retry logic registering a permanent, process-wide assembly-resolution handler on modern .NET. Custom retry assemblies must be in the application base directory; dependencies loaded after provider construction must resolve through normal application dependency resolution or an application-supplied handler.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 7.1.2 | November 2026 | Updated dependency minimums to address CVE-2026-84008. A configured HostNameInCertificate must now match the server certificate. For details, see HostNameInCertificate enforcement. Fixed SqlDataReader.HasRows returning false when several informational messages precede the first row. Malformed PRELOGIN responses now fail with a corrupted-stream error instead of IndexOutOfRangeException. Malformed row and authentication responses also fail with that error, and the affected connection doesn't return to the pool. Always Encrypted enclave sessions are now isolated by attestation protocol. Fixed unobserved exceptions when a managed networking MARS connection closes during a receive, and a native networking load failure on Linux and macOS when managed networking is selected. |
| 7.1.1 | September 2026 | Fixed an ArgumentException for zero-valued decimal and SqlDecimal parameters whose precision equals their scale. Fixed connection opens that fail when ClearPool or ClearAllPools runs during an in-flight open. Connection pool V2 now checks access token expiry before it reuses a pooled connection, which matches the default pool. The token fix affects only applications that opt in to connection pool V2. |
| 7.1.0 | September 2026 | General availability release, including the cumulative changes from the 7.1 preview cycle. |
Important
Upgrade directly referenced companion packages to 7.1.2 alongside the core driver, including Microsoft.Data.SqlClient.Extensions.Azure, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider. Let Microsoft.Data.SqlClient.Internal.Logging resolve transitively. Aligned assemblies retain AssemblyVersion 7.0.0.0, so updating from 7.0.2, 7.0.3, 7.0.4, 7.1.0, or 7.1.1 doesn't require new .NET Framework binding redirects. When you update from 7.0.0 or 7.0.1, review the one-time assembly version changes described in the 7.0.2 release notes.
The Azure Key Vault Provider 7.1.0 release implements the asynchronous key store provider methods and fixes cache growth and duplicate key clients under concurrency. These asynchronous methods benefit direct provider calls; the driver's command execution paths still use synchronous key operations. The Azure extension and extension abstractions releases align versions without public API changes.
The companion packages also ship as 7.1.1 with no functional changes, so you can update every package in the family to the same version. For details, see the Azure Key Vault Provider 7.1.1, Azure extension 7.1.1, and extension abstractions 7.1.1 release notes.
The Azure extension 7.1.2 adds guidance to interactive authentication errors with the Microsoft Authentication Library (MSAL) code window_handle_required on Windows. This error occurs when the Web Account Manager (WAM) broker has no parent window, for example in an Azure Functions local worker process. If your app has a window, supply its handle through ActiveDirectoryAuthenticationProvider.SetParentActivityOrWindowFunc. For a host without a window, use Authentication=Active Directory Default with a non-interactive credential. Interactive authentication without WAM requires a custom ApplicationClientId in ActiveDirectoryAuthenticationProviderOptions and UseWamBroker=false. The other 7.1.2 companion packages contain no functional changes.
For preview history, see the release notes for preview1, preview2, and preview3.
7.0 STS
Version 7.0 reached general availability in March 2026. It remains supported until December 17, 2026, three months after the 7.1 release.
Features and changes
- Driver-provided Microsoft Entra authentication moved from the core package to
Microsoft.Data.SqlClient.Extensions.Azure. Add the extension package when you use anActive Directoryauthentication mode. - The core package no longer depends on
Azure.Core,Azure.Identity, or Microsoft Authentication Library (MSAL). SqlConnection.SspiContextProvidersupports custom Kerberos and NTLM token negotiation. The provider identity is part of the connection pool key.- Enhanced routing for Azure SQL Hyperscale and named read replicas is negotiated automatically.
- Strongly typed command, connection, and transaction diagnostic events are available on current .NET and .NET Framework.
SqlConfigurableRetryFactory.BaselineTransientErrorsexposes the driver's default transient error list.Active Directory Passwordauthentication is obsolete. Use interactive authentication for user applications, service principal authentication for services, or managed identity for Azure-hosted workloads.- Target support starts at .NET 8 and .NET Framework 4.6.2. The driver also supports building and running on .NET 10.
Packet multiplexing for asynchronous reads remains preview functionality and is opt-in in 7.0. Test compatibility switches with production workloads and keep a rollback path.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 7.0.4 | November 2026 | Updated SNI to 6.0.4 and updated dependency minimums to address CVE-2026-84008. A configured HostNameInCertificate must now match the server certificate. For details, see HostNameInCertificate enforcement. Fixed SqlDataReader.HasRows returning false when several informational messages precede the first row, an InvalidOperationException from the statistics timer, unobserved exceptions when a managed networking MARS connection closes during a receive, and GetTextReader with CommandBehavior.SequentialAccess on big-endian platforms. Malformed PRELOGIN, row, and authentication responses now fail with a corrupted-stream error, and the affected connection doesn't return to the pool. Always Encrypted enclave sessions are now isolated by attestation protocol. The aligned Azure extension adds guidance to the WAM window_handle_required error. |
| 7.0.3 | September 2026 | Updated SNI to 6.0.3. Fixed SqlBulkCopy metadata access, tracing allocations, ServerCertificate validation on managed SNI, Always Encrypted enclave attestation key verification, AccessTokenCallback TNIR defaults on .NET Framework, authentication state preservation, and configurable retry assembly resolution. Conflicting SSPI and token authentication settings now throw InvalidOperationException. The aligned Azure extension fixes Entra authority parsing for Dataverse and Dynamics 365 connections. |
| 7.0.2 | June 2026 | Aligned the core driver and companion packages, hardened TDS token parsing, corrected Always Encrypted signature-verification cache handling, and fixed errors in cancellation and null-buffer GetBytes and GetChars calls. |
| 7.0.1 | April 2026 | Fixed SqlBulkCopy metadata queries for SQL Server 2016 and Azure Synapse Analytics dedicated SQL pools, corrected vector field metadata, added the missing .NET Framework System.Data.Common dependency, and added type forwarding for authentication abstractions. |
| 7.0.0 | March 2026 | General availability release. |
Important
Starting with 7.0.2, align direct references to Microsoft.Data.SqlClient, Microsoft.Data.SqlClient.Extensions.Azure, Microsoft.Data.SqlClient.Extensions.Abstractions, and Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider. Let Microsoft.Data.SqlClient.Internal.Logging resolve transitively. On .NET Framework, the assembly versions of Extensions.Azure, Extensions.Abstractions, and Internal.Logging changed from 1.0.0.0 to 7.0.0.0. Rebuild the application or add binding redirects when you update these packages.
6.1 LTS
Version 6.1.0 was released in July 2025, but was later unlisted because of critical regressions. Version 6.1.1, released in August 2025, established the supported 6.1 LTS line.
Features and changes
- Native SQL Server 2025 vector transport through
SqlVector<T>, initially for single-precision floating-point vectors. - A .NET Standard 2.0 reference asset for library compatibility. This asset isn't a runtime implementation. Executable applications must use a supported .NET or .NET Framework runtime asset.
- Opt-in packet multiplexing work for large asynchronous reads and endpoint handling for SQL database in Microsoft Fabric.
- Improved native Ahead-of-Time (AOT) compilation support.
- Reduced allocations in connection and TDS processing paths.
- Internal groundwork for the public Security Support Provider Interface (SSPI) extensibility added in 7.0.
Don't deploy version 6.1.0. Version 6.1.1 reverted the affected packet detection and replay changes.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 6.1.8 | October 2026 | Updated the minimum versions of System.Security.Cryptography.Pkcs and, on .NET 9, Microsoft.Extensions.Caching.Memory and System.Configuration.ConfigurationManager. With managed networking, a configured HostNameInCertificate must now match the server certificate. For details, see HostNameInCertificate enforcement. Interactive authentication errors with the WAM code window_handle_required now include guidance. Fixed SqlDataReader.HasRows returning false when several informational messages precede the first row, an InvalidOperationException from the statistics timer on MARS connections, and Microsoft Entra authority URLs that include an OAuth endpoint suffix, such as /oauth2/authorize, which the Dataverse endpoint returns. Always Encrypted enclave sessions are now isolated by attestation protocol. |
| 6.1.7 | September 2026 | Updated SNI to 6.0.3. Fixed ServerCertificate validation on managed SNI, Always Encrypted enclave attestation key verification, AccessTokenCallback TNIR defaults on .NET Framework, token authentication state in connection pool keys, callback-based prelogin certificate validation, and configurable retry assembly resolution. |
| 6.1.6 | June 2026 | Added opt-in Windows Web Account Manager (WAM) broker support, hardened TDS token parsing, corrected cached column master key signature failures, and fixed GetChars argument validation. |
| 6.1.5 | April 2026 | Removed unnecessary Service Principal Name (SPN) and Domain Name System (DNS) work for non-integrated authentication, made ExecuteScalar propagate server errors returned after data, and corrected vector metadata types. |
| 6.1.4 | January 2026 | Added EnableMultiSubnetFailoverByDefault. Fixed SqlDataAdapter batching failures and negative active-connection counts in pool metrics. |
| 6.1.3 | November 2025 | Added IgnoreServerProvidedFailoverPartner for Basic Availability Groups and custom ports. Fixed early EventSource metrics initialization. |
| 6.1.2 | October 2025 | Fixed early performance-counter initialization, replacement of custom authentication providers, and pool concurrency that prevented use of the configured maximum pool size. |
| 6.1.1 | August 2025 | Reverted partial-packet detection, fixup, and replay changes from 6.1.0. Corrected vector reference assemblies and SqlVector<T>.Null. |
| 6.1.0 | July 2025 | General availability release. This package was unlisted because of critical regressions. Don't use it. |
Previous release lines
The following release lines are no longer supported. Use their summaries when you plan an upgrade across multiple driver versions.
6.0
Version 6.0 reached general availability in January 2025. The final patch was 6.0.5, released in January 2026.
- Added native SQL Server JSON support through
Microsoft.Data.SqlTypes.SqlJson, including read, write, streaming, and bulk-copy paths. - Added public, strongly typed diagnostic payloads for command, connection, and transaction events.
- Added
OpenAsync(SqlConnectionOverrides, CancellationToken), includingOpenWithoutRetry. - Added
DateOnlyandTimeOnlysupport inDataTableandSqlDataRecordstructured parameters. - Added .NET 9 support.
- Dropped .NET Standard and .NET 6 runtime assets. Supported targets became .NET 8 and later versions and .NET Framework 4.6.2 and later versions.
- Restricted
EnableOptimizedParameterBindingto text commands.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 6.0.5 | January 2026 | Fixed SqlDataAdapter batch RPC null handling, added Switch.Microsoft.Data.SqlClient.EnableMultiSubnetFailoverByDefault, and updated dependencies. |
| 6.0.4 | November 2025 | Added Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartner for Basic Availability Groups that use custom TCP ports. |
| 6.0.3 | October 2025 | Prevented replacement of custom authentication providers and fixed pool concurrency that underused Max Pool Size. |
| 6.0.2 | April 2025 | Fixed possible socket-receive null failures, SqlJson reference APIs, JSON output parameters, and dependencies. |
| 6.0.1 | January 2025 | Corrected SqlClientDiagnostic reference APIs, down-level TLS warnings, and dependencies. |
| 6.0.0 | January 2025 | General availability release. This package is unlisted on NuGet, and the upstream notes don't document a reason. |
5.2
Version 5.2 reached general availability in February 2024. The final patch was 5.2.3, released in April 2025.
- Added
SqlConnection.AccessTokenCallbackfor asynchronous, pool-compatible token acquisition. - Added
SqlBatchandSqlBatchCommandon .NET 6 and later versions. - Added
SqlDiagnosticListenersupport on .NET Standard. - Added 64-bit
SqlBulkCopy.RowsCopied64. The olderRowsCopiedproperty remains a 32-bit integer. - Added
Active Directory Workload Identityauthentication. - Added .NET 8 and big-endian platform support.
- Changed
UseOneSecFloorInTimeoutCalculationDuringLoginto default totrue. - Used
NegotiateAuthenticationfor managed SSPI on .NET 7 and later versions.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 5.2.3 | April 2025 | Fixed possible socket-receive null failures and reference-assembly inconsistencies, allowed negative transient error numbers, and updated dependencies. |
| 5.2.2 | August 2024 | Fixed token timeouts, managed SNI socket connections, assembly targeting, SSPI retries, user-defined type reads, and encrypted-reader data. Updated identity packages for CVE-2024-35255. |
| 5.2.1 | May 2024 | Fixed Linux named-instance connections with ports, FireInfoMessageEventOnUserErrors, datetimeoffset(n) table-valued parameters, delayed OpenAsync, and AccessTokenCallback preservation by SqlConnection.Clone(). |
| 5.2.0 | February 2024 | General availability release. |
5.1
Version 5.1 reached general availability in January 2023. The final patch was 5.1.9, released in January 2026.
- Added .NET 6 support and dropped .NET Core 3.1.
- Added
DateOnlyandTimeOnlysupport for parameter values andGetFieldValue. - Added TLS 1.3 in .NET and native SQL Server Network Interface (SNI) paths.
- Added
ServerCertificatefor exact certificate matching withEncrypt=MandatoryandEncrypt=Strict. - Added Windows ARM64 support for .NET Framework.
- Made the
SqlConnectionEncryptOptionstring parser public. - Version 5.1.3 fixed the CVE-2024-0056 encryption downgrade path and certificate-chain validation.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 5.1.9 | January 2026 | Moved SqlStatistics timing to Environment.TickCount and updated framework-specific dependencies. |
| 5.1.8 | November 2025 | Added Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartner, fixed UTF-8 byte order mark handling in bulk copy, modernized MSAL creation, and updated dependencies. |
| 5.1.7 | April 2025 | Fixed a possible socket-receive null failure, aligned source and reference assemblies, and updated dependencies. |
| 5.1.6 | August 2024 | Fixed OpenAsync, authentication timeout, and encrypted-reader pending-data failures. Updated identity dependencies for CVE-2024-35255 and cached TokenCredential instances. |
| 5.1.5 | January 2024 | Fixed transaction cleanup before pooling and Always Encrypted date and time conversion failures. Updated IdentityModel dependencies for CVE-2024-21319. |
| 5.1.4 | January 2024 | Fixed a .NET distributed-transaction deadlock and upgraded Azure.Identity for CVE-2023-36414. |
| 5.1.3 | January 2024 | Fixed CVE-2024-0056 and certificate-chain validation. |
| 5.1.2 | October 2023 | Fixed SQL Express user instances, enclave retries, LocalDB, connection-string builder values, SqlConnectionEncryptOption configuration conversion, and OpenAsync transient faults. |
| 5.1.1 | March 2023 | Fixed Always Encrypted error reporting, redirect-mode transactions, token throttling, large-query TDS RPC failures, and GetBytesAsync null handling. |
| 5.1.0 | January 2023 | General availability release. |
5.0
Version 5.0 reached general availability in August 2022. The final patch was 5.0.2, released in March 2023.
- Added TDS 8.0 through
Encrypt=Strict. Strict mode starts TLS before the TDS login exchange and always validates the server certificate. - Changed
SqlConnectionStringBuilder.EncryptfrombooltoSqlConnectionEncryptOption. - Moved SQL Server common language runtime (CLR) types to the separately versioned
Microsoft.SqlServer.Serverpackage. - Added
Server SPNandFailover Server SPNconnection options. - Added Windows SQL Server alias support on current .NET.
- Added
SqlDataSourceEnumeratoron Windows. - Dropped .NET Framework 4.6.1.
Important
The SqlConnectionStringBuilder.Encrypt type change is binary breaking. Types removed from Microsoft.Data.SqlClient.Server also require source changes to use Microsoft.SqlServer.Server. Recompile applications and libraries, update namespaces, and check for namespace conflicts when System.Data.SqlClient remains referenced.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 5.0.2 | March 2023 | Fixed an asynchronous-read memory leak, redirect-mode TransactionScope, Always Encrypted errors, large-query TDS RPC failures, and distributed-transaction deadlocks. |
| 5.0.1 | October 2022 | Restored HostNameInCertificate on .NET Framework and fixed attention deadlocks, SqlConnectionStringBuilder.Encrypt, cancellation registration, managed SNI hangs, UTF-8 collation, and an SNI application-domain crash. |
| 5.0.0 | August 2022 | General availability release. |
4.1
Version 4.1 reached general availability in January 2022. The final patch was 4.1.1, released in September 2022.
- Added
Attestation Protocol=Nonefor Virtualization-based Security (VBS) enclaves. - Parallelized SQL Server Resolution Protocol requests on Linux and macOS when
MultiSubnetFailoveris enabled. - Fixed certificate revocation list checks during authentication.
- Fixed Microsoft Entra authentication, null
SqlBinaryand rowversion values, and UTF-8 collation behavior.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 4.1.1 | September 2022 | Fixed certificate revocation list failures, parallelized SQL Server Resolution Protocol requests for MultiSubnetFailover, and corrected Microsoft Entra authentication, rowversion, UTF-8, and SNI application-domain failures. |
| 4.1.0 | January 2022 | General availability release. |
4.0
Version 4.0 reached general availability in November 2021. The final patch was 4.0.6, released in August 2024.
- Changed the default value of
Encryptfromfalsetotrue. - Added
SqlCommand.EnableOptimizedParameterBindingfor commands with many parameters. - Added
SqlFileStreamfor Windows through the .NET Standard implementation. - Added shared LocalDB instance support in managed SNI.
- Added
GetFieldValue<T>andGetFieldValueAsync<T>forXmlReader,TextReader, andStream. - Removed the safety switch from configurable retry logic. Retry remained disabled until an application configured a provider.
- Changed Microsoft Entra authentication failures to throw
SqlExceptioninstead ofAggregateException. - Dropped .NET Core 2.1.
- Version 4.0.5 fixed the CVE-2024-0056 encryption downgrade path and certificate-chain validation.
Important
Because encryption defaults to true in 4.0 and later versions, an upgrade can expose certificate trust or server-name mismatches. Don't disable encryption to work around these errors. Install a trusted server certificate or configure certificate validation for the deployment.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 4.0.6 | August 2024 | Fixed transaction-event cleanup before pooling and ActiveDirectoryAuthenticationProvider.AcquireTokenAsync timeout handling. |
| 4.0.5 | January 2024 | Fixed CVE-2024-0056 and certificate-chain validation. |
| 4.0.4 | October 2023 | Fixed asynchronous enclave retries, LocalDB and managed SNI fallback, file versions, and connection activity correlation. |
| 4.0.3 | April 2023 | Reduced cached-account token throttling and fixed large-query TDS RPC failures. |
| 4.0.2 | September 2022 | Fixed certificate revocation list failures, parallelized SQL Server Resolution Protocol requests for MultiSubnetFailover, and corrected Microsoft Entra authentication, rowversion, UTF-8, and SNI application-domain failures. |
| 4.0.1 | January 2022 | Added SuppressInsecureTLSWarning and fixed .NET 6 Kerberos, LocalDB pipe names, and concurrent enclave queries. |
| 4.0.0 | November 2021 | General availability release. |
3.1
Version 3.1 reached general availability in March 2022. The final patch was 3.1.7, released in August 2024.
- Added
Attestation Protocol=Nonefor VBS enclaves. - Added SQL errors 42108 and 42109 to the default transient error list.
- Added Windows ARM64 support for .NET Framework in 3.1.2.
- Reduced repeated Microsoft Entra token requests through silent token acquisition in 3.1.3.
- Fixed the CVE-2024-0056 encryption downgrade path in 3.1.5.
- Fixed transaction cleanup before pooling and Microsoft Entra token timeout handling in 3.1.7.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 3.1.7 | August 2024 | Fixed transaction-event cleanup before pooling, authentication timeouts, assembly signing, and an SNI application-domain crash. |
| 3.1.6 | August 2024 | This package wasn't properly signed and was unlisted. No upstream release-note file exists. Use 3.1.7 instead. |
| 3.1.5 | January 2024 | Fixed CVE-2024-0056 and certificate-chain validation. |
| 3.1.4 | October 2023 | Fixed asynchronous enclave retries, LocalDB and managed SNI fallback, file versions, connection activity correlation, and EventSource formatting. |
| 3.1.3 | March 2023 | Reduced Microsoft Entra token throttling with AcquireTokenSilent and fixed large-query TDS RPC failures. |
| 3.1.2 | February 2023 | Added .NET Framework Windows ARM64 support and fixed retry-list thread safety, distributed-transaction deadlocks, UTF-8 collation, and stored-procedure validation. |
| 3.1.1 | August 2022 | Fixed null SqlBinary rowversion values, .NET 6 Kerberos failures, and Microsoft Entra authentication null-reference failures. |
| 3.1.0 | March 2022 | General availability release. |
3.0
Version 3.0 reached general availability in June 2021. The final patch was 3.0.1, released in September 2021.
- Added configurable retry logic for connection and command operations. In 3.0, it remained opt-in behind
Switch.Microsoft.Data.SqlClient.EnableRetryLogic. - Added EventCounters for connection and pool activity.
- Added
Active Directory Defaultauthentication throughAzure.Identity. - Added connection-scoped and command-scoped Always Encrypted key store provider registration.
- Added TCP IP address preference.
- Changed user-assigned managed identity authentication to use the client ID instead of the object ID in
User Id. - Changed SQL rowversion null values to return
DBNullinstead of an empty byte array. An AppContext switch preserved the older behavior. - Raised the minimum .NET Framework target from 4.6 to 4.6.1.
System key store providers take precedence over providers registered on a connection or command starting in 3.0. Rename a custom provider if its name conflicts with a built-in provider.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 3.0.1 | September 2021 | Fixed blocking Microsoft Entra connection opens, transaction promotion state, required encryption, retry recursion and deadlocks, and unusable connections. |
| 3.0.0 | June 2021 | General availability release. |
2.1
Version 2.1 reached general availability in November 2020. The final patch was 2.1.7, released in January 2024.
- Extended Always Encrypted to supported .NET Standard 2.0 platforms.
- Added secure enclave support on Unix for .NET Core and across .NET Standard 2.1 platforms.
- Added
Active Directory Device Code Flowand managed identity authentication. - Added customization hooks for interactive and device code authentication.
- Added sensitivity classification rank metadata.
- Added
SqlConnection.ServerProcessId. - Added the
Command Timeoutconnection option as the default for commands created by a connection. - Version 2.1.7 fixed the CVE-2024-0056 encryption downgrade path.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 2.1.7 | January 2024 | Fixed CVE-2024-0056 and certificate-chain validation. |
| 2.1.6 | April 2023 | Fixed large-query TDS RPC failures in SqlCommand.ExecuteReaderAsync, default UTF-8 collation conflicts, and attention-send deadlocks. |
| 2.1.5 | August 2022 | Added stored-procedure CommandText length validation and fixed .NET 6 Kerberos authentication and SqlTypeWorkarounds. |
| 2.1.4 | September 2021 | Ensured connections fail when encryption is required and fixed connections entering an unusable state. |
| 2.1.3 | May 2021 | Prevented transaction data corruption with open result sets and fixed a SinglePhaseCommit and TransactionEnded race. |
| 2.1.2 | March 2021 | Fixed Unix named instances, timeout wrong results, unsafe DTD processing, Kerberos SPNs, missing caching dependencies, tracing, and MARS headers. |
| 2.1.1 | December 2020 | Fixed system-assigned managed identity in Azure Functions, Unix Kerberos, and TCP keep-alive. |
| 2.1.0 | November 2020 | General availability release. |
2.0
Version 2.0 reached general availability in June 2020. The final patch was 2.0.1, released in August 2020.
- Added
Active Directory IntegratedandActive Directory Interactiveauthentication on .NET Core and .NET Standard. - Added
Active Directory Service Principalauthentication. - Added
Microsoft.Data.SqlClient.EventSourcetracing. - Added cross-platform TCP keep-alive and an opt-in managed networking implementation on Windows for testing and debugging. The managed path didn't support non-domain Windows authentication.
- Added
SqlBulkCopy.RowsCopiedand ordered bulk-copy hints. - Added
SqlConnection.Open(SqlConnectionOverrides.OpenWithoutRetry). - Added Windows ARM support through the
Microsoft.Data.SqlClient.SNI.runtimedependency. - Began validating the server certificate when a server forces encryption, including when the connection string sets
Encrypt=false. Connections can fail after this upgrade if the certificate isn't trusted or its name doesn't match the server. - Changed decimal parameter scale handling to use SQL Server-compatible rounding.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 2.0.1 | August 2020 | Added coexistence-friendly authentication configuration and fixed pooled token expiry, transient-fault handling, enclave caching, and native SNI prelogin errors. |
| 2.0.0 | June 2020 | General availability release. |
1.1
Version 1.1 reached general availability in November 2019. The final patch was 1.1.4, released in March 2021.
- Added Always Encrypted with secure enclaves on supported .NET Framework and .NET Core targets.
- Added
|DataDirectory|expansion inAttachDBFilenameon .NET Core. - Improved asynchronous reads with multipacket target-buffer caching.
- Reduced snapshot overhead in
TdsParserStateObjectandSqlDataReader. - Fixed timeout-state and Multiple Active Result Sets (MARS) header errors in later patches.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 1.1.4 | March 2021 | Corrected timeout-state wrong results and MARS header errors on .NET Framework 4.8 and later versions. |
| 1.1.3 | May 2020 | Prevented aborted transactions from enlisting pooled connections and reverted the regressive MARS header fix. |
| 1.1.2 | April 2020 | Added usernames for Active Directory Interactive authentication and fixed password persistence and MARS TDS headers. |
| 1.1.1 | February 2020 | Reverted asynchronous SNIPacket changes that caused deadlocks and corrected the SNI dependency range. |
| 1.1.0 | November 2019 | General availability release. |
1.0
Microsoft.Data.SqlClient 1.0 reached general availability in August 2019. The final patch was 1.0.19269.1, released in September 2019.
- Introduced the separately shipped
Microsoft.Data.SqlClientprovider. - Supported .NET Framework 4.6 and later versions, .NET Core 2.1 and later versions, and .NET Standard 2.0.
- Added
Active Directory Interactiveauthentication on .NET Framework. - Added
Active Directory Passwordauthentication on .NET Core. - Added data sensitivity classification metadata on
SqlDataReader. - Added SQL Server 2019 UTF-8 collation support.
- Added Always Encrypted support on .NET Core.
Releases
| Version | Released | Customer-relevant changes |
|---|---|---|
| 1.0.19269.1 | September 2019 | Restored SqlCommand.StatementCompleted, added the missing SqlConnectionStringBuilder.Authentication, and reverted an incompatible SqlAuthenticationParameters.Resource API change. |
| 1.0.19249.1 | September 2019 | Fixed large multipacket data reads on Unix. |
| 1.0.19239.1 | August 2019 | General availability release. Fixed connection reuse after transaction failures, SNI publishing, globalization-invariant handling, and bulk-copy null widening. |
For an application moving from the older provider, use Migrate from System.Data.SqlClient to Microsoft.Data.SqlClient instead of reading release notes alone.
Optional package release notes
Optional packages have their own release notes. Starting with version 7.0.2, they ship version-aligned with the core driver.
| Package | Release notes |
|---|---|
Microsoft.Data.SqlClient.Extensions.Azure |
Azure extension release notes |
Microsoft.Data.SqlClient.Extensions.Abstractions |
Extension abstractions release notes |
Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider |
Azure Key Vault Provider release notes |
Don't reference Microsoft.Data.SqlClient.Internal.Logging directly. It's an internal dependency shared by driver packages.
Evaluate an update
- Identify every driver and optional package version used directly or transitively.
- Read the release notes for every minor and major version crossed by the update.
- Check SqlClient driver support lifecycle for target framework and database compatibility.
- Update all related packages to compatible versions.
- Build and test the application's authentication, encryption, connection pooling, parameters, transactions, retries, diagnostics, and deployment output.
For installation and deployment commands, see Install, update, and deploy Microsoft.Data.SqlClient.