Click here to Skip to main content
15,891,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello frnds,

I am making database in SqlServer 2005.

So, how can i choose a good name for that database.

Please help , Thanks.
Posted
Comments
[no name] 8-Dec-12 1:54am    
Like ?? for what purpose you are making DB, share here...

1 solution

The naming conventions used in SQL Server's AdventureWorks database demonstrate many best practices in terms of style.

To summarize:

•Object names are easily understood
•Table names are not pluralized ("User" table not "Users")
•Abbreviations are few, but allowed (i.e. Qty, Amt, etc.)
•PascalCase used exclusively with the exception of certain column names (i.e. rowguid)
•No underscores
•Certain keywords are allowed (i.e. Name)
•Stored procedures are prefaced with "usp"
•Functions are prefaced with "ufn"
You can find more details here:

•AdventureWorks Data Dictionary
•Stored Procedures in AdventureWorks
•Functions in AdventureWorks
One caveat: database naming conventions can be very controversial and most database developers I've met have a personal stake in their style. I've heard heated arguments over whether a table should be named "OrderHeader" or "OrderHeaders."
 
Share this answer
 
Comments
ridoy 8-Dec-12 2:36am    
+5
OriginalGriff 25-Jan-13 4:05am    
Reason for my vote of one:
If you are going to plagiarise answers from other sites:
http://stackoverflow.com/questions/3593582/database-naming-conventions-by-microsoft
Then is would probably help if you copied the links as well so it wasn't quite so obvious.

We do not take kindly to plagiarism here - a link to the site would have been perfectly acceptable, but claiming it as your own work is not.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900