Hi, all.
I'm setting up a table in our database to store pertinent data concerning stored procedures to aid with code reuse during development and to assist in future maintenance.
Here's the table structure:
An example record:
Questions: what would you add to this? how could it be improved?
Thanks, & Happy Friday!
< M!ke >
I'm setting up a table in our database to store pertinent data concerning stored procedures to aid with code reuse during development and to assist in future maintenance.
Here's the table structure:
Code:
CREATE TABLE dbo.SPlog
(
pkID int IDENTITY
, ProcedureName varchar(100) NOT NULL -- using TableNameOrBusinessComponent_Action naming convention
, Purpose varchar(500) NOT NULL -- short description of what it does
, InputParams varchar(1000) NOT NULL -- what goes in
, OutputParams varchar(1000) NOT NULL -- what comes out
, Details varchar(1000) NOT NULL -- additional info
, CalledSPs varchar(1000) NOT NULL -- other procedures used by this one
, UsedBySPs varchar(1000) NOT NULL -- other procedures that use this one
, CreatedBy varchar(50) NOT NULL -- original developer name
, Created smalldatetime NOT NULL -- use GETDATE() for insert
, CurrentRevBy varchar(50) NULL -- latest reviser's name
, CurrentRev smalldatetime NULL -- for updates; still use GETDATE()
, CONSTRAINT PK_SPlog PRIMARY KEY (pkID)
)
GO
An example record:
Code:
ProcedureName = TableNamePrimaryKey_VAL
Purpose = checks to see if a primary key value exists on a table
InputParams = @intPKid - int
OutputParams = @bitExists - bit
Details = this is a bad example
CalledSPs = none
UsedBySPs = TableName_GET, TableName_SEL, TableName_UPD, TableName_DEL
CreatedBy = LNBruno
Created = Mar 2 2007 8:06AM
CurrentRevBy = NULL
CurrentRev = NULL
Questions: what would you add to this? how could it be improved?
Thanks, & Happy Friday!
< M!ke >