当我使用 sp_BlitzFirst 跟踪等待时,我得到以下详细信息:
<?ClickToSeeDetails --
For 20 seconds over the last 5 seconds, SQL Server was waiting on this
particular bottleneck.
-- ?>
Run Code Online (Sandbox Code Playgroud)
应该是“过去 5 秒内 20 次”吗?发现是 CLR_SEMAPHORE。
如何将结果保存sp_BlitzWho
到表中?与其他 proc 相比,保存到表的选项不存在sp_Blitz
。
我使用sp_WhoIsActive和sp_BlitzFirst(ExpertMode
参数设置为 1)来实时了解 SQL Server 上发生的情况。我觉得这是对的升级sp_who
,sp_who2
等等......
任何人都可以解释一下,如果两者之间有任何区别。它们似乎显示相同的内容,尽管列的设置略有不同。此外,BlitzFirst 在其输出中显示了一些其他信息作为单独的输出表
在这个视频中,布伦特展示了他的分类过程,他同时使用了这两种方法sp_WhoIsActive
,sp_BlitzFirst
这让我觉得肯定有一些不同,但除非我错过了视频中的某些内容,否则我不明白为什么sp_WhoIsActive
需要
我刚刚从 BrentOzar.com 下载了 FirstResponderKit 的最新版本 (20190128),并尝试将其安装在 Azure SQL DB 上。我收到这些错误:
Msg 40515, Level 15, State 1, Procedure sp_AllNightLog, Line 16 [Batch Start Line 13]
Reference to database and/or server name in 'master.sys.procedures' is not supported in this version of SQL Server.
Msg 40515, Level 15, State 1, Procedure sp_AllNightLog_Setup, Line 16 [Batch Start Line 1492]
Reference to database and/or server name in 'master.sys.procedures' is not supported in this version of SQL Server.
Msg 40515, Level 15, State 1, Procedure sp_Blitz, …
Run Code Online (Sandbox Code Playgroud) sp_blitzfirst @expertmode = 1
在以下框中运行时,我在消息中收到以下消息:
套件版本:SQL-Server-First-Responder-Kit-20161210
Microsoft SQL Server 标准版(64 位)版本 10.50.6000
设置配置变量
消息 207,级别 16,状态 1,第 5 行
无效的列名称“database_id”。
现在开始诊断分析
捕获等待统计数据、性能计数器、文件统计数据的第一遍
开始调查查询
完成运行调查查询
等待匹配 @Seconds 参数
捕获第二遍等待统计数据、性能计数器、文件统计信息
分析第一遍和第二遍 DMV 之间的变化
分析完成,输出结果
Msg 207, Level 16, State 1, Line 5
Invalid column name 'database_id'。
这是我运行的内容sp_blitzwho
:
消息 207,级别 16,状态 1,第 5
行列名“database_id”无效。
任何帮助,将不胜感激。
Msg 139, Level 15, State 1, Procedure sp_BlitzFirst, Line 0 [Batch Start Line 3]
Cannot assign a default value to a local variable.
Msg 195, Level 15, State 10, Procedure sp_BlitzFirst, Line 120 [Batch Start Line 3]
'SYSDATETIMEOFFSET' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure sp_BlitzFirst, Line 130 [Batch Start Line 3]
'SYSDATETIMEOFFSET' is not a recognized built-in function name.
Msg 195, Level 15, State 10, Procedure sp_BlitzFirst, Line 135 [Batch Start Line …
Run Code Online (Sandbox Code Playgroud)