We have a pretty automated database we use for internal reporting at work. It is running on a lot of stored procedures executed via sqlcmd and as the stored procedure list was growing larger and larger and manually maintaining the documentation of what each of the SPs is doing seemed to me like a torture I started to think of a query that would get me the list of all my user-defined procedures with their built-in-code descriptions.
Sample procedure name - dbo.RemedySelect Description block:
-- =============================================
-- Author: author_id
-- Create date: 2015/08/03
-- Description: {Insert data from Remedy Report into SRC_REMEDY_RAW table}
-- Batch name: remedy_import.cmd
-- =============================================