I was wondering what each of your Business Practice is of creating header comment for each of your SQL objects (views,functions,triggers)...I know I have a really bad habit of not always doing it with everything I create and or leaving parts out.. I want to start documenting these things for my company..
Do you all give examples, define the Pre and Post conditions? etc....
Do you have a different format for each type of language.. your VB,ActiveX,Coldfusion,Javascript,CSS... all have the same format?
Here is my typical header comment
/*
Object: lca_sp_TrackErrors
Author: JB
Date: 3/8/2005
Purpose: Track User Data-Entry Errors. When a LCA Businerss Process has been broken
Note: [notes about the object that a user will need to know]
Updates:
[date] [author]
* [note about update]
*/
We use our Source Control for SQL procs
It gives you the date for each edit and the person who edited it. It also gives you a place to comment on your changes. You lose the benefit of editing the procedure right in SQL Management Studio, but that is now part of SQL 2005.