在运用多维数据进行分析的时候,通常很有可能我们需要把这些多维数据脱机进行处理或演示,这其中就要用到cub文件,因此怎么生成CUB文件就成了关键,最近我做一个小项目用到了这个,也看了MSDN中的一个例子,感觉说的是不够详细,因此我就把自己写的一个简单MDX语句供给大家看一下:

CREATE GLOBAL CUBE [testStudy1]
   Storage 'C:\localStudy.cub'
   FROM [Test]
   (
      MEASURE  [Test].[成绩],
      DIMENSION [Test].[Time],
      DIMENSION [Test].[Student]
    )

其中create Glogbal cube 就不用多说了,

里面的testStudy1是要创建的新多维数据集的名称,

C:\localStudy.cub就是要创建的多维数据集的文件名及路径

Test就是新多维数据集所基于的多维数据集的名称。

下面的Measure就是新建的多维数据集中的度量值

Dimesion就是基于那些维度,这只是一个简单的例子,下面有Tim Peterson在MSDN论坛上的一个回答,希望对大家有所帮助。

We create AS2005 local cube files programmatically in CubeSlice like this:

1. We use the AMO Scripter to generate a Create ASSL script for the database.

2. We manipulate the script in a number of ways:

Removing unwanted cubes, dimensions, levels, measures, and other objects.

Slicing on particular members, if desired.

Switching to an Analysis Server source, if desired.

Manipulating the DataSourceView to reduce the size of the local cube, if desired.

Consolidating partitions, if necessary.

Taking care of other issues.

Batching the Create script together with a Process script.

3. We then use an ADOMD Cellset to create the local cube. The ASSL script is assigned as the Source of the Cellset. When the Cellset is opened the local cube is created.

There are a lot of things that need to be considered when creating local cube files. If you can use the script generated from the Scripter without modifications, it's not too difficult. If you want to minimize the size of your local cubes (which improves browsing performance) there's more work involved. We're trying to provide the choices to make it easy with our product, CubeSlice 9 (now in beta). We allow local cube creation to be scheduled using a command and parameters. We do not (not yet at least) provide an API to call our product.

We haven't fully documented all the ways we manipulate the ASSL script in creating the local cube. Our product exposes the script we use, so that you can examine how individual situations can be handled.

Tim Peterson

脱机多维数据集CUB文件的生成相关推荐

  1. 生成有关 SQL Server 2005 Analysis Services 多维数据集数据源的本地化报表

    引言 本文节选了 Brian Larson 所著的 Microsoft SQL Server 2005 Reporting Services 一书.学习如何通过参数化 MDX 查询将 Analysis ...

  2. 生成对抗网络生成多维数据集_生成没有数据集的新颖内容

    生成对抗网络生成多维数据集 介绍(Introduction) GAN architecture has been the standard for generating content through ...

  3. 数据集划分、label生成及按label将图片分类到不同文件夹

    1.数据集介绍 1.1 概念 1.2 数据集结构 2. 数据集划分及生成label 2.1 结构一 2.2 结构二 2.3 结构三 3. 数据集按label分类到不同文件夹 1.数据集介绍 1.1 概 ...

  4. java生成二维码到文件,java生成二维码转成BASE64

    java生成二维码到文件,java生成二维码转成BASE64 如题,利用java和第三方库,把指定的字符串生成二维码,并且把二维码保存成图片,转换成BASE64格式. 需要的jar文件: packag ...

  5. 利用qrcode生成二维码提取文件信息

    前言: 在一些不通外网的客户机器上,需要通过生成的mi来生成license.所以需要取出mi文件.想到使用qrcode 限制: 文件不能太大,因为一个二维码所能保存的信息很有限. 贴上代码: #!/u ...

  6. SSAS系列——【03】多维数据(多维数据集对象)

    原文:SSAS系列--[03]多维数据(多维数据集对象) 1.什么是Cube? 简单 Cube 对象由基本信息.维度和度量值组组成. 基本信息包括多维数据集的名称.多维数据集的默认度量值.数据源和存储 ...

  7. ssas报表项目数据集_如何部署SSAS多维数据集

    ssas报表项目数据集 In this article, I'm going to discuss the different ways in which we can deploy SSAS cub ...

  8. SQL Server商业智能功能–创建简单的OLAP多维数据集

    介绍 (Introduction) 多维多维数据集和事务数据库是两个非常不同的事物. 从经验中,我什至是经验丰富的DBA都完全避免使用多维数据集这一主题,因为对于他们而言,多维数据集实在是一个未知领域 ...

  9. VCF电子海图投影文件的生成

    VCF格式电子海图投影文件的生成 目前国内的电子海图除S-57格式的电子海图外,还有VCF格式电子海图,也就是shape格式电子海图.VCF格式电子海图是由国内官方出版机构出版的,包括一个map.re ...

最新文章

  1. oracle基本命令集锦
  2. 执行系统命令,subprocess使用说明
  3. Scala学习:Curry化的函数
  4. HDU2476:String painter(区间dp)
  5. 提升内外网文件交换安全性,这里有5点建议
  6. mac下8080端口到80端口的转发
  7. AutoCAD2007 中文版标准教程
  8. parted如何将磁盘所有空间格式化_磁盘-使用parted格式化大容量数据盘
  9. opencv保存设像头图片时调整白平衡功能
  10. 适用Macos的几款好用的人物照片编辑工具
  11. 走进少儿编程教育的基础性原理
  12. 给kvm虚机开放对外访问的端口
  13. 网站查询服务器租期,游戏服务器租期
  14. Ph P Manual
  15. 微信公众号配置token
  16. rabbitmq默认guest登录问题
  17. 3DMax”——新手小白入门篇
  18. 小游戏推广项目,适合新手操作的网路项目
  19. 《通灵芯片》阅读笔记 // 持续
  20. 阿里云OSS文件上传下载工具类

热门文章

  1. 学习笔记之xss原理篇
  2. iOS:使用集成的支付宝SDK的支付流程
  3. 任正非督战:华为强攻公有云业务 竞争残酷
  4. 《Excel 职场手册:260招菜鸟变达人》一第 14 招 利用数据验证记录数据录入时间...
  5. SQL 基础之索引、闪回、临时表(十八)
  6. safair浏览器页面局部滑动问题
  7. FineReport搭建物流报表平台的解决方案
  8. iptables 配置 使用-3
  9. Debug时含有的子元素,在代码里获取不到的问题
  10. Loadrunner脚本学习总结