Friday, 7 October 2016

DM Database - Document and Track changes in your Tabular Model


Extract the metadata (properties) from a tabular database model using a PowerShell script and SQL Server 2016. In this section we are going to extract the list of the DM Databases.


Please see the requirements listed here: Document and Track changes in your Tabular Model


If you do not want to store metadata in a separate database, please proceed to step 3.
  1. Download the SQL script file: 0200 TabularDatabase.sql
  2. Run the script in SSMS.
  3. Download the PowerShell script 200--TabularDatabase.ps1
  4. Use PowerShell ISE (or other PowerShell tool) to open the PowerShell file.
  5. Set the parameters in the PowerShell script to align with your environment (see Requirements).
    1. This script can either display the information or populate the table created in the step above, depending on how you configure the parameters.
  6. Run the PowerShell script (generally I use a *.bat file to load all of my PowerShell scripts)


Once the above steps have been completed, your SQL Server instance will have a table called [TabularDatabase] within your [ASTabularPropertyCollector] database containing the metadata information for your SQL tabular model.

Querying this table should provide results similar to those seen below.


No comments:

Post a Comment