Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server naming conventions
Message
 
To
12/07/2005 11:17:48
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01031553
Message ID:
01031806
Views:
17
My conventions are:

Fields:
No spaces on field names, EVER!
The PK of a table is always named ID (or the same for all tables), and when using it as a FK the convention is (tablename)ID (I write a lot of dynamic SQL and DMO, this makes things easier) - it also forces you to write readable SQL by using the (table).(field name) convention

Tables:
Use the tbl Prefix (tblCustomers) - very optional


SP:
Never preffix with sp_ (forces an extra trip thru the Master DB before resolving in current DB)
Ricardo A. Parodi
eSolar, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform