Business Intelligence Blogs

View blogs by industry experts on topics such as SSAS, SSIS, SSRS, Power BI, Performance Tuning, Azure, Big Data and much more! You can also sign up to post your own business intelligence blog.

«September 2015»

Executing DBCC for SQL Server Analysis Services 2016

In the upcoming release of SQL Server Analysis Services 2016, one of the new features you’ll see is the ability to perform a database consistency check against your SSAS cubes and Tabular models. Just like in the database engine side of things, DBCC for SSAS checks for corruption across the entire database or individual objects within the database.

The DBCC command is shaped likes the XMLA Process command so there’s not a lot of complexity to it. Below here, you can see the basic syntax for the SSAS DBCC command. Its worthing noting that the syntax of the command will look the same whether you’re running it against an SSAS multidimensional database or Tabular model.


To run the DBCC command, just open a new MDX query window and use the code seen above. Enter in the IDs of your Database, cube, measure and/or partition.

When you’re running the DBCC command against a Tabular model, there are a couple things I’d like to point out.

In the element for the CubeID, you’ll need to specify the ID of the Model. And in the element for the MeasureGroupID, specify the ID for the table you want to check.

DBCC XMLA command for SSAS

If you want to check the whole database or model for consistency, simply remove the elements the lower elements. For example, if I wanted to check the whole model, I just would leave out the elements for MeasureGroupID and PartitionID.

To find the MeasureGroupID (Table ID) or PartitionID in a Tabular model, just navigate to the Properties for that object.

Find the SSAS Tabular MeasureGroup ID or Table ID

To find the Partition ID in a Tabular model, right click the table and select Partitions. Then highlight the partition you want to check and click the Settings icon.

Find the SSAS Tabular partition ID

If you run SQL Server Profiler against SSAS while executing the DBCC command, you can see the individual checking of the columns, tables, database and more.

SSAS Tabular Profiler trace DBCC

I also ran a trace against my SSAS 2016 OLAP instance to watch each segment of

Read more

Adding Existing Reports to Reporting Services Solution

  • 13 December 2010
  • Author: briankmcdonald
  • Number of views: 16677


If you’re anything like me, you create a ton of objects and have them in various projects. And sometimes, you may want to include one of those objects in another project. This is often the case when you download an example from the web somewhere, but it doesn’t include the entire project. Some of my blogs include the sample that I created for the blog. I don’t include the whole project, because I have assumed that one would know how to create a reporting services project and then add my report definition file into the existing solution. I have recently been asked to show someone how to add a report to an existing solution and as such...I am writing this blog. So without further ado… let’s get cracking…


Create a new Reporting Services Project by loading up Business Intelligence Development Studio. Mine is under All Programs > Microsoft SQL Server 2008 R2 as shown below.

Start up BIDS - Brian K McDonald


Then click the CREATE: Project… button in the Recent Projects window.

Create Report Server Project 1 - Brian K McDonald


Select the Report Server Project under the Project types: Business Intelligence Projects. Name the project whatever you want, I would recommend something along the lines of SSRS_TestProject or something like that. Save the project in whatever location that you want and should you choose to have BIDS create a folder for the project, set that name accordingly.

Create Report Server Project 2 - Brian K McDonald


Now that you have a project created for test reports. Download one of my examples here. Extract it and then add it to the project that you just created. To add the rdl file right click on the Reports folder and then go to Add and then select Existing Item… as shown below.

Add Existing Item - Brian K McDonald


Navigate to where the rdl file is located and select it. Then click the Add button as shown below.

Add Report - Brian K McDonald


When you click the add button, a copy of the file is then copied to your solution folder and then included in your project. That’s all there is to it! Save this project and the file that I gave you because in a not-too-distant post (maybe a few hours), I will show you how to do something nice using this report. Stay tuned!


I hope that you have enjoyed this post. If you did, please take just a moment to rate it below! Also, if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me at any of the below methods.



Brian K. McDonald, MCDBA, MCSD
Business Intelligence Consultant – Pragmatic Works


Blogs: SQLBIGeek | SQLServerCentral | BIDN | SQLServerPedia

Twitter: @briankmcdonald




Categories: Blogs
Rate this article:


Other posts by briankmcdonald

Please login or register to post comments.