你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

.show commands-and-queries 命令

.showcommands-and-queries 返回一个表,其中包含已达到最终状态的群集上的管理员命令和查询。 这些命令和查询的可用时间为 30 天。

此命令的输出中显示的信息类似于 .show 命令.show 查询,但是它实际上上允许你以简单方式联接两个结果集。

语法

.show commands-and-queries

返回

返回一个表,其中包含以前跨群集中的所有数据库及其完成统计信息运行的管理员命令和查询。 可以使用 KQL 查询来浏览结果。

输出架构如下所示:

ColumnName ColumnType
ClientActivityId string
CommandType string
文本 string
数据库 string
StartedOn datetime
LastUpdatedOn datetime
持续时间 timespan
状态 string
FailureReason string
RootActivityId guid
User string
应用程序 string
主体 string
ClientRequestProperties dynamic
TotalCpu timespan
MemoryPeak long
CacheStatistics dynamic
ScannedExtentsStatistics dynamic
ResultSetStatistics dynamic
WorkloadGroup string

注意

对于查询,CommandType 的值为 Query