如何在 SQL Server Profiler 中查找客户端进程 ID?
我正在使用 SQL Server Profiler 查看我的数据库活动。其中,我想找出哪个客户端进程 ID 与哪台机器关联(从应用程序运行的位置)。 因为我的应用程序的多个实例正在不同的计算机上运行。所以我想认出他们。 那么有什么办法可以查到ClientProcessID呢?
I am using SQL Server Profiler to view my database activities. In that, I want to find out which Client Process ID is associate with which machine (From where application is running).
because there are multiple instance of my application are running on different machines. So I want to identify them.
So is there any way to find out ClientProcessID?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在探查器中使用主机名,它与 T-SQL 中的 host_name() 函数相同,
在查询窗口中运行它
在探查器中它是主机名,您必须选中“显示所有列”才能看到它
you can use hostname in profiler, it is the same as the host_name() function in T-SQL
run this in a query window
In profiler it is hostname, you have to check "show all columns" to see it