Reading data from the cube in Analysis Services from RDLC

Source: Internet
Author: User
Tags new features sql server example

In the RDL of Microsoft's in-service, the default is to support querying data from the RDLC cube, but there is an indirect way to access the cube's data.

The relative RDL and RDLC are completely different routines. The difference between the two is definitely not the name on only a C so simple, from the design of the details and deployment of the way there are great differences. The actual project is often based on different circumstances to specific decisions to use which option.

There are two ways to access this recommendation.

The first approach is to link the Analysis Services database to the Data Engine service in the form of links, and then the logic of the MDX query is written to the stored procedure, and the final top-level application indirectly achieves the access to the Analysis service database by invoking the stored procedure.

Another option is to encapsulate the data source with a method. Because the RDLC itself is in a C # or vb.net project, it is supported to use a method of the project as a data source in RDLC so that the adomd.net can be called in the method and the MDX result is returned to RDLC as a list.

The implementation of the first method can refer to the operation of SQL Server linked servers, which is mainly described in the second method.

To install SQL Server, the procedure can refer here.

Http://www.cnblogs.com/aspnetx/archive/2012/04/13/2446479.html

The installation of version 2012 is recommended here. You don't have to worry too much about whether or not the previous version will migrate without considering the new features in 2012.

Download the sample data file.

Download from CodePlex.

DW File:

http://msftdbprodsamples.codeplex.com/downloads/get/165405

SSAS script file:

http://msftdbprodsamples.codeplex.com/downloads/get/258486

Since the cube used in this article is taken from the Adventure Works sample library in Microsoft's official SQL Server example, and the SSAS database provides only project files, the DW file needs to be downloaded at the same time for SSAS to process.

It is important to note that the DW database is being downloaded, not the OLTP database, and the two libraries are structurally different and do not download incorrectly.

The downloaded database file is first attached to the Data Engine service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.