SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

More     

books >> sql server 2005 books >> Joe Celko's SQL Programming Style

Joe Celko's SQL Programming Style


Aug 17, 2006

'A Manual of Style' for the SQL Programmer


Review by SQL-Server-Peformance.Com



Joe Celko's SQL Programming Style
By Joe Celko
272 pages. Morgan Kaufmann. $29.95.

Find out more about this book, or purchase it, from Amazon.com.



When you look at today's software applications, you'll find that almost every application works with data in one way or another. Many times that data is stored in a database. Most software developers now work more or less regularly with databases.

Database development, however, is quite a bit different from application programming. Naturally, a good application developer isn't necessarily also a good database developer. And it's not really important whether the database you work with is a desktop database like Microsoft Access or a full-blown relational database server like SQL Server. Paradigms, guidelines, or frameworks that are true in application development aren't necessarily true in database development, and can even be detrimental to it. Clearly, database development needs "style" rules, too. That's where this book comes into play.

Joe Celko, maybe one the most prominent representatives of the database community these days, has written some of the best books about SQL programming in general. This book, however, is different. "SQL Programming Style" doesn't teach you how to become a better SQL developer with SQL puzzles and brainteasers. Rather, it shows you "how to work in logical and declarative terms," as the chapter titles suggest:

  • Names and Data Elements
  • Fonts, Punctuation, and Spacing
  • Data Declaration Language
  • Scales and Measurements Data Encoding Schemes
  • Coding Choices
  • How to use VIEWS
  • How to write Stored Procedures
  • Heuristics
  • Thinking in SQL
  • Resources
  • Bibliography

Celko provides guidelines for database development. Whether it is a discussion about good naming conventions, how to type and indent code, why auto-numbers (aka SQL Server's IDENTITY property) may or may not make a good key, or where CHECK constraints should be placed in the code — this is database development, as it should be done, at least in his view.

Some of the rules in the book are (I hope) common sense, some of them are backed up by international standards, and some are more Celko specific. All rules include the reasoning behind why they should be used, which makes "SQL Programming Style" more of a reference book than one you read chapter by chapter. When in doubt, look it up. Even if you don't agree with all the rules Celko presents, you can use this book as a building block for your own programming style.

There is a strong need for a set of good database coding guidelines. A clear and consistent programming style makes life easier for the database developer and, even more importantly, the developer that actually maintains the code. "SQL Programming Style" will help you develop that style. Of course, many of the rules aren't new to people who follow some of the online communities in which Celko participates, but they are handily summarized here, all in one place. This alone makes it a good buy.


        








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 2010 Jude O'Kelly. All rights reserved