The Application Name property on a SQL Server connection string adds an application name to the connection to SQL. This can be very useful if running SQL Profiler with multiple applications connecting to the same database as it allows you to identify what application a query originated from.
For example, if two resources api and worker both use the same database, the connection string in api would be
Related to https://github.com/dotnet/aspire/issues/2111. To make this work though we probably need an overload WithReference for the SQL server resource for these additional operations.
The
Application Name
property on a SQL Server connection string adds an application name to the connection to SQL. This can be very useful if running SQL Profiler with multiple applications connecting to the same database as it allows you to identify what application a query originated from.For example, if two resources
api
andworker
both use the same database, the connection string inapi
would beBut in
worker
, the connection string would be: