次の方法で共有


.show commands-and-queries コマンド

.showcommands-and-queriesは、最終的な状態に達したクラスターに対する管理者コマンドとクエリを含むテーブルを返します。 これらのコマンドとクエリは 30 日間使用できます。

コマンドの出力に示される情報は .show コマンドおよび .show クエリと同様ですが、これは基本的にその両方の結果セットを簡単な方法で結合できます。

構文

.show commands-and-queries

返品

クラスター内のすべてのデータベースに対して以前に実行された管理コマンドとクエリとその完了統計を含むテーブルを返します。 KQL クエリを使用して結果を調べることができます。

出力スキーマは次のとおりです。

ColumnName [列の型]
ClientActivityId string
CommandType string
Text string
データベース string
StartedOn datetime
LastUpdatedOn datetime
Duration timespan
都道府県 string
FailureReason string
RootActivityId guid
User string
Application string
プリンシパル string
ClientRequestProperties dynamic
TotalCpu timespan
MemoryPeak long
CacheStatistics dynamic
ScannedExtentsStatistics dynamic
ResultSetStatistics dynamic
WorkloadGroup string

Note

クエリの場合、CommandType の値は Query です。