<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://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>Kevin Kline : SQL Programming, Tips</title><link>http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/Tips/default.aspx</link><description>Tags: SQL Programming, Tips</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Dev Advice: Make a Tiny Dev Database Act Like a HUGE Prod Database</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2012/03/16/dev-advice-make-a-tiny-dev-database-act-like-a-huge-prod-database.aspx</link><pubDate>Fri, 16 Mar 2012 14:30:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42346</guid><dc:creator>KKline</dc:creator><slash:comments>3</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/42346.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=42346</wfw:commentRss><description>If you're struggling with doing development on a big SQL Server database, learn the ropes on cloned databases asap! ...(&lt;a href="http://sqlblog.com/blogs/kevin_kline/archive/2012/03/16/dev-advice-make-a-tiny-dev-database-act-like-a-huge-prod-database.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=42346" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tools/default.aspx">Tools</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Developer/default.aspx">Developer</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQLMag/default.aspx">SQLMag</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Transact-SQL+Programming/default.aspx">Transact-SQL Programming</category></item><item><title>Database Maintenance Scripting Done Right</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2011/02/18/database-maintenance-scripting-done-right.aspx</link><pubDate>Fri, 18 Feb 2011 13:16:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:33607</guid><dc:creator>KKline</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/33607.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=33607</wfw:commentRss><description>I first wrote about useful database maintenance scripts on my SQLBlog account way back in 2008. Hmmm - now that I think about it, I first wrote about my own useful database maintenance scripts in a journal called SQL Server Professional back in the mid-1990's...(&lt;a href="http://sqlblog.com/blogs/kevin_kline/archive/2011/02/18/database-maintenance-scripting-done-right.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=33607" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Performance/default.aspx">Performance</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Administration/default.aspx">Administration</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/People/default.aspx">People</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tools/default.aspx">Tools</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Automation/default.aspx">Automation</category></item><item><title>2009: The Year in List Form</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2010/01/05/2009-the-year-in-list-form.aspx</link><pubDate>Tue, 05 Jan 2010 18:53:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:20593</guid><dc:creator>KKline</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/20593.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=20593</wfw:commentRss><description>Before I jump onto the Goals and Themeword meme started by my buddy, Thomas LaRock ( blog | twitter ), I decided I'd spend a few minutes looking back on both the year 2009. (From a personal standpoint, the 00's were my most difficult decade yet. Major...(&lt;a href="http://sqlblog.com/blogs/kevin_kline/archive/2010/01/05/2009-the-year-in-list-form.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=20593" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Performance/default.aspx">Performance</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Humor/default.aspx">Humor</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Trends/default.aspx">Trends</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Administration/default.aspx">Administration</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/People/default.aspx">People</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Opinion/default.aspx">Opinion</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQLIOSIM/default.aspx">SQLIOSIM</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tools/default.aspx">Tools</category></item><item><title>Better Ways to Get Transaction Log Information</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2008/11/05/better-ways-to-get-transaction-log-information.aspx</link><pubDate>Wed, 05 Nov 2008 19:12:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9871</guid><dc:creator>KKline</dc:creator><slash:comments>4</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/9871.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=9871</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;If you've been around a while, you tend to do things the way you first learned how to do them.&amp;nbsp; This can turn you into an "old timer" whose oblivious to new and better ways to do things that have appeared in the newer releases of the technology.&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-bidi-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-bidi-font-family:'Times New Roman';"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;Take measuring log space, for example.&amp;nbsp; If I wanted to find out how much log space has been utilized, I would dash off a DBCC SQLPERF(LOGSPACE) statement.&amp;nbsp; But SQLPERF(LOGSPACE) only shows used/free space and not much more.&amp;nbsp; I might use DBCC LOGINFO to see how the active log "moved across the ldf file", then examine the values columns such as "active" for more understanding.&amp;nbsp; Or I could go even more old-school, and look at the PerfMon counters or perhaps at the PerfMon counters exposed through the system table sysperfinfo.&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-bidi-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&amp;nbsp;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-bidi-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;However, I want to thank Tibor Karaszi&amp;nbsp;and Gert Drapers for this great tip.&amp;nbsp; Simply use this query:&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-bidi-font-family:'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-FAMILY:'Courier New';"&gt;&lt;FONT size=3&gt;SELECT SUM([Log Record Length]) &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-FAMILY:'Courier New';"&gt;&lt;FONT size=3&gt;FROM ::fn_dblog(null,&amp;nbsp;null) &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-FAMILY:'Courier New';"&gt;&lt;FONT size=3&gt;WHERE...&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;The ::fn_dblog pseudotable provides a wonderful amount of information about the transaction log. Read more about this undocumented function at &lt;/FONT&gt;&lt;A href="http://www.novicksoftware.com/udfOfWeek/Vol1/T-SQL-UDF-Volume-1-Number-27-fn_dblog.htm"&gt;&lt;SPAN style="COLOR:blue;"&gt;&lt;FONT face="Times New Roman" size=3&gt;http://www.novicksoftware.com/udfOfWeek/Vol1/T-SQL-UDF-Volume-1-Number-27-fn_dblog.htm&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;FONT face="Times New Roman" size=3&gt;, or google '::fn_dblog' for lots of other sources of information about it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;-Kevin&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9871" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item><item><title>Implementing A Hash Partition In SQL Server 2005</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2008/04/21/implementing-a-hash-partition-in-sql-server-2005.aspx</link><pubDate>Mon, 21 Apr 2008 20:45:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:6326</guid><dc:creator>KKline</dc:creator><slash:comments>4</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/6326.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=6326</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;One of the best things about becoming a Microsoft MVP is meeting other MVPs.&amp;nbsp; I bring this up because last week was the annual MVP Summit in Seattle, WA.&amp;nbsp; I was really looking forward to meeting &lt;A class="" title="Steve Kass' Home Page" href="http://www.users.drew.edu/skass/" target=_blank&gt;Steve Kass&lt;/A&gt;.&amp;nbsp; Steve Kass is one of the smartest SQL Server MVPs I’ve encountered, especially&amp;nbsp;when it comes to SQL questions.&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;A while back, I noticed that Steve made an interesting recommendation for a hash function that you could use for partitioning&amp;nbsp;that I thought was worth noting.&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;A hash function would be very useful if you wanted to implement your own variation of a range partition using a hash function rather than the standard sort of range partitioning where colA values of A-H go to partition 1, values of I-P got to partition 2, and so forth.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;Steve notes that you could use the following for hashing something small in size:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;CAST(&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SUBSTRING(&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;HASHBYTES('SHA1',&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CAST(my_col AS NVARCHAR(appropriate_size))),8,1) AS tinyint)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;This is just an off the cuff recommendation from Steve and might need some fine tuning, for example, the CAST might throw off persistence.&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;However, it’s a good start.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;Thanks, Steve, for sharing this and thanks, readers, for sharing any improvements you might develop out in the field.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=6326" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category></item><item><title>NASTY RUMORS ABOUT MAXDOP</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2008/04/15/nasty-rumors-about-maxdop.aspx</link><pubDate>Tue, 15 Apr 2008 17:48:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:6225</guid><dc:creator>KKline</dc:creator><slash:comments>12</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/6225.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=6225</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;You'd think an article called "NASTY RUMORS ABOUT MAXDOP" would have something to do with Britney Spears or maybe Robert Downy Jr, but in that case it'd be total fiction (at least, it would be coming from my pen).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;So, I was en route to the 2008 Microsoft MVP Summit yesterday and I had a chance to catch up on my reading.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Times New Roman" size=3&gt;You may have heard some rumors that you should only ever set MAXDOP (maximum degrees of parallelism) to an even number.&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;I can neither confirm nor deny these rumors since I haven’t had time to test this yet myself.&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;But I’m curious if any readers out there have definitive information one way or the other. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;Evidently, there are two roles involved in parallel processing, a writer and a consumer.&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;Naturally, when two roles are at work, the MAXDOP setting doesn’t have to share resources when it is set in increments of two.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;Hope this helps,&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT face="Times New Roman" size=3&gt;-Kevin&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=6225" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Internals/default.aspx">Internals</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category></item><item><title>Beware of computed columns</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2007/10/11/beware-of-computed-columns.aspx</link><pubDate>Thu, 11 Oct 2007 04:20:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:2934</guid><dc:creator>KKline</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/2934.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=2934</wfw:commentRss><description>&lt;P&gt;If you use computed columns a lot, you might want to know about some new behavior in SQL Server 2005.&lt;/P&gt;
&lt;P&gt;One of the changes in SQL Server 2005 was to evaluate expressions in queries to match computed column expressions and identify redundant expressions, in order to prevent run-time errors in queries that have unsafe expressions. This is documented in the behavior changes topic:&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms143359.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms143359.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Check it out,&lt;/P&gt;
&lt;P&gt;-Kev&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=2934" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Internals/default.aspx">Internals</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category></item><item><title>Useful Index Information Scripts for SQL Server 2005</title><link>http://sqlblog.com/blogs/kevin_kline/archive/2007/08/31/useful-index-information-scripts-for-sql-server-2005.aspx</link><pubDate>Fri, 31 Aug 2007 22:31:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:2404</guid><dc:creator>KKline</dc:creator><slash:comments>3</slash:comments><comments>http://sqlblog.com/blogs/kevin_kline/comments/2404.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/kevin_kline/commentrss.aspx?PostID=2404</wfw:commentRss><description>&lt;FONT size=2&gt;
&lt;P&gt;Italian SQL Server MVP Davide Mauri has released four very useful scripts that simplify the usage of SQL Server 2005 DMVs to discover, analyze, and understand index usage and health.&amp;nbsp; The&amp;nbsp;queries are not rocket science,&amp;nbsp;but they are long and rely on DMVs that you may not have learned about yet.&amp;nbsp; They also provide useful and easy shortcuts to common questions on SQL Server 2005.&amp;nbsp; Check them out at:&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;A href="http://www.davidemauri.it/SqlScripts.aspx"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;http://www.davidemauri.it/SqlScripts.aspx&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;I now use them a lot.&amp;nbsp; So I'm sure you'll find them useful too.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Great job, Davide, and thank you for sharing!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Cheers,&lt;/P&gt;
&lt;P&gt;-Kev&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=2404" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/SQL+Programming/default.aspx">SQL Programming</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Internals/default.aspx">Internals</category><category domain="http://sqlblog.com/blogs/kevin_kline/archive/tags/Tips/default.aspx">Tips</category></item></channel></rss>