SQL Server 2008中SQL应用系列及BI笔记系列--目录索引
导读:本文介绍Analysis Services的部署方式和部署机制
。
本文将包括以下内容:
■1、使用BIDS部署Anylysis services 数据库
■2、创建XMLA脚本部署Anylysis services 数据库
■3、针对Anylysis services 数据库服务器上执行部署脚本
■4、迁移Anylysis services 数据库到另一个服务器
■5、执行Anylysis services 数据库的备份和还原
本文末尾提供两个项目源码:AdventureWorks_BI_Begin15和AdventureWorks_BI_End15,顾名思义,开始和完成。另外,包括数据库文件SSAS2008SBS_Data,请读者自行修改数据源ds的连接串。
1、理解部署机制和部署步骤
在 (BIDS)Business Intelligence Development Studio 中完成 Microsoft SQL Server
Analysis Services 项目的开发,并在开发环境中部署和测试了项目之后,您就可以将 Analysis Services
数据库部署到测试服务器和生产服务器了。
部署 Analysis Services 项目时,必须考虑以下问题: (来自MSDNhttp://msdn.microsoft.com/zh-cn/library/ms174869.aspx
)
◆在目标服务器上需要哪些硬件和软件资源?
◆如何部署 Analysis Services 项目范围之外的相关对象(如 MicrosoftSQL ServerIntegration
Services 包、报告或关系数据库架构)?
◆如何在已部署的 Analysis Services 数据库中加载和更新数据?
◆如何在已部署的 Analysis Services 数据库中更新元数据(如计算)?
◆是否要向用户提供通过 Internet 访问 Analysis Services 数据的权限?
◆是否要提供对 Analysis Services 数据的连续查询访问权限?
◆是否要使用链接的多维数据集或远程分区在分布式环境中部署对象?
◆如何确保 Analysis Services 数据的安全?
建议参看MSDN(Analysis Services 部署的要求和注意事项
)
部署Analysis Services数据库,最基本的步骤如下:

【生成Build
】
所有组成Analysis
Services的源文件被编译到一个XML文件中。源文件包括.ds,.dsv,.dim,.cube,.partition和BIDS Analysis
Services项目中的其他文件,每一个文件是Analysis
Services对象中的一个XML表达式。当创建完成时,一个.
asdatabase同时创建并代表这些XML文件。
【部署Deploy】
这个.asdatabase被打包进一个XMLA命令中。XMLA命令告知Analysis
Services服务器如何处理这些数据定义,执行XMLA命令后,这些数据定义在Analysis
service数据库中以独立的XML文件被存储。
【处理Process】
数据被加载到Analysis Services数据库。
2、使用BIDS部署
在BIDS界面



切换到SSMS界面

3、使用部署向导












当然,你完全可以通过部署向导的命令行来执行
语法如下:
Microsoft.AnalysisServices.Deployment [ASdatabasefile]
{[/s[:logfile]] | [/a] | [[/o[:output_script_file]] [/d]]}
详见MSDN(http://msdn.microsoft.com/zh-cn/library/ms162758.aspx
)
部署完成后,同样我们可以到SSMS界面察看。
4、理解部署脚本
切换到SSMS



断开



附加


5、迁移数据库和灾难恢复
切换到SSMS
备份与恢复





源码下载:
begin15
end15
数据库下载
参考资源:
1、SQL Server Analysis Services 官方教程
(http://technet.microsoft.com/zh-cn/library/ms170208.aspx
)
2、Analysis Services 部署的要求和注意事项
(http://msdn.microsoft.com/zh-cn/library/ms175672.aspx
)
分享到:
相关推荐
《Microsoft SQL Server 2008 Analysis Services Step by Step》是一本专为SQL Server 2008 Analysis Services(简称SSAS)设计的教程书籍,旨在帮助读者逐步掌握这一强大的多维数据处理和商务智能工具。SSAS是...
《Microsoft SQL Server 2008 Analysis Services Step by Step》随书数据库,由邀月(3w@live.cn)整理上传,本数据库只限学习、研究之用,不得用于商业用途,否则后果自负。
《Microsoft SQL Server 2008 Analysis Services Step by Step》随书光盘包含了大量实践性的文件,旨在帮助读者深入理解并掌握SQL Server 2008的Analysis Services(简称SSAS)这一强大的数据仓库和商务智能工具。...
Microsoft SQL Server 2008 Reporting Services Step By Step.part1
Microsoft SQL Server 2008 Reporting Services Step By Step.part4
《Microsoft SQL Server 2008 Reporting Services Step by Step(2009)》随书光盘包含了丰富的学习资源,旨在帮助用户深入理解和掌握SQL Server 2008 Reporting Services的功能与应用。这本书的重点在于实践操作,...
《Microsoft SQL Server 2012 Analysis Services 高级教程》是针对数据库管理员、数据分析师以及IT专业人士的一本深入指南,旨在帮助读者掌握SQL Server 2012中的Analysis Services(简称SSAS)的各项高级功能。...
Provides information on the fundamentals of Microsoft SQL Server 2005 Analysis Services. Teach yourself the fundamentals of SQL Server Analysis Services—one step at a time. With this practical, ...
Provides information on the fundamentals of Microsoft SQL Server 2005 Analysis Services. Teach yourself the fundamentals of SQL Server Analysis Services—one step at a time. With this practical, ...
Provides information on the fundamentals of Microsoft SQL Server 2005 Analysis Services. Teach yourself the fundamentals of SQL Server Analysis Services—one step at a time. With this practical, ...
This title serves as an authoritative guide to Microsofts new "SQL Server 2012 Analysis Services" BI product and is written by key members of the Microsoft Analysis Services product development team....
《SQL Server 2005 Analysis Services Step by Step》是一本深入浅出的教程,旨在帮助读者掌握如何使用SQL Server 2005中的Analysis Services(简称SSAS)进行在线分析处理(OLAP)。OLAP是一种数据库技术,专门用于...
SQL Server 2008的Analysis Services是微软提供的一个强大的多维数据处理引擎,用于构建OLAP立方体,这些立方体可以快速响应用户对大量数据的复杂查询。 在学习这个案例时,你需要理解以下几个关键概念: 1. **...
《Microsoft SQL Server 2005 Analysis Services 步步为营》是一本专注于微软SQL Server 2005分析服务(Analysis Services)的详细指南。这本书深入浅出地介绍了如何利用这一强大的数据仓库和在线分析处理(OLAP)...
《SQL Server2012Analysis Services高级教程(第2版)》由Microsoft产品团队的主要成员(哈日那思、菲尔格林等)编写,介绍了如何应用这些新功能来创建复杂的BI解决方案。为了实现这一目的,你将在本书中了解到如何...
SQL Server 2008 Analysis Services(简称SSAS)是微软公司推出的一款强大的商业智能工具,主要用于处理大数据的分析和报告。它集成了OLAP(在线分析处理)和数据挖掘功能,为企业提供高效的决策支持系统。这篇...
《SQL Server 2012 Analysis Services高级教程》是一本专为深入了解和精通Microsoft SQL Server 2012分析服务(Analysis Services)所编写的详细指南。这本书的第二版提供了全面且深入的知识,旨在帮助读者掌握这个...
《SQL Server数据库经典译丛:SQL Server 2012 Analysis Services高级教程(第2版)》由Microsoft产品团队的主要成员编写,介绍了如何衣物这些新功能来创建复杂的BI解决方案。为了实现这一目的,你将在《SQL Server...
本书《Microsoft SQL Server 2012 Analysis Services: The BI Semantic Model》由Marco Russo、Alberto Ferrari和Chris Webb撰写,是一本专注于Microsoft SQL Server 2012分析服务中BI语义模型(BISM)的详细指导...