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
{{ message }}
Repository navigation
SQL Server: Introduce EF and its version into the connection string's Application Name #35730
In order to get information about EF usage, we'll consider injecting EF information into the Application Name of the connection string passed to SqlClient. This isn't ideal - we've discussed the possibility of a separate API point in SqlClient to allow EF (and similar layers) to add "user-agent" information.
We've been discussing internally on this, and most likely will come up with a new API for the same, to prevent inconsistent usage of Application Name from exploiting telemetry data.
We're drafting out API structure and will share details soon for review.
changed the title [-]SQL Server: Consider introducing EF and its version into the connection string's Application Name[/-][+]SQL Server: Introduce EF and its version into the connection string's Application Name[/+]on Aug 14, 2025
@roji
My edge case is described in the docs—transaction in ef and non-ef code.
I would rather not set the application name to anything explicitly, as the connection string is in the env and reused across several apps. Is there a way to disable this functionality? I want my connection string used as-is.
Activity
cheenamalhotra commentedon Mar 5, 2025
We've been discussing internally on this, and most likely will come up with a new API for the same, to prevent inconsistent usage of Application Name from exploiting telemetry data.
We're drafting out API structure and will share details soon for review.
roji commentedon Jun 27, 2025
SqlClient-side user agent PRs: dotnet/SqlClient#3451, dotnet/SqlClient#3489
Inject Application Name to SQL Server connection string when not set
Inject Application Name to SQL Server connection string when not set
Inject Application Name to SQL Server connection string when not set
Inject Application Name to SQL Server connection string when not set
Inject Application Name to SQL Server connection string when not set (#…
[-]SQL Server: Consider introducing EF and its version into the connection string's Application Name[/-][+]SQL Server: Introduce EF and its version into the connection string's Application Name[/+]roji commentedon Aug 14, 2025
Opened #36571 to track switching to the upcoming new SqlClient user-agent mechanism, replacing this.
roji commentedon Oct 9, 2025
Note breaking aspect in #36911.
mdzieg commentedon Jun 5, 2026
@roji
My edge case is described in the docs—transaction in ef and non-ef code.
I would rather not set the application name to anything explicitly, as the connection string is in the env and reused across several apps. Is there a way to disable this functionality? I want my connection string used as-is.