SQL Nexus
http://sqlnexus.codeplex.com/
PSSDIAG Data Collection Utility
微软对PSSDIAG的介绍如下:
PSSDIAGis a general purpose diagnostic collection utility that Microsoft
Product Support Services uses to collect various logs and data files.
PSSDIAG can natively collect Performance Monitor logs, SQL Profiler
traces, SQL Server blocking script output, Windows Event Logs, and
SQLDIAG output.
PSSDIAG有两个版本,一个版本支持sql server 7.0和sql server
2000,现在最新的版本支持sql server 2005与sql server 2008,但是不知道对sql server
2012的支持如何。本文以sql server 2008
R2为例进行介绍。在安装完PSSDIAG以后,我们打开DiagConfig.exe这个文件进行配置我们需要抓取的trace。可以配置的项很多,但
是默认已经帮我们选择了许多,在我们不是很清楚如何配置的时候,我们可以按默认配置来抓取trace。PSSDIAG的配置界面如下图所示:
在最底下我们可以看到如下描述:
Selectthe diagnostics you want to collect and click the Save button to save
your configuration. During the Save process, a .CAB file is created thatcan then be used for collecting diagnostic data after extracting the
contents. This package will contain the configuration file you’ve just
created as well as the scripts, utilities, and other files necessary to
collect the diagnostic data that you need to modify.
这就是说在我们配置完需要抓取的内容以后,我们点击左上角的SAVE按钮,此时会询问我们配置文件保存在哪里,如下图所示:
我
们可以看到,配置文件被保存在了build文件下,而又一个cab文件被保存在了customer文件夹下面。这是因为我们如果让客户抓取trace,我
们不需要将整个Pssdiag安装文件发给客户,只需要将pssd.cab这个文件法送给客户,让客户自己解压,然后运行其中的pssdiag.cmd就
可以了。之星pssdiag.cmd的界面如下图所示:
在执行完上面批处理命令以后,我们在Pssdiag\Customer\pssd目录下会看到一个output文件夹,我们只需要让客户将这个output文件夹打包发送给我们就可以了。output文件夹中主要文件有如下图所示:
sqldiag.blg使用performance monitor打开,.trc文件使用sql profiler打开。