You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Area\DocumentationUse this for issues that requires changes in public documentations/samples.Up-for-Grabs 🙌Issues that are ready to be picked up for anyone interested. Please self-assign and remove the label
I'd like to take this one — please assign it to me.
The drift has widened since the OP: the page (last touched 2026-08) documents ~11 switches, while current main's LocalAppContextSwitches.cs carries 16+. Missing at least:
UseLegacyIdleTimeoutBehavior (default true) — gates whether Connection Idle Timeout (Add configurable idle connection timeout (ADO #39970) #4295, 7.1.0-preview2) is enforced at all; with the switch at its default the keyword parses but changes nothing.
UseConnectionPoolV2 (default false) — selects ChannelDbConnectionPool over the v1 pool.
Plan: a PR against MicrosoftDocs/sql-docs adding the missing sections in the page's existing format (defaults and semantics taken from the source), plus one cross-cutting note the page currently doesn't state anywhere: switch values are cached in statics on first read, so setting a switch after the first use of any SqlClient type is a silent no-op — we verified that empirically while validating #4295 (details in the #3667 thread).
PR is up: MicrosoftDocs/sql-docs#10381 — adds the five missing switches (sections in the page's existing format, defaults and introduction versions verified against LocalAppContextSwitches.cs and the release tags) plus a cross-cutting note that switch values are latched on first read.
Two entries from the code-side inventory turned out not to belong on the page, for anyone auditing this later: UseMinimumLoginTimeout is a property name whose switch string is the already-documented UseOneSecFloorInTimeoutCalculationDuringLogin, and GlobalizationInvariantMode reads the runtime's System.Globalization.Invariant switch rather than a SqlClient one.
Not applicable (documentation task, no runtime repro required)
Area
Area\Documentation
Duplicates
None found
Regression
Not applicable
Analysis
This is a documentation-accuracy task: the public AppContext Switches doc page (learn.microsoft.com / MicrosoftDocs/sql-docs) lists switches that no longer match LocalAppContextSwitches.cs in main. Follow-up comments from @federico-paganini confirm the drift widened further (missing UseLegacyIdleTimeoutBehavior, UseConnectionPoolV2, LegacyVarTimeZeroScaleBehaviour, UseLegacyFailoverAlternationOnLoginSqlErrors, UseOverallConnectTimeoutForPoolWait), all of which are confirmed present in the current source (LocalAppContextSwitches.cs). A docs PR (MicrosoftDocs/sql-docs#10381) has already been opened to add the missing entries plus a note that switch values latch on first read. Severity: P3 (docs-only, no functional/runtime impact).
Confirm the two exclusions noted by the contributor (UseMinimumLoginTimeout is just an alias string for UseOneSecFloorInTimeoutCalculationDuringLogin; GlobalizationInvariantMode is a runtime switch, not SqlClient's) are correctly reflected (i.e., NOT added) in the docs PR.
No label changes made for this on-demand /triage run.
Note: This triage summary is auto-generated by an AI agent. The analysis and suggestions above have not been verified by a human maintainer. Please treat as preliminary guidance only.
Area\DocumentationUse this for issues that requires changes in public documentations/samples.Up-for-Grabs 🙌Issues that are ready to be picked up for anyone interested. Please self-assign and remove the label
Activity
federico-paganini commentedon Aug 24, 2026
I'd like to take this one — please assign it to me.
The drift has widened since the OP: the page (last touched 2026-08) documents ~11 switches, while current
main'sLocalAppContextSwitches.cscarries 16+. Missing at least:UseLegacyIdleTimeoutBehavior(defaulttrue) — gates whetherConnection Idle Timeout(Add configurable idle connection timeout (ADO #39970) #4295, 7.1.0-preview2) is enforced at all; with the switch at its default the keyword parses but changes nothing.UseConnectionPoolV2(defaultfalse) — selectsChannelDbConnectionPoolover the v1 pool.LegacyVarTimeZeroScaleBehaviour(defaulttrue)UseLegacyFailoverAlternationOnLoginSqlErrors(defaultfalse)UseOverallConnectTimeoutForPoolWait(defaultfalse)Plan: a PR against
MicrosoftDocs/sql-docsadding the missing sections in the page's existing format (defaults and semantics taken from the source), plus one cross-cutting note the page currently doesn't state anywhere: switch values are cached in statics on first read, so setting a switch after the first use of any SqlClient type is a silent no-op — we verified that empirically while validating #4295 (details in the #3667 thread).federico-paganini commentedon Aug 24, 2026
PR is up: MicrosoftDocs/sql-docs#10381 — adds the five missing switches (sections in the page's existing format, defaults and introduction versions verified against
LocalAppContextSwitches.csand the release tags) plus a cross-cutting note that switch values are latched on first read.Two entries from the code-side inventory turned out not to belong on the page, for anyone auditing this later:
UseMinimumLoginTimeoutis a property name whose switch string is the already-documentedUseOneSecFloorInTimeoutCalculationDuringLogin, andGlobalizationInvariantModereads the runtime'sSystem.Globalization.Invariantswitch rather than a SqlClient one.priyankatiwari08 commentedon Sep 17, 2026
/triage
github-actions commentedon Sep 17, 2026
🔍 Triage Summary (on-demand re-triage)
Area\DocumentationAnalysis
This is a documentation-accuracy task: the public AppContext Switches doc page (learn.microsoft.com / MicrosoftDocs/sql-docs) lists switches that no longer match
LocalAppContextSwitches.csinmain. Follow-up comments from@federico-paganiniconfirm the drift widened further (missingUseLegacyIdleTimeoutBehavior,UseConnectionPoolV2,LegacyVarTimeZeroScaleBehaviour,UseLegacyFailoverAlternationOnLoginSqlErrors,UseOverallConnectTimeoutForPoolWait), all of which are confirmed present in the current source (LocalAppContextSwitches.cs). A docs PR (MicrosoftDocs/sql-docs#10381) has already been opened to add the missing entries plus a note that switch values latch on first read. Severity: P3 (docs-only, no functional/runtime impact).Next Steps
MicrosoftDocs/sql-docsrepo, review and merge Add five missing SqlClient AppContext switches and a switch-latching note MicrosoftDocs/sql-docs#10381 rather than assigning a coding agent here.UseMinimumLoginTimeoutis just an alias string forUseOneSecFloorInTimeoutCalculationDuringLogin;GlobalizationInvariantModeis a runtime switch, not SqlClient's) are correctly reflected (i.e., NOT added) in the docs PR./triagerun.