SQL Server Profiler - 如何过滤跟踪以仅显示来自一个数据库的事件? [英] SQL Server Profiler - How to filter trace to only display events from one database?

查看:63
本文介绍了SQL Server Profiler - 如何过滤跟踪以仅显示来自一个数据库的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将 SQL Server Profiler 跟踪限制为特定数据库?我看不到如何过滤跟踪以看不到我连接到的实例上所有数据库的事件.

How do I limit a SQL Server Profiler trace to a specific database? I can't see how to filter the trace to not see events for all databases on the instance I connect to.

推荐答案

在跟踪属性 > 事件选择选项卡下 > 选择显示所有列.现在在列过滤器下,您应该看到数据库名称.为 Like 部分输入数据库名称,您应该只看到该数据库的跟踪.

Under Trace properties > Events Selection tab > select show all columns. Now under column filters, you should see the database name. Enter the database name for the Like section and you should see traces only for that database.

这篇关于SQL Server Profiler - 如何过滤跟踪以仅显示来自一个数据库的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆