guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
OOH! Naming conventions... Has there even been a standard set for naming database entities? I usually name them as follows:
Tables: TableName
Stored Procedures: sp_Entity_Action (i.e. sp_Employee_Create)
Views: sp_Entity_Details (i.e. sp_Employee_ContactDetails)
Functions: fx_Entity_Function (i.e. fx_Employee_CalculateWorkingDays)
You might want to change from sp_ to proc_ or something different. sp_ gives indication to the database server that it's a system stored procedure, so it looks it up in the master database first and then when it can't find it queries the local one.
Saves you a few queries and CPU cycles