Using application name in sql server connection string

This helps with identifying or tracing which application is currently connected to sql server. This can be really helpful when trying to identify high CPU or memory usage issues. 

An example of what it looks like is shown below:-

Example: connectionString="Server=mySqlServer;Initial Catalog=myDatabase;User id=aUser;Password=aPassword;Application Name=My Application;"


For ODBC related connection string 

Driver={ODBC Driver 13 for SQL Server};server=localhost;database=WideWorldImporters;trusted_connection=Yes;APP=My Application;


Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type