This is a standard of how we should document databases and data structures.
Philosophy
In order to fully understand our data structures and to make our software more maintainable we want to have good documentation of our T-SQL. This helps lower errors in code and helps future developers understand why a database or data structure exists.
Documentation Guidance
- Database
- Each database needs to include a description and will be housed in an extend property that should be detailed enough to understand what the database is for and why it exists.
- Tables
- Each table needs to include a description and will be housed in an extend property that should be detailed enough to understand what the table is for and why it exists.
- Columns
- Each column needs to include a description and will be housed in an extend property that should be detailed enough to understand what the column is for and why it exists.
- Indexes
- Each column needs to include a description and will be housed in an extend property that should be detailed enough to understand what the index is for and why it exists.
- Foreign Keys
- Each foreign key needs to include a description and will be housed in an extend property that should be detailed enough to understand what the foreign key is for and why it exists.
- Views
- Each view needs to include a description and will be housed in an extend property that should be detailed enough to understand what the view is for and why it exists.
- View Columns
- Each view column needs to include a description and will be housed in an extend property that should be detailed enough to understand what the view column is for and why it exists.
- Stored Procedure
- Each Stored Procedure needs to include a description and will be housed in an extend property that should be detailed enough to understand what the Stored Procedure is for and why it exists.
- Stored Procedure Parameters
- Each stored procedure parameter needs to include a description and will be housed in an extend property that should be detailed enough to understand what the stored procedure parameter is for and why it exists.
- Functions
- Each function needs to include a description and will be housed in an extend property that should be detailed enough to understand what the function is for and why it exists.
- Function Parameters
- Each function parameter needs to include a description and will be housed in an extend property that should be detailed enough to understand what the function parameter is for and why it exists.
- Type
- Each type needs to include a description and will be housed in an extend property that should be detailed enough to understand what the type is for and why it exists.
Recommended Tool:
Red Gate SQL Doc
spot the interweb manual flickr photo by zappowbang shared under a Creative Commons (BY) license