Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server naming conventions
Message
From
14/07/2005 10:00:13
Mike Yearwood
Toronto, Ontario, Canada
 
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:
01032616
Views:
19
>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)

Now that's one for the standards book!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform