【发布时间】:2018-07-24 21:33:58
【问题描述】:
我们想知道分析服务数据库在 Azure 分析服务上部署后的大小
【问题讨论】:
我们想知道分析服务数据库在 Azure 分析服务上部署后的大小
【问题讨论】:
您可以使用以下脚本查找 Azure 分析服务器的整体大小和模型大小(MB/GB)
Param($ServerName="<servername>")
$loadInfo =
[Reflection.Assembly]::LoadWithPartialName(“Microsoft.AnalysisServices”)
$server = New-Object Microsoft.AnalysisServices.Server
$server.connect($ServerName)
if ($server.name -eq $null) {
Write-Output (“Server ‘{0}’ not found” -f $ServerName)
break
}
$sum=0
foreach ($d in $server.Databases )
{
Write-Output ( “Database: {0}; Status: {1}; Size: {2}MB” -f $d.Name,
$d.State, ($d.EstimatedSize/1024/1024).ToString(“#,##0”) )
$sum=$sum+$d.EstimatedSize/1024/1024
}
$SizeGB=$Sum/1024
write-host ‘Sum of Database = ‘$sum ‘ MB’
Write-host ‘Total Size of Cube Databases =’ $SizeGB ‘ GB’
谢谢, 马亨达尔
【讨论】:
使用 SSMS:
使用指标:
希望这会有所帮助。
【讨论】: