技术,思考的艺术

ASP.net ,C#,VB.NET,SQL + B2B,SCM,CRM,ERP
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

A Simple Tip on SQL Server Stored Procedure

Posted on 2004-12-15 14:16  1werwerfer  阅读(397)  评论(0编辑  收藏  举报

When you write stored procedures (especially for a business or academic project), you never know who will eventually have to alter the code. This top section is useful for comments about the stored procedure, a change log, and other pertinent information. While this is not required, it is just a good programming habit. For your stored procedures, make it look like this:

/*
Name:  usp_
ProcedureName
Description: 
write description of the functionality of user stored procedure
Author:  Rickie
Modification Log: Change

Description                  Date         Changed By
Created procedure            
8/27/2004    Rickie
*/

Stored procedure names usually begin with the prefix "usp_".