- Casing for SQL Server objects should be similar to that of .Net: Public members (tables, sprocs, views, columns) Pascal cased & Private members camel cased
- Use Store Procedures everywhere possible
- Document and model all security access to database objects that need to be granted, then write the script for this
- Write scripts by hand using a text editor (Query Analyzer, UltraEdit, TextPad, VisualStudio.Net) or an intelligent tool such as Erwin
- Avoid triggers and give much thought to how you write them if you write them as they can have bad side effects
- Avoid using cursors within your stored procedures as logical code such as this should normally be performed in your application (middle) tier not your database tier
- Use source code control
Technology with opinion
Wednesday, September 07, 2005
Best Practices: SQL Server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment