I work with an enterprise application and have picked up some tips for DB design
- All tables should have the following fields that helps in audit trail -
LastChangedBy
,LastChanged
,LastChangedPage
- All your stored procedures that have dynamic SQL should have the @
bDebug
parameter. By default it's set to 0. If it's set to 1, print out the dynamic SQL statement and this will be really helpful in debugging. - For CRUD SPs, have a way of partially updating the table. If your table has 10 fields and in one of the SP, you care about updating only 5 fields, have a layer of abstraction to do this.
Any other useful tips you can think of?
EDIT: Thanks for all the answers. I am still looking for an answer that can provide a link to tips/tricks/strategies for DB Design.