介绍 (Introduction)
多维多维数据集和事务数据库是两个非常不同的事物。 从经验中,我什至是经验丰富的DBA都完全避免使用多维数据集这一主题,因为对于他们而言,多维数据集实在是一个未知领域。 通常,多维数据集工作会传递给开发人员,因为他们可以轻松使用Visual Studio。 这是非常遗憾的,因为实际上创建OLAP多维数据集并不是很困难。 可以肯定地说,大多数工作需要在传统SQL Server数据库引擎/ SSIS环境中完成,从创建数据仓库模型到保持ETL数据包的状态。 本文假设您已经有一个数据仓库,并以AdventureWorksDW2012为例。 遵循这些步骤将使您踏上基于读取优化的OLAP多维数据集的体面SQL Server商业智能解决方案。- *Please note: You will need SQL Server Data Tools or SQL Server Business Intelligence Developments Studio (BIDS). You can get it here.
- *请注意:您将需要SQL Server数据工具或SQL Server商业智能开发工作室(BIDS)。 你可以在这里得到。
入门 (Getting started)
Every OLAP cube is created with an analytics solution. To create one, open SQL Server Data Tools or BIDS and create a new “Analysis Services Multidimensional and Data Mining Project”
每个OLAP多维数据集都是使用分析解决方案创建的。 要创建一个,请打开SQL Server数据工具或BIDS并创建一个新的“ Analysis Services多维和数据挖掘项目”
This will open a blank solution and will create the basic folders needed in the solution explorer. Something that is quite handy to know about SQL Server Analysis projects is that the order of creation or the workflow follows the order of the folders in the Solution Explorer.
这将打开一个空白解决方案,并将创建解决方案资源管理器中所需的基本文件夹。 关于SQL Server Analysis项目,很容易知道的一点是,创建或工作流的顺序遵循解决方案资源管理器中文件夹的顺序。
So the order of creation has to be:
因此创建顺序必须为:
- Data Source 数据源
- Data Source View 数据源视图
- OLAP Cube OLAP多维数据集
- Dimensions 外型尺寸
So let’s start by creating a new data source. To do this, right click on Data Sources and click “New Data Source”. This will open a wizard that will allow you to make a normal database connection to your data warehouse:
因此,让我们开始创建一个新的数据源。 为此,请右键单击“数据源”,然后单击“新数据源”。 这将打开一个向导,该向导将允许您与数据仓库建立正常的数据库连接: