SSAS : 数据访问接口整理汇总
2009-06-27 09:11
525 查看
Microsoft SQL Server 2005 Analysis Services (SSAS) supports several technologies that can be used to access data and metadata stored on an instance of Analysis Services. Using the Analysis Services data access technologies, you can do the following: Retrieve Schema Rowsets Schema rowsets are one way in which client applications can examine metadata stored on, and retrieve support and monitoring information from, an Analysis Services instance. You can retrieve OLE DB, OLE DB for Online Analytical Processing (OLAP), OLE DB for Data Mining, or XML for Analysis (XMLA) schema rowsets. To retrieve schema rowsets: You can use OLE DB commands with the Analysis Services 9.0 OLE DB provider. For more information, see Analysis Services 9.0 OLE DB Provider (SSAS).这是一个非托管的提供程序,msolap90.dll You can run the XMLA Discover method directly against an Analysis Services instance to retrieve schema rowset information. For more information, see Discover Method (XMLA).
Retrieve Data and Metadata You can retrieve data and metadata, in either tabular or multidimensional formats, from cubes and mining models. To retrieve data and metadata: You can use ADOMD.NET in a managed client application to retrieve Analysis Services information using common Microsoft .NET Framework data access interfaces. For more information, see ADOMD.NET. You can use the Analysis Services 9.0 OLE DB provider in unmanaged client applications to support OLE DB access. For more information, see Analysis Services 9.0 OLE DB Provider (SSAS). You can use XMLA to retrieve data directly from an Analysis Services instance in an XML-based format. For more information, see XML for Analysis (XMLA).
Manipulate Analysis Services Objects You can manipulate Analysis Services objects, such as databases, cubes, dimensions, and mining structures, using Multidimensional Expressions (MDX), Data Mining Extensions (DMX), or XMLA commands. To manipulate Analysis Services objects: You can use ADOMD.NET in a managed client application to send commands using common .NET Framework data access interfaces. For more information, see ADOMD.NET. You can use the Analysis Services 9.0 OLE DB provider in unmanaged client applications to send commands using OLE DB access. For more information, see Analysis Services 9.0 OLE DB Provider (SSAS). You can use XMLA to send commands directly to an Analysis Services instance. For more information, see XML for Analysis (XMLA).
它的连接字符串,大致如下
Provider=MSOLAP.4;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Adventureworks;Data Source=(local);MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error
如何在VB或者VBA代码中使用,则需要先添加引用
通常都是发送下面这样的消息到服务器。当然,前提是服务器已经配置为可以使用http访问
SELECT [Customer].[Customer Geography].[Country-Region] ON 0,
[Measures].[Internet Sales-Sales Amount] ON 1
FROM [Analysis Services Tutorial]
Adventureworks
2052
Multidimensional
TupleFormat
SchemaData
需要注意的是,OLEDB 和ADOME.NET其实也仍然是使用XMLA的,也就是SSAS通讯的官方语言就是XMLA,只不过:OLEDB 和ADOMD.NET所使用的XMLA是所谓的over TCP/IP的。
本文由作者:陈希章 于 2009/6/27 9:11:20 发布在:http://www.cnblogs.com/chenxizhang/
本文版权归作者所有,可以转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
更多博客文章,以及作者对于博客引用方面的完整声明以及合作方面的政策,请参考以下站点:陈希章的博客中心
本文是使用博客同步和管理系统自动于2009/6/27 9:11:27 从 陈希章@博客园 同步过来的。原文地址: http://www.cnblogs.com/chenxizhang/archive/2009/06/27/1512111.html ,发表于2009/6/27 1:11:00.
Retrieve Data and Metadata You can retrieve data and metadata, in either tabular or multidimensional formats, from cubes and mining models. To retrieve data and metadata: You can use ADOMD.NET in a managed client application to retrieve Analysis Services information using common Microsoft .NET Framework data access interfaces. For more information, see ADOMD.NET. You can use the Analysis Services 9.0 OLE DB provider in unmanaged client applications to support OLE DB access. For more information, see Analysis Services 9.0 OLE DB Provider (SSAS). You can use XMLA to retrieve data directly from an Analysis Services instance in an XML-based format. For more information, see XML for Analysis (XMLA).
Manipulate Analysis Services Objects You can manipulate Analysis Services objects, such as databases, cubes, dimensions, and mining structures, using Multidimensional Expressions (MDX), Data Mining Extensions (DMX), or XMLA commands. To manipulate Analysis Services objects: You can use ADOMD.NET in a managed client application to send commands using common .NET Framework data access interfaces. For more information, see ADOMD.NET. You can use the Analysis Services 9.0 OLE DB provider in unmanaged client applications to send commands using OLE DB access. For more information, see Analysis Services 9.0 OLE DB Provider (SSAS). You can use XMLA to send commands directly to an Analysis Services instance. For more information, see XML for Analysis (XMLA).
何时使用OLEDB Provider?
在非托管环境中,例如在Excel,就是使用OLEDB 的方式如何使用OLEDB Provider?
它的连接字符串,大致如下
Provider=MSOLAP.4;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Adventureworks;Data Source=(local);MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error
如何在VB或者VBA代码中使用,则需要先添加引用
何时使用ADOMD.NET ?
在托管环境中。例如.NET编写的程序。如何使用ADOMD.NET?
何时使用XMLA?
在没有办法使用OLEDB以及ADOMD.NET的时候。例如在java中直接通过XML的方式来操作通常都是发送下面这样的消息到服务器。当然,前提是服务器已经配置为可以使用http访问
SELECT [Customer].[Customer Geography].[Country-Region] ON 0,
[Measures].[Internet Sales-Sales Amount] ON 1
FROM [Analysis Services Tutorial]
Adventureworks
2052
Multidimensional
TupleFormat
SchemaData
需要注意的是,OLEDB 和ADOME.NET其实也仍然是使用XMLA的,也就是SSAS通讯的官方语言就是XMLA,只不过:OLEDB 和ADOMD.NET所使用的XMLA是所谓的over TCP/IP的。
本文由作者:陈希章 于 2009/6/27 9:11:20 发布在:http://www.cnblogs.com/chenxizhang/
本文版权归作者所有,可以转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
更多博客文章,以及作者对于博客引用方面的完整声明以及合作方面的政策,请参考以下站点:陈希章的博客中心
本文是使用博客同步和管理系统自动于2009/6/27 9:11:27 从 陈希章@博客园 同步过来的。原文地址: http://www.cnblogs.com/chenxizhang/archive/2009/06/27/1512111.html ,发表于2009/6/27 1:11:00.
相关文章推荐
- SSAS : 数据访问接口整理汇总
- 解决"链接服务器 '(null)' 的 OLE DB 访问接口 'STREAM' 返回了对列 '[!BulkInsert].fieldname' 无效的数据"的一种替换方法
- 整理的股票数据接口
- java后台访问外网接口获取数据并封装成json
- 数据访问接口设计思考
- PHP访问接口获取数据
- (05)通用的数据访问接口 IDbHelper
- SYBASE数据访问接口CTLIB简单的内存池分配
- 链接服务器 '(null)' 的 OLE DB 访问接口'STREAM' 返回了对列 '[!BulkInsert].field' 无效的数据
- 一个项目如何请求访问,另一个封装好的接口项目的数据
- 数据访问接口体系及数据对象模型探讨--[1]
- 数据访问接口体系及数据对象模型探讨--[附录]
- spring mvc 的jpa JpaRepository数据层 访问方式汇总
- 基于数据集成时,请尽量隔离接口表的访问
- 数据访问接口体系及数据对象模型探讨--[附录]
- spring mvc 的jpa JpaRepository数据层 访问方式汇总
- spring mvc 的jpa JpaRepository数据层 访问方式汇总
- SqlServer 大量数据热汇总优化整理
- XML解析(访问数据接口)
- 免费开放数据接口汇总