在Sql Server Profiler中更改应用程序名称 [英] Change Application Name in Sql Server Profiler
本文介绍了在Sql Server Profiler中更改应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在SQL Server Profiler中对.Net应用程序进行性能分析时,默认的应用程序名称取自数据提供程序。如何将其更改为自己的应用程序名称?
When profiling a .Net Application in SQL Server Profiler the default Application Name is taken from the Data Provider. How can I change this to my own Application Name?
推荐答案
只需添加 Application Name = My Application;
到连接字符串
示例:
connectionString = Server = mySqlServer; Initial Catalog = myDatabase; User id = aUser; Password = aPassword; Application Name = My Application;
您也可以使用 App = My应用程序
这篇关于在Sql Server Profiler中更改应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文