适用于:✅Azure 数据资源管理器
显示数据库中所有表的镜像策略作统计信息。 镜像统计信息允许验证数据导出的延迟和状态。
Syntax
.show
database
DatabaseNameoperationsmirroring-statistics
Learn more about syntax conventions.
Parameters
| Name | 类型 | Required | Description |
|---|---|---|---|
| DatabaseName | string |
✔️ | 要为其显示作镜像统计信息的数据库的名称。 |
Returns
| Property | 类型 | Description |
|---|---|---|
| DatabaseName | string |
数据库的名称。 |
| CompletionPercentage | int |
镜像作的状态为百分比。 |
| PendingDataSize | int |
等待引入或处理的数据的大小(以字节为单位)。 |
| MaxLatency | timespan |
上次和下一次新数据添加到逻辑副本之间的最长时间(以分钟为单位)。 |
| NumOfTables | int |
数据库中的表数。 |
Note
在启用镜像策略后,表将无法重命名。
Example
The following example requests operations mirroring statistics of the Telemetry database.
.show database Telemetry operations mirroring-statistics
Output
| DatabaseName | CompletionPercentage | PendingDataSize | MaxLatency | NumOfTables |
|---|---|---|---|---|
| 4145dac4-ee39-4ec2-aafb-11315b5b7c9b | 100 | 0 | 00:00:00 | 1 |