sql-server-2008 - SQL Server 探查器 : Templates not showing/missing

标签 sql-server-2008

当我启动 SQL Server Profiler 并单击“运行”时,它显示“必须至少选择一个事件”。我发现这是由于模板为“空白”(并且没有其他选项),并且我确信这里应该有一组默认值。

有人知道为什么他们会消失吗?以及如何让他们回来?

正在运行 Sql Server 2008。

谢谢

最佳答案

我已经设法解决了这个问题,我按照此链接的建议解决了它:

http://www.mattbutton.com/2011/06/01/sql-profiler-templates-missing/

以下内容来自链接:

If you are connecting to a SQL server with the SQL profiler and none of your templates are showing up, compare the versions of the SQL profiler you are running and the version of SQL server that you’re connecting to; there is likely a version mismatch.

If this is the case, what’s likely happening here is that you’re connecting to a SQL 10.50 instance with a SQL 10.0 profiler and the profile templates for 10.50 aren’t present.

In the case of the profiler from SQL 2008 connecting to a SQL 2008 R2 instance, copy your 100 profile templates folder (default install is at C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Profiler\Templates\Microsoft SQL Server\100) into a new folder in the same location with the name “1050″ i.e. C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Profiler\Templates\Microsoft SQL Server\1050.

Then try to reconnect, and you’ll have access to the profile templates and everything will work fine.

关于sql-server-2008 - SQL Server 探查器 : Templates not showing/missing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8507497/

相关文章:

sql-server-2008 - 为什么这段 SQL 代码不会产生错误?

sql - 如何从 SQL 表中获取从现在开始的 30 天

列名包含 & 的 SQL 查询

sql - 返回行集并在 SQL Server 中的 "IN"子句中设置变量

c# - .Net Framework 需要在服务器 2008 中安装 MDAC

sql-server-2008 - 如何从数字列表中选择随机数

sql-server-2008 - 在 SQL Server 中远程调用表值函数的解决方法有更多问题

sql - 在SQL Server中将row_number()转换为int

sql - SQL Server 2008中的计数(不同的([值))OVER(分区依据)

SQL - 空白默认命名空间