如何在 ssas 中使用更改脚本进行部署 [英] How to do deployment using alter script in ssas

查看:34
本文介绍了如何在 ssas 中使用更改脚本进行部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在开发服务器 SSMS 的分析服务中的整个数据库上创建更改脚本并在生产服务器 SSMS 上执行该脚本而不是通过 BIDS 部署,有什么问题吗?

Is any thing wrong if i create alter script on the entire database in analysis service in the development server SSMS and execute that script on the production server SSMS instead of deploying through BIDS?

推荐答案

不,您实际上永远不应该使用 BIDS 部署到 prod.BIDS 将始终覆盖目标服务器的管理设置(安全和分区).

no, you actually should never use BIDS to deploy to prod. BIDS will always overwrites the management settings(security and partition) of the target server.

最好的选择是使用部署向导.它使您能够生成更新多维数据集和维度结构的增量部署脚本.可以自定义如何处理角色和分区.它使用通过在 BIDS 中构建 SSAS 生成的 XML 输出文件作为输入文件,您可以在多种模式下运行:

the best option is to use the Deployment Wizard. It enables you to generate an incremental deployment script that updates the cube and dimension structures. Can customize how roles and partitions are handled. It uses as input files the XML output files generated by building the SSAS in BIDS and you can run on several modes:

  • 静默模式 (/s):以静默模式运行实用程序,不显示任何对话框.
  • 应答文件模式 (/a):不部署.只修改输入文件.
  • 输出模式 (/o):不显示用户界面.生成将发送到部署目标的 XMLA 脚本.不会发生部署.

如果您想要完全同步,可以使用同步数据库向导".它几乎克隆了一个数据库.当目的数据库已经存在时,执行元数据同步和增量数据同步.当目标数据库不存在时,进行全量部署和数据同步.

If you want a complete synchronization, you can use the "Synchronize Database Wizard". It pretty much clones a database. When the destination database already exists, it performs metadata synchronization and incremental data synchronization. When the destination database does not exist, a full deployment and data synchronization is done.

这篇关于如何在 ssas 中使用更改脚本进行部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆