How to get a column list from a tabular model?

  • I have inherited a tabular cube (model) with about 200 columns, and I need to make some changes to calculated columns. I can access it in SSMS and VS.

    I need to create a list of fields, not in alphabetical order but in their actual order. Is there a way to do it? What I also would like to select is whether it is a column or a calculation.

    Thanks

  • You can use SSAS DMVs to get this information: https://msdn.microsoft.com/en-us/library/hh230820.aspx


    I'm on LinkedIn

  • Thank you. They have catalog views for databases, tables, columns , but they don't show whether a column is calculated. But anyway, it's good. I did not know that SSAS also has such views.

  • OBJECT_TYPE in the DISCOVER_CALC_DEPENDENCY DMV shows what type of column (including calculated) it is.


    I'm on LinkedIn

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply