使用 Powershell 创建 SSAS 2008 多维数据集分区?
我们如何使用 Powershell 创建 SSAS 2008 多维数据集分区?
How can we create SSAS 2008 cube partitions using Powershell?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
这会向 Adventure Works DW 2008R2 多维数据集添加一个分区(特别是 Adventure Works 多维数据集中的 Internet Customers 度量值组):
您必须更改顶部的变量以及对
Microsoft.AnalysisServices.dll
的引用 assembly,但除此之外,这将非常有效。诀窍是对更改的对象调用
Update()
,然后对整个数据库本身调用。如果您还想处理新分区,可以在
$srv.Disconnect
之前添加以下行:您可以了解有关分析管理对象 (AMO) 的更多信息 此处。
This adds a partition to the Adventure Works DW 2008R2 cube (specifically the Internet Customers measure group in the Adventure Works cube):
You'll have to change variables up top, and the reference to the
Microsoft.AnalysisServices.dll
assembly, but other than that, this will work peachy keen.The trick is to call
Update()
on the object changed and then on the whole database itself.If you'd like to process the new partition, as well, you can do that with the following line before
$srv.Disconnect
:You can learn more about Analysis Management Objects (AMO) here.