| Q: How and where do I run queries on SSAS 2008 DMVs (schema rowsets)? |
| Written by Vidas Matelis | |||
| Wednesday, 03 December 2008 02:40 | |||
|
Q: How and where do I run queries on SSAS 2008 DMVs? A: There are few places you can run queries on Analysis Services 2008 schema rowsets or DMVs: 1. You can query DMVs from SQL Server Management Studio (SSMS).
2. You can query DMVs from the SQL Server using linked server.
Now you can execute queries on SSAS DMVs using OpenQuery function. For example:
This approach is a bit more complicated, but it gives you much more flexibility on what you can do with queries - for example now you can join results from different DMVs. 3. Run queries from PowerShell or VBScript. You can execute query on SSAS DMV from PowerShell or VBScript. Here is example of PowerShell script that runs the same query as above statements or accepts parameter where you can specify any query:
More samples on PowerShell scripts on DMVs can be found here.
|
Tags: 2008, dmv, powershell
Most read
- How to install Adventure Works SQL DW and Analysis Services 2005/2008 sample database and project
- MDX-How can I get Last (Previous) Year to Date (YTD) values?
- MDX-How do you format or round KPI expression value?
- Analysis Services 2005 error: Errors in the metadata manager. The attribute with ID of ., Name of . refer
- MDX-How do you calculate monthly average of one year, optionally including empty months?
Top Rated
- How to install Adventure Works SQL DW and Analysis Services 2005/2008 sample database and project
- Analysis Services 2005 XMLA script to add/drop existing partition aggregate
- Why In Reporting Services MDX query disappears after leaving "Data" tab.
- When accessing calculation tab in BIDS I am getting error Unexpected error occurred
- MDX-How can I setup default dimension member in cube calculation script?
- How to calculate YTD monthly average and compare it over several years for the same selected month
- In an MDX query how can I get the top 3 sales years based on the order quantity?
- How in SSAS 2005 do you create what is used to be "Member Properties" in Analysis Services 2000




