Repository navigation
The driver and its four companion packages are version-aligned at 8.0.0. Use matching versions of all installed family packages. The family AssemblyVersion is 8.0.0.0; .NET Framework applications upgrading from 7.x should review strong-name binding redirects. Native SNI and Microsoft.SqlServer.Server remain independently versioned.
Companion package release notes
- Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider 8.0.0
- Microsoft.Data.SqlClient.Extensions.Azure 8.0.0
- Microsoft.Data.SqlClient.Extensions.Abstractions 8.0.0
- Microsoft.Data.SqlClient.Internal.Logging 8.0.0
Changes Since 8.0.0-preview1
Changed
Breaking default change: pool waits share the connection timeout budget
What Changed:
Switch.Microsoft.Data.SqlClient.UseOverallConnectTimeoutForPoolWaitnow defaults totrue.SqlConnection.OpenandOpenAsynccarry the remainingConnect Timeoutbudget 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
falsebefore using SqlClient to restore the prior separate budgets; the switch is cached on first use.Connect Timeout=0stays 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:
SqlBulkCopyrestores fastSET 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=truealways uses catalog discovery and avoids fallback for hidden-name workloads. Explicitfalsenever 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 to4.92.0, and the applicable .NET 10 dependency floors to10.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.4to8.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
ExecuteXmlReaderAsyncandBeginExecuteXmlReaderobserving 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
NullReferenceExceptioninstead 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/OpenAsyncand 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()throwingNullReferenceExceptionorInvalidOperationExceptionwhen 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
SqlBatchcancellation errors being hidden byArgumentOutOfRangeExceptionwhen 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-connectionVector Type Support/SqlConnectionStringBuilder.VectorTypeSupportnegotiation. The default is V2: modern .NET returns native float16 vectors rather than JSON strings. Usev1for the previous float16 string contract orofffor all-vector text results. .NET Framework can read float16 as text or widenedSqlVector<float>values. Column-schemaVectorBaseTypeandVectorDimensionsidentify negotiated native metadata. Parameters and bulk copy support native base-type conversion; vector TVPs are not added. Float16 requires server support andPREVIEW_FEATURESwhile in preview. (#4501) - Opt-in pooled transaction-isolation reset through
Switch.Microsoft.Data.SqlClient.EnableTransactionIsolationLevelReset(defaultfalse). SqlClient-tracked isolation changes can reset toREAD COMMITTEDbefore 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) TimeOnlywrites for bulk-copy DataRow/DataTable inputs and variant parameters. (net10.0 only; #4604)- Authentication EventSource diagnostics under keyword
AuthenticationTrace(0x2000); use0x2002to 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.0reference/unsupported-platform assets do not restore runtime support for .NET 8 or .NET 9. (#4779) - Breaking networking defaults: omitted
MultiSubnetFailoverdefaults totruefor eligible TCP connections; TNIR defaults tofalseon .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 theirAzure.Identitynamespace. 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.CanCreateParametersetter (net462 only), and restore the obsoleteSqlParameterCollection.Add(string, object)overload andTriggerAction(net462 only).SqlParameterCollection.RemoveAt(int)now throwsArgumentOutOfRangeExceptionfor invalid indexes; characterSqlMetaDataconstruction 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/net462andlib/net10.0, not duplicated RID-specific managed directories. Consumer builds warn withSQLCLIENT001for 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
SqlAuthenticationInitializermove 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 bothEnableAppConfigandEnableAzureExtensionDiscoveryat 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/smallmoneyidentity insql_variantvalues. (#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
SqlExceptionserialization retainsErrorsand 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 2005are removed, including legacy date/time and large-UDT projections. Remove that setting and consume current SQL Server type representations. (#4881)
Contributors
We thank the following public contributors for their contributions across the preview and this delta:
Target Platform Support
- .NET Framework 4.6.2+ on Windows.
- .NET 10.0+ on Windows, Linux, and macOS.
netstandard2.0assets are for reference/unsupported-platform scenarios only.
Dependencies
Direct dependency minimums are shown below. Family and native SNI dependency ranges are [8.0.0, 9.0.0).
The table uses the official pipeline's default of not building Microsoft.SqlServer.Server, which selects SqlServerPublishedVersion=1.0.0 and dependency range [1.0.0, 2.0.0). Building Server instead selects its independent 1.1.0-preview1 version with a build suffix. No separate Server release is included in this milestone.
| Dependency | net462 | net10.0 | netstandard2.0 |
|---|---|---|---|
| Microsoft.Bcl.Cryptography | 10.0.15 | 10.0.15 | 10.0.15 |
| Microsoft.Bcl.TimeProvider | 10.0.15 | - | 10.0.15 |
| Microsoft.Data.SqlClient.Extensions.Abstractions | 8.0.0 | 8.0.0 | 8.0.0 |
| Microsoft.Data.SqlClient.Internal.Logging | 8.0.0 | 8.0.0 | 8.0.0 |
| Microsoft.Data.SqlClient.SNI | 8.0.0 | - | - |
| Microsoft.Data.SqlClient.SNI.runtime | - | 8.0.0 | 8.0.0 |
| Microsoft.Extensions.Caching.Memory | 10.0.15 | 10.0.15 | 10.0.15 |
| Microsoft.SqlServer.Server | - | 1.0.0 | 1.0.0 |
| System.Buffers | 4.6.1 | - | - |
| System.Configuration.ConfigurationManager | - | 10.0.15 | 10.0.15 |
| System.Data.Common | 4.3.0 | - | - |
| System.Diagnostics.DiagnosticSource | 10.0.15 | - | - |
| System.Memory | 4.6.3 | - | - |
| System.Runtime.InteropServices.RuntimeInformation | 4.3.0 | - | - |
| System.Security.Cryptography.Pkcs | 10.0.15 | 10.0.15 | 10.0.15 |
| System.Text.Json | 10.0.15 | - | 10.0.15 |
| System.Threading.Channels | 10.0.15 | - | 10.0.15 |
| System.Threading.RateLimiting | 10.0.15 | 10.0.15 | 10.0.15 |
| System.ValueTuple | 4.6.2 | - | - |