Click here to Skip to main content
15,886,724 members
Articles / Desktop Programming / Win32

T-SQL Coding Standard

Rate me:
Please Sign up or sign in to vote.
1.42/5 (15 votes)
1 Oct 2008CPOL 100.7K   2K   35   28
T-SQL Coding Standard - for programming the Microsoft SQL Server 2005 (DRAFT)

Introduction

I am currently working on a T-SQL coding standard to formalize our work. Having been inspired by the IDesign C# Coding Standard, I made this T-SQL Coding Standard Document. Maybe this will have some value for the community. It is work in progress and I intend to update it as my experience with its implementation continues.

Unfortunately, I wrote the document in Word using loads of formatting and CodeProject's editor cannot display the document directly. Instead, I leave the document here in a zip for download.

When the document has matured some more, I will reformat it in HTML and modify this article.

Casper Leon Nielsen - 21. Sep 2006. (modified 1st October 2008)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect HelloGroup
Denmark Denmark
Casper Leon Nielsen is a MCP/MCAD and is currently employed by HelloGroup a/s - a technical savy (yes that whats they are calling it these days) company.

Comments and Discussions

 
Questiongood Pin
Hua Yujun1-Apr-13 21:16
Hua Yujun1-Apr-13 21:16 
Questiongood Pin
Hua Yujun1-Apr-13 20:44
Hua Yujun1-Apr-13 20:44 
Questiongood Pin
Hua Yujun1-Apr-13 20:44
Hua Yujun1-Apr-13 20:44 
http://msdn.microsoft.com/en-us/library/ff647793.aspx[^]
I like programing

Questiongood Pin
Hua Yujun1-Apr-13 19:51
Hua Yujun1-Apr-13 19:51 
GeneralNice Pin
ramakrishnankt22-Nov-11 20:22
ramakrishnankt22-Nov-11 20:22 
QuestionAny Update? Pin
jhigaki9-Jul-08 6:06
jhigaki9-Jul-08 6:06 
AnswerRe: Any Update? Pin
Casper Leon Nielsen30-Sep-08 23:21
Casper Leon Nielsen30-Sep-08 23:21 
GeneralTable Naming - Statement Formatting Pin
Ahmed_Barakat31-Jan-08 6:16
Ahmed_Barakat31-Jan-08 6:16 
GeneralRe: Table Naming - Statement Formatting Pin
Casper Leon Nielsen30-Sep-08 23:19
Casper Leon Nielsen30-Sep-08 23:19 
QuestionNOLOCK? Pin
Rhodesie28-Sep-06 6:33
Rhodesie28-Sep-06 6:33 
AnswerRe: NOLOCK? Pin
Casper Leon Nielsen28-Sep-06 23:12
Casper Leon Nielsen28-Sep-06 23:12 
GeneralRe: NOLOCK? Pin
Casper Leon Nielsen29-Sep-06 0:29
Casper Leon Nielsen29-Sep-06 0:29 
GeneralRe: NOLOCK? Pin
Rhodesie1-Oct-06 22:59
Rhodesie1-Oct-06 22:59 
Answerderived tables Pin
Casper Leon Nielsen28-Sep-06 23:15
Casper Leon Nielsen28-Sep-06 23:15 
GeneralDiscussion on joelonsoftware Pin
Casper Leon Nielsen24-Sep-06 10:50
Casper Leon Nielsen24-Sep-06 10:50 
Generalprefixing stored procedures with sp_ is bad practice Pin
Stephen Brannan21-Sep-06 13:13
Stephen Brannan21-Sep-06 13:13 
AnswerAnd the standard says you shouldnt Pin
Casper Leon Nielsen21-Sep-06 20:53
Casper Leon Nielsen21-Sep-06 20:53 
GeneralRe: And the standard says you shouldnt Pin
Stephen Brannan22-Sep-06 7:21
Stephen Brannan22-Sep-06 7:21 
AnswerConclusion [modified] Pin
Casper Leon Nielsen22-Sep-06 8:33
Casper Leon Nielsen22-Sep-06 8:33 
GeneralRe: Conclusion Pin
Stephen Brannan22-Sep-06 11:28
Stephen Brannan22-Sep-06 11:28 
GeneralWhy not... Pin
Colin Angus Mackay21-Sep-06 3:41
Colin Angus Mackay21-Sep-06 3:41 
AnswerRe: Why not... Pin
Casper Leon Nielsen21-Sep-06 3:57
Casper Leon Nielsen21-Sep-06 3:57 
GeneralAvoid using the blob type - NOT Pin
__alias21-Sep-06 3:24
__alias21-Sep-06 3:24 
QuestionRe: Avoid using the blob type - NOT Pin
Casper Leon Nielsen21-Sep-06 3:34
Casper Leon Nielsen21-Sep-06 3:34 
AnswerRe: Avoid using the blob type - NOT Pin
__alias21-Sep-06 10:14
__alias21-Sep-06 10:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.