Different methods of creating SQL Server instance documentation

Applies to

ApexSQL Manage

Summary

This article describes different ways of creating SQL Server instance documentation when documenting various server objects in the SQL manage instance management application.

Description

Documenting SQL Server along with its database(s) is a continuous process and recommended approach from the time a specific instance is created.

By frequently documenting server objects, all changes on our instance will be safely kept and used for before-after comparison when convenient.

This guide will demonstrate how SQL Server documentation can be created using different methods within the SQL manage instance tool.

Create SQL documentation manually

To start this process, upon starting the tool, switch to the Documentation tab. From the server panel, choose preferred SQL Server instance(s) and/or SQL Server snapshots, and afterward choose specific SQL Server properties to document from the All properties panel. From the Generate drop-down menu, select one of the offered output formats:

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

For this example the Portable Document Format, PDF, is selected:

Generate manual documentation in SQL manage instance tool

This action will start the process of generating the document:

Generate document in SQL manage instance tool

Once finished, click the Yes button to open the document:

Open document

The generated document will include all previously selected SQL Server properties:

Document overview in PDF

Quick tip icon

Quick tip:

To learn how to configure the output of generated documents and tweak settings that directly impact the final look and form of those documents, check the How to create detailed documentation for SQL Server instances and snapshots article.

Create SQL documentation automatically

To create scheduled SQL Server documentation activities, run them automatically and unattended, follow the Automate and schedule SQL Server documentation article.

Create SQL documentation with a quick action option

The last option to generate SQL documentation within the SQL manage instance software is by using quick action.

Before initiating this process, let’s first configure this quick documentation action by accessing the Quick settings button from the Configuration tab:

Quick settings option in SQL manage instance tool

When the Quick action settings window is opened, switch to the Documentation tab on the left where various documentation-related settings can be easily tweaked:

Quick action settings window in SQL manage instance tool

In the General section, choose the desired output format by selecting it from the File format drop-down list:

File format output selection

In Folder name, provide location path where generated SQL Server instance documents will be saved. Choose a custom location or leave the default one. Click the OK button to confirm the selection and close the Browse for folder window:

Document location selection in SQL manage instance tool

Choose the name for the documentation file by clicking preferred cards under the File name box:

  • Server – the name of the SQL Server
  • Date – the date when a document is created
  • Time24 – the time of the document creation displayed in 24h format
  • Time12 – the time of the document creation displayed in 12h format

The selection of any card makes its matching entry in the File name box. The example of the chosen document name template can be seen in the Preview:

Document file name selection

In the Filter section, all SQL Server instance properties are presented. By default, only base Server properties are selected. Select all properties by ticking the Server objects or add only a handful of them if more suitable. Click the OK button to save the new configuration and close the Quick action settings window:

Server objects filter selection in SQL manage instance tool

Quick tip icon

Quick tip:

Conveniently, by clicking the ApexSQL defaults button on the left bottom of the window, all default settings for the Documentation tab will be restored undoing any previously entered custom settings.

Once the new quick action settings related to documentation are successfully configured, switch to the Home tab, select a SQL Server instance or a snapshot from the server panel, then click the Document button from the Quick action ribbon category:

Quick document option in SQL manage instance tool

In a few seconds, the file will be generated for the selected SQL instance and based on the newly configured documentation settings. Click the Yes button to immediately open it:

Open document in SQL manage instance tool

The generated document will look as below:

View document in MS word