Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Standards

Author  Topic 

MPEvans
Starting Member

7 Posts

Posted - 2006-03-30 : 03:52:20
Are there any formal standards published (eg by Microsoft) for naming of tables, fields, fk fields, sps, etc in a SQL Database?

If not, what do you use?

Thanks,
Martin

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-03-30 : 03:56:35
Some reference you can refer to
http://vyaskn.tripod.com/object_naming.htm
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=38954
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=44790
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=45018



KH

Choice is an illusion, created between those with power, and those without.
Concordantly, while your first question may be the most pertinent, you may or may not realize it is also the most irrelevant

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-30 : 04:37:21
Also, It is better to avoid space, numeric values as object names, although you are allowed to do so. Otherwise you cant avoid this type of queries
create table [   ] (i int)

select * from [ ]

create table [1]([2] int, [3] int, [4] datetime)

select * from [1] where [2]>3 and [4]>getdate()

Drop table [ ]
Drop table [1]


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-03-30 : 04:39:30
Good illustration. Madhivanan



KH

Choice is an illusion, created between those with power, and those without.
Concordantly, while your first question may be the most pertinent, you may or may not realize it is also the most irrelevant

Go to Top of Page
   

- Advertisement -