Repository navigation
Update dependency Microsoft.Data.SqlClient to v8 - #6192
Open
dependencyupdates[bot] wants to merge 1 commit into
Open
dependencyupdates[bot] wants to merge 1 commit into
dependencyupdates[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.1.2→8.0.0Release Notes
dotnet/sqlclient (Microsoft.Data.SqlClient)
v8.0.0This first 8.0 preview includes changes since the
release/7.1branch point,92f220956b07328054701a869f452cade51830c1(2026-09-15), through
b87ca6e7643611ddc3273324de346d09e8ff2c43.Changes already shipped in 7.1.1 are identified below because the branch-cut baseline
predates that release.
The driver and its four companion packages use package version
8.0.0-preview1.The family
AssemblyVersionchanges from7.0.0.0to8.0.0.0;.NET Framework applications should review strong-name binding redirects when upgrading.
Native SNI and
Microsoft.SqlServer.Serverremain independently versioned.Added
Vector float16 support and per-connection version negotiation
What Changed:
vector(N, float16), including reader values, parameters,output parameters, column schema, and bulk copy. On modern .NET, use
SqlVector<Half>;the existing
SqlVector<float>API remains supported.(#4501)
Vector Type Supportconnection-string keyword andSqlConnectionStringBuilder.VectorTypeSupport, of typeSqlVectorTypeSupport.Values are
Off,V1, andV2; the default isV2.Who Benefits:
while choosing the result-type contract independently for each connection.
Impact:
SqlVector<Half>values for float16 columns instead of JSON strings. SetVector Type Support=v1to preserve float16 JSON-string results, oroffto receiveall vector columns as text. Different settings use separate connection pools.
System.Half. Float16 columns remain available as JSON stringsor through
GetSqlVector<float>, which widens their elements exactly. Prefer the latterwhen reading many values, to avoid the additional JSON serialization.
GetColumnSchema()exposesVectorBaseTypeandVectorDimensionsthrough the columnindexer when native vector metadata is negotiated.
inputs. Typed vectors are not automatically serialized for text destinations; supply
JSON strings or an explicit SQL cast instead. Vector TVPs are not added by this change.
PREVIEW_FEATURESwhile the serverfeature is in preview. See the float16 sample.
Opt-in reset of pooled transaction isolation levels
What Changed:
Switch.Microsoft.Data.SqlClient.EnableTransactionIsolationLevelReset, defaultfalse. When enabled, a SqlClient-tracked isolation-level change is reset toREAD COMMITTEDbefore pooled reuse when no existing enlistment or active delegatedtransaction root remains.
(#96,
#4330)
Who Benefits:
pooled connection.
Impact:
uses the remaining open-timeout budget. Known Azure Synapse dedicated SQL pool endpoints
are excluded; the default preserves existing behavior.
SET TRANSACTION ISOLATION LEVELalone does not mark the connection forthis reset. The switch is not general cleanup for arbitrary T-SQL session changes.
Additional TimeOnly write paths (net10.0 only)
What Changed:
TimeOnlysupport forSqlBulkCopyDataRow/DataTable sources andSqlParametervalues with
SqlDbType.Variant, writing SQLtimevalues.(#4604)
Who Benefits:
Impact:
TimeSpan. This does not addTimeOnlyto .NET Framework.
Authentication diagnostics
What Changed:
acquisition events to
Microsoft.Data.SqlClient.EventSourceusing the newAuthenticationTracekeyword (0x2000).(#1846,
#4872)
Who Benefits:
custom provider or logging callback.
Impact:
Collect authentication events with
0x2000, or authentication plus ordinary trace with0x2002. On modern .NET:On .NET Framework, use ETW or an in-process
EventListener. PII logging remains disabledfor extension-owned requests. Correlation is best effort; some Azure.Identity events
have an empty connection ID and can originate from application-owned credentials.
Treat captures as sensitive operational data.
See the Azure extension notes for limitations
and the logging sample.
Changed
Breaking change: minimum modern runtime is .NET 10
What Changed:
net8.0andnet9.0driver implementation targets withnet10.0..NET Framework 4.6.2 support is retained.
(#4779)
Who Benefits:
Impact:
Retained
netstandard2.0reference/unsupported-platform assets do not extend driverruntime support to .NET 8 or .NET 9.
Breaking change: TCP MultiSubnetFailover is enabled by default
What Changed:
MultiSubnetFailovernow defaults totruefor TCP connections.
TransparentNetworkIPResolutiondefaults tofalseon.NET Framework.
(#4876,
#4927)
Who Benefits:
without needing an explicit opt-in.
Impact:
protocols, LocalDB, database mirroring partners,
admin:/via:, and unprefixed localservers using native SNI. Explicit
truestill fails with unsupported protocols orfailover partners. MSF retains its 64-address limit.
Named Pipes fallback. Use
np:orMultiSubnetFailover=falsewhen needed.IPAddressPreferenceand TNIR are ignored. The builder reports thekeyword default, not the routing decision for a particular connection.
Switch.Microsoft.Data.SqlClient.EnableMultiSubnetFailoverByDefault=false.On .NET Framework, also set
Switch.Microsoft.Data.SqlClient.DisableTNIRByDefaultInConnectionString=falseto restore the previous TNIR default. Set switches before using SqlClient.
See networking migration guidance.
Breaking change: Azure Attestation requires the Azure extension
What Changed:
driver to
Microsoft.Data.SqlClient.Extensions.Azure.(#4017,
#4790)
Who Benefits:
Impact:
Attestation Protocol=AASmust explicitly reference the matchingAzure extension. Without it, enclave session setup throws
InvalidOperationException.namespaces are unchanged. Remove direct Azure.Identity references older than 1.21.0,
or upgrade to 1.21.0 or later; Azure.Identity.Broker users need 1.6.0 or later.
(#4749)
Breaking changes: reference API and argument validation corrections
What Changed:
the nonexistent
SqlBatchCommand.CanCreateParametersetter on .NET Framework.(#4832,
#4890)
SqlParameterCollection.RemoveAt(int)throwsArgumentOutOfRangeException, ratherthan
IndexOutOfRangeException, for an invalid index; indexer behavior is unchanged.(#4874)
SqlMetaDataconstruction in globalization-invariant mode requires anoverload with an explicit LCID (net10.0 only).
(#4457)
Who Benefits:
Impact:
data-classification types, or assigned the nonexistent setter. Update exception
handling for
RemoveAt(int).localeorlocaleIdfor character metadata in invariant mode;this does not add general globalization-invariant connection support.
Package layout and family-version validation
lib/net462andlib/net10.0, withoutduplicated RID-specific managed DLLs. Update custom scripts copying from
runtimes/<rid>/lib/<tfm>/Microsoft.Data.SqlClient.dll. Native SNI remains separate.(#4673)
SQLCLIENT001for mismatched installed family packageversions, including preview suffixes. Use matching driver and companion versions.
Native SNI and
Microsoft.SqlServer.Serverare excluded; settingSqlClientEnforceFamilyVersions=falsedisables the check.(#4815)
was also backported to 7.1; it is not unique to 8.0.
(#4710)
Windows connection pool identity isolation (Windows only)
sessions even when their local SID is identical. Reusing tokens from the same logon
session preserves reuse; distinct sessions can increase pool counts.
(#4814)
Trimming and authentication configuration
Authentication registration/bootstrap now lives in Abstractions, allowing
SqlAuthenticationProvider.GetProvider/SetProviderto use the shared registry withoutloading the driver through reflection.
SqlAuthenticationInitializeralso lives inAbstractions, with a type forward preserving existing references.
Abstractions adds a trim/AOT-analyzed
net10.0asset.(#4821)
Switch.Microsoft.Data.SqlClient.EnableAppConfigcontrols authentication configurationon both .NET Framework and modern .NET. The driver's separate retry-configuration and
switch-override readers use this switch on modern .NET only; they remain unchanged on
.NET Framework.
(#4697,
#4821)
Added
Switch.Microsoft.Data.SqlClient.EnableAzureExtensionDiscoveryfor reflectiveauthentication-provider discovery. Both authentication switches default to
trueand cache their first value. Explicit provider registration remains available when
discovery is disabled. Authentication discovery does not control the driver's separate
Azure Attestation loader.
For explicit registration in trimmed/Native AOT applications, disable both
reflective paths at publish time, then explicitly construct/register a provider for
every required method before opening connections. Runtime switch values alone cannot
remove code during publication.
Trimmed JIT applications can retain enabled reflective paths if they preserve the
configuration infrastructure, handlers, provider/initializer constructors, and Azure
discovery contracts. Enabling a switch does not root these members. Enabled paths
report trimming warnings and, for Native AOT, dynamic-code warnings.
Source-generated JSON serialization replaces reflection-based calls for vector
conversions and enclave attestation, including the asynchronous HGS request path,
reducing trimming and dynamic-code warnings (net10.0 only). JSON representations
remain unchanged.
(#4683,
#4801)
Reduced trimming/AOT warnings in diagnostics, schema metadata, server discovery, and
native interop (net10.0 only). These are incremental improvements, not complete
Native AOT support.
(#4684,
#4688,
#4703)
Authentication section handlers are public in Abstractions; existing driver-qualified
app.config declarations remain supported. Configured providers/initializers take
precedence over application registrations, which take precedence over Azure defaults.
Failed explicit configuration does not silently select an earlier/default provider;
failures are traced, and explicit successful application registration can recover a
failed method. Check
SetProvider's return value and trace diagnostics when registering.(#4816,
#4860,
#4821)
Performance and sync/async pathways
encryption-key lookups. Calls to key-store providers to decrypt column encryption keys
remain serialized.
(#4256)
SqlBulkCopysetup, including metadata retrieval and connectionrecovery, to native async/await. The per-row asynchronous copy loop is unchanged.
(#4687)
attestation HTTP requests and retry delays. This is groundwork, not end-to-end
nonblocking Always Encrypted command execution: the new operations are not yet wired
into the command execution path, and driver key-store resolution remains synchronous
for both sync and async commands.
(#4541,
#4886)
Other changes
UseCompatibilityAsyncBehaviourandUseCompatibilityProcessSnivalues throughbits
0x2and0x4, respectively. These report configuration before compatibilityoverrides, not effective behavior; async defaults are unchanged.
(#4911)
without changing recovery behavior.
(#4130)
InfoMessagedelivery andtrailing errors.
Read()/ReadAsync()ending a result does not establish batch success: with defaultbehavior, advance through
NextResult()/NextResultAsync()untilfalse, includingafter empty results. Cleanup still suppresses pending nonfatal errors;
SingleRowand
SingleResultretain their discard semantics. Reader runtime behavior is unchanged.(#4723,
#4729)
Prepareincompatibility with optimized parameter binding andSqlBatchcommand-behavior exceptions.
(#4726,
#4878)
direct dependency floors are listed below and in the companion notes.
(#4848,
#4880)
Microsoft.Data.SqlClient.SNIandMicrosoft.Data.SqlClient.SNI.runtimefrom 7.1.0 to 8.0.0-preview1.26309.4 (Windows native SNI only).
(#5011)
Fixed
a parsing error (
InvalidOperationException) duringOpen/OpenAsync, rather thanincidental
IndexOutOfRangeExceptionfailures.(#4902)
corrupted-stream parsing error and invalidate the connection, rather than causing
null-reference failures or falling back to unrelated result metadata. The parsing
error is an
InvalidOperationException, not aSqlException.(#4941)
HostNameInCertificateas the sole expected certificatehostname, rather than accepting a match only to the destination (net10.0, managed SNI
only). Certificate-chain and
ServerCertificatechecks are unchanged.(#4905)
immediately despite another reachable address; unused sockets are disposed
(net10.0, managed SNI only).
(#4929)
exception during disposal (net10.0, managed SNI only).
(#4680)
HasRowsreturningfalsewhen multiple informational messages precede rows.(#4773)
UTF-16LE when creating the XML reader.
(#4757)
nvarchartext fromGetTextReader()withSequentialAccessonbig-endian platforms; little-endian behavior is unchanged (big-endian only).
(#4945)
SqlBulkCopylosingmoney/smallmoneytype identity insql_variantvalues.(#4727)
after the error aborted that transaction.
(#4728)
ReadCommittedisolation levels when pooled connections reattach to thesame ambient transaction with a pending reset. This unconditional correctness fix can
add a round trip and is separate from the opt-in reset switch.
(#4335)
creation, or background replenishment, preserving transaction-affine reuse and avoiding
unintended transaction promotion. Explicit clear/shutdown semantics are unchanged.
(#4755,
#4754)
(#4829)
AssemblyLoadContext, rather thanthe default context (net10.0 only). Collectible contexts using managed SNI can unload;
this does not promise native-SNI unloadability.
(#4588)
(net10.0 on Linux/macOS).
(#4700)
drift when the default wait-handle pool reclaims abandoned connections. Concurrent use
of a connection is still unsupported.
(#4875,
#4725)
SqlExceptionserialization preservesErrorsand derived errorproperties such as
Number, addressing .NET Framework remoting scenarios. Formatterserialization remains obsolete on modern .NET; this is not guidance to use
BinaryFormatteror deserialize untrusted data.(#1940,
#4622)
SqlParameterCollection.Add(string, object)and exposedMicrosoft.Data.SqlClient.Server.TriggerActionin the reference assembly (net462 only).The former remains obsolete; prefer
AddWithValueor explicitly typed parameters.(#4832)
preserving the MSAL error code and inner exception (Windows only, Azure extension).
(#4858)
Included in the branch-cut delta, already shipped in 7.1.1
(#4721)
(#4734)
to the retired pool.
(#4718)
These are retained because the requested baseline predates 7.1.1;
they are not new fixes for applications already using that release.
Removed
Breaking change: SQL Server 2005 compatibility
What Changed:
Type System Version=SQL Server 2005,including its date/time-as-string and large-UDT-as-binary compatibility projections.
(#4881)
Impact:
that depended on its projections to consume current date/time and UDT representations.
Companion packages
Configuration
📅 Schedule: (UTC)
🚦 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.
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