如何在 SQL Server Profiler 中查找客户端进程 ID?

发布于 2024-11-25 13:22:51 字数 145 浏览 3 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天涯沦落人 2024-12-02 13:22:51

您可以在探查器中使用主机名,它与 T-SQL 中的 host_name() 函数相同,

在查询窗口中运行它

SELECT 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

SELECT host_name()

In profiler it is hostname, you have to check "show all columns" to see it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文