简体   繁体   English

SQL Server 2008探查器

[英]SQL Server 2008 Profiler

How can I Filter only my calls to Shared SQL Server using a shared login account when debugging? 调试时,如何仅使用共享登录帐户过滤对共享SQL Server的调用?

I am using SQL Profiler and was curious if anybody knows the Column Filters I can use to focus only to my calls. 我正在使用SQL事件探查器,并且好奇是否有人知道我只能用来关注我的呼叫的列过滤器。

I have the LoginName set to the Account that multiple users are using and that still does not filter enough. 我已将LoginName设置为多个用户正在使用的帐户,但仍无法充分过滤。

You can use the SPID column. 您可以使用SPID列。

Find out what SPID you are using (if profiling from SSMS, it is in the status bar) and filter by it. 找出您正在使用的SPID(如果从SSMS进行分析,则在状态栏中)并按其进行过滤。

Another option is to include an application name (possibly with the specific machine name) in the connection string and filter by it. 另一种选择是在连接字符串中包含一个应用程序名称(可能带有特定的计算机名称)并按其过滤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM