Setting up SSAS database documentation

Applies to
ApexSQL Doc

Summary
This article explains how to set up the SSAS database documentation process using ApexSQL Doc, a tool which documents SQL databases, SSIS packages, SSAS cubes, SSRS reports and Tableau server sites.

Description

Connecting to server

In order to set up the SSAS database documentation process, a connection to SQL Server must me established. There are two ways to connect to an SQL Server:

  1. Clicking the Add SSAS database button in the Home tab or selecting the Analysis services tab and click the Add button:

  2. Selecting any of the option displayed above, the Add analysis services server dialog appears where the valid SQL Server name needs to be entered:

When the connection to Analysis services server is established, a list of SSAS servers will be displayed in the SSAS server section, and the whole list of SSAS databases of the selected SSAS server will be displayed in the Database section on the right side:

To proceed to the next step of setting up the documentation, select at least one database. In this article AdventureWorks2012 database will be used for documenting. The following documentation will be documented in the CHM format, by default settings, but it can be easily changed into Word, PDF or HTML by selecting a different output format.

Setting up documentation options

The next step is to set up which options need to be turned on before documenting. That depends on what needs to be included in the documentation. First of all, the Database details tab needs to be opened. In that tab, the details are divided into two sections. Multidimensional and Tabular SSAS database details:

ApexSQL Doc allows users specifying exact SSAS database details for documenting. The following Multidimensional database details can be included in the documentation:

  • Data sources – A list of data source properties, including connection strings, impersonation type and the number of maximum active connections
  • Data source views – A list of data source views, including logical relationships, primary keys, object names, calculated columns, and SQL queries
  • Cubes – Include cube properties along with measure groups, actions, dimensions, perspectives and key performance indicators (KPI’s)
  • Dimensions – Include dimensions in the documentation
  • Mining structures – A list of mining structures properties, including Is nested, usage, and filter
  • Roles – A list of roles on multidimensional server and database

The following Tabular database details can be included in the documentation:

  • Connections – A list of connection properties, including the source, impersonation type, connection string and the number of maximum active connections
  • Tables – A list of tables along with relationships and properties like row identifier, Is default field set, format, measures and hierarchies
  • Perspectives – Include perspective properties and tables in the documentation
  • Roles – A list of roles on tabular server and database
Quick tip icon

Quick tip:

It is also possible to automate the process of documenting SSAS databases. For more information about automatization, follow this link

Customizing the documentation

The customization of the documentation can be done using three predefined stylesheets besides the default stylesheet. The three predefined styles in ApexSQL Doc are: Classic, Modern and Metro.

However, there is also the Stylesheet option, which users can use to create their own personal SQL documentation layout. These options can be found in the Styles tab under Output options:

After the initial setup the documentation is ready to be generated. Click the Generate button to compile the documentation.

Quick tip icon

Quick tip:

Documentation process of larger databases can time out eventually. In order to prevent that, set the compile time out value to a higher number in the option menu.

In the pictures bellow, the documentation of both Multidimensional and Tabular databases are presented in CHM format:

FAQ’s

Q: Can I document Multidimensional and Tabular databases and have separate documentation for both in one document?

A: Yes, for that you must select multiple databases from different servers before generating the documentation.

Q: How do I make SSAS documentation using the command line application?

A: For more information about on how to automate SSAS cube database documentation follow this link.

Q: What are the required permissions needed to document SSAS databases?

A: When connecting to an SSAS server, ApexSQL Doc uses Windows authentication, and there are no special permissions required for documenting.

Q: What other output formats can SSAS documentation be generated in?

A: ApexSQL Doc can create documentation in 5 different output formats:

  • CHM (Compiled help)
  • Linked HTML
  • DOC (Word document 97 – 2003)
  • DOCX (Word document 2007 – 2013)
  • PDF