使用PowerShell处理AAS模型

使用PowerShell处理AAS模型

本文介绍了使用PowerShell处理AAS模型时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我想知道在使用PowerShell处理AAS模型之前是否有人遇到过此问题:

PS C:\ Windows \ system32> Invoke-ProcessASDatabase -DatabaseName"***" -RefreshType完整-服务器" asazure:// northeurope.asazure.windows.net/*** &";
Invoke-ProcessASDatabase:您要连接的Analysis Services实例已移动.请重新连接.
在第1行:1字符:1
+ Invoke-ProcessASDatabase -DatabaseName"***" -RefreshType完全-Serv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo:InvalidArgument:(***:String)[Invoke-ProcessASDatabase],ConnectionException
+ FullyQualifiedErrorId:Microsoft.AnalysisServices.PowerShell.Cmdlets.ProcessASDatabase


服务器具有正在引用的数据库.

谢谢

致谢,
路易斯·西蒙斯


LuisSimões

Hi there!

I was wondering if someone had this problem before while processing AAS model with PowerShell:

PS C:\Windows\system32> Invoke-ProcessASDatabase -DatabaseName "***" -RefreshType Full -Server "asazure://northeurope.asazure.windows.net/***"
Invoke-ProcessASDatabase : Analysis Services instance you are connecting to has moved. Please reconnect.
At line:1 char:1
+ Invoke-ProcessASDatabase -DatabaseName "***" -RefreshType Full -Serv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (***:String) [Invoke-ProcessASDatabase], ConnectionException
+ FullyQualifiedErrorId : Microsoft.AnalysisServices.PowerShell.Cmdlets.ProcessASDatabase


The server has the database that is being referred.

Thank you

Regards,
Luis Simoes


Luis Simões

推荐答案

您正在运行哪个版本的sqlserver模块?

What version of the sqlserver module are you running?

Get-Module SqlServer -ListAvailable


这篇关于使用PowerShell处理AAS模型时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 22:18