<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Adam Machanic : best practices</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/best+practices/default.aspx</link><description>Tags: best practices</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Bad Habits to Kick: Inconsistent Indentation</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/10/10/bad-habits-to-kick-inconsistent-indentation.aspx</link><pubDate>Sat, 10 Oct 2009 20:25:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:17530</guid><dc:creator>Adam Machanic</dc:creator><slash:comments>15</slash:comments><comments>http://www2.sqlblog.com/blogs/adam_machanic/comments/17530.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/adam_machanic/commentrss.aspx?PostID=17530</wfw:commentRss><description>My last post in Aaron's series drew a mixed review from some readers, and I'm sure this one will do the same. But that's part of the fun! One of the biggest threats to maintainability is code that's not properly formatted. When I'm called in by a customer...(&lt;a href="http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/10/10/bad-habits-to-kick-inconsistent-indentation.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=17530" width="1" height="1"&gt;</description><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/as+keyword/default.aspx">as keyword</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/best+practices/default.aspx">best practices</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/code+formatting/default.aspx">code formatting</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/habits/default.aspx">habits</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/indenting/default.aspx">indenting</category></item><item><title>Bad Habits to Kick: Not Using "AS"</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/10/08/bad-habits-to-kick-not-using-as.aspx</link><pubDate>Fri, 09 Oct 2009 02:33:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:17387</guid><dc:creator>Adam Machanic</dc:creator><slash:comments>22</slash:comments><comments>http://www2.sqlblog.com/blogs/adam_machanic/comments/17387.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/adam_machanic/commentrss.aspx?PostID=17387</wfw:commentRss><description>Aaron has recently been doing an absolutely fantastic series of posts detailing various "bad habits" that many of us pick up somewhere along the way. These coding anti-patterns aren't going to crash your server, but they will make your code more difficult...(&lt;a href="http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/10/08/bad-habits-to-kick-not-using-as.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=17387" width="1" height="1"&gt;</description><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/as+keyword/default.aspx">as keyword</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/best+practices/default.aspx">best practices</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/column+names/default.aspx">column names</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/derived+tables/default.aspx">derived tables</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/habits/default.aspx">habits</category></item><item><title>Demos from my TechEd session (DAT302: Best Practices for Exception Handling and Defensive Programming in Microsoft SQL Server 2005 and 2008)</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2008/06/05/demos-from-my-teched-session-dat302-best-practices-for-exception-handling-and-defensive-programming-in-microsoft-sql-server-2005-and-2008.aspx</link><pubDate>Thu, 05 Jun 2008 14:48:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:7159</guid><dc:creator>Adam Machanic</dc:creator><slash:comments>1</slash:comments><comments>http://www2.sqlblog.com/blogs/adam_machanic/comments/7159.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/adam_machanic/commentrss.aspx?PostID=7159</wfw:commentRss><description>&lt;p&gt;If you attended my session this morning, &lt;b&gt;thank you&lt;/b&gt;!&amp;nbsp; It's always flattering when people are willing to wake up before 8:00 a.m. just so that they can hear a talk about SQL Server.&amp;nbsp; I had a great time doing the talk, and I think it went well.&amp;nbsp; My sincerest apologies to the person I accidentally hit in the head with the t-shirt; I will work on my throwing arm and hopefully do a better job with the swag tossing next time!&lt;/p&gt;I had a few requests for the demo scripts, and they are attached to this post.&amp;nbsp; Please let me know if you have any questions or issues with them.&amp;nbsp; And thanks again for attending. &lt;br&gt;&lt;p&gt;For those who were not there, the presentation was recorded, and I believe it will be posted online at some point, so keep your eyes open for that.&lt;br&gt;&lt;/p&gt;&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=7159" width="1" height="1"&gt;</description><enclosure url="http://www2.sqlblog.com/blogs/adam_machanic/attachment/7159.ashx" length="3894" type="application/x-zip-compressed" /><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/best+practices/default.aspx">best practices</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/demos/default.aspx">demos</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/errors/default.aspx">errors</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/exception+handling/default.aspx">exception handling</category><category domain="http://www2.sqlblog.com/blogs/adam_machanic/archive/tags/TechEd/default.aspx">TechEd</category></item></channel></rss>