Skip to content

hbulzy/SqlServerDatabaseDocumentationGenerator

 
 

Repository files navigation

This project will allow you to create human readable documentation for a Microsoft SQL Server database (versions 2005+). This includes schemas, tables, views, columns, functions, and stored procedures.

Descriptions for objects are taken from extended properties with a name 'MS_Description' such as those created when descriptions provided to database objects using SQL Management Studio.

To use this project build it using Visual Studio. The projects are currently using .NET 4.8 but should work on 4.5 or later. Then run the DocumentationGeneratorApplication program providing a connection string to your database and supplying a file name for the resulting documentation file. The file will be an HTML file.

An example of the resulting documentation file can be viewed at http://jeremykdev.github.io/SqlServerDatabaseDocumentationGenerator/AdventureWorks-sample.html

In addition to creating documentation the application can help you identify objects (tables, views, etc.) without a description in the database metabase and create the SQL script to add descriptions.

Version 1.4 adds detection of Microsoft database design guideline violations such as detecting objects named using reserves keywords and user defined stored procedures named starting with 'sp_*'.

About

Create documentation for Microsoft SQL Server databases.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 55.5%
  • HTML 44.5%