<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Straight Path Solutions, a SQL Server Consultancy &#187; #sqlhelp</title>
	<atom:link href="http://www.straightpathsql.com/archives/category/sqlhelp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.straightpathsql.com</link>
	<description>Mike Walsh&#039;s Thoughts on SQL Server, Professional Development and Life</description>
	<lastBuildDate>Sat, 30 Mar 2013 18:01:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Prof. SQL Server 2008 Internals &amp; Troubleshooting</title>
		<link>http://www.straightpathsql.com/archives/2010/10/prof-sql-server-2008-internals-troubleshooting/</link>
		<comments>http://www.straightpathsql.com/archives/2010/10/prof-sql-server-2008-internals-troubleshooting/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 02:48:18 +0000</pubDate>
		<dc:creator>Mike Walsh</dc:creator>
				<category><![CDATA[#sqlhelp]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Book Review]]></category>
		<category><![CDATA[Pet Peeve]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Syndicate]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Free Tools]]></category>
		<category><![CDATA[ft]]></category>
		<category><![CDATA[Learning SQL Server]]></category>
		<category><![CDATA[SQL Server Internals and Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.straightpathsql.com/?p=889</guid>
		<description><![CDATA[<p>This book needs to be in your library.
...</p><p>The post <a href="http://www.straightpathsql.com/archives/2010/10/prof-sql-server-2008-internals-troubleshooting/">Prof. SQL Server 2008 Internals &#038; Troubleshooting</a> appeared first on <a href="http://www.straightpathsql.com">Straight Path Solutions, a SQL Server Consultancy</a>.</p><img src="http://track.hubspot.com/__ptq.gif?a=140200&k=14&bu=http%3A%2F%2Fwww.straightpathsql.com&r=http%3A%2F%2Fwww.straightpathsql.com%2Farchives%2F2010%2F10%2Fprof-sql-server-2008-internals-troubleshooting%2F&bvt=rss&p=wordpress" style="float:left;" xml:base="http://www.straightpathsql.com/feed/" width="1" height="1" border="0" align="right"/>]]></description>
			<content:encoded><![CDATA[<p><strong>The <span style="text-decoration: line-through;">bottom</span> top line:</strong> This <a href="https://www.amazon.com/dp/0470484284?tag=wwwstraightpa-20&amp;camp=213381&amp;creative=390973&amp;linkCode=as4&amp;creativeASIN=0470484284&amp;adid=1QRJ52DC5YJ72SNJ1EZA&amp;">book</a> needs to be in your library. If you are a DBA, a developer, a line manager or a support person who works with SQL Server 2005 or 2008 this book needs to be in your library.</p>
<h2>Full Disclosure</h2>
<p>I got this book for free courtesy of one of the authors (SQL Server MVP, Master, Blogger, Presenter, etc. &#8211; <a href="http://brentozar.com" target="_blank">Brent Ozar</a> (<a href="http://twitter.com/brento" target="_blank">@BrentO</a> on twitter)). It was a review copy and it even had a corny little note (something about my eyes and the way the light hits them.. I can&#8217;t repeat the rest). That&#8217;s not why I like this book &#8211; I like it because it is</p>
<div id="attachment_899" class="wp-caption alignright" style="width: 310px"><a href="http://www.straightpathsql.com/wp-content/uploads/2010/10/SQL-Server-2008-Book.jpg"><img class="size-medium wp-image-899" title="Professional SQL Server 2008 Internals and Troubleshooting" src="http://www.straightpathsql.com/wp-content/uploads/2010/10/SQL-Server-2008-Book-300x225.jpg" alt="The Book (And the balding blogger)" width="300" height="225" /></a><p class="wp-caption-text">Yeah its signed, but I use it a lot anyway, looks well worn, no?</p></div>
<p>incredibly useful and practical. More on that throughout but a quick note &#8211; I can&#8217;t really think of another way to describe most of the chapters other than really useful. To me, it is a very high compliment. This is a book (as you can see in the picture) that gets a lot of use. It is a book that is actually a tool in the toolbox for solving problems. Yes it is great for learning as well but most of the content can be put to use straight away by a DBA of any level.</p>
<h2>Overview</h2>
<p>Finally! A book that combines internals and &#8220;hit the ground running&#8221; practical tips and tricks. This book seems to really have the perfect balance of knowledge beyond what most have in the career field and real life, day job applications of that knowledge. I enjoy reading about storage best practices in other books but this book actually takes you on a journey to test that configuration out, for example (instead of just suggesting you test it and moving on). In depth where it needs to be with items like memory architecture or locking and latching, you&#8217;ll get academic knowledge of SQL Server out of this one, for sure. Yet incredibly useful with tools you can obtain for free in diagnosing your own problem, this book may even save you some consulting dollars (at least in the beginning phases of incidents). You can see more about the book and its authors at the <a href="http://sqlservertroubleshooting.com/" target="_blank">official site</a>. You can order it from the site or I&#8217;ll have links at the bottom (yes, I get a small percentage of any sales made through my Amazon links at bottom. Helps me bring you the blog <img src='http://www.straightpathsql.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ).</p>
<h2>Where Else Can You Spend $40 And Get:</h2>
<ul>
<li><strong>An inside understanding of the &#8220;basics&#8221; </strong>- Chapters like:
<ul>
<li><strong>SQL Server Architecture</strong> &#8211; Looking at SQL through the example of what a query experiences you&#8217;ll meet the Checkpoint process, Recovery Models, the various engines that make up SQL Server and understand the way SQL was built and the way it organizes access to your data. No rabbit trails, just the things that will make you a better developer or DBA if you understand. Want to go even deeper? Understand these concepts first and then pick up the Internals book, go to a week long course with <a href="http://www.sqlskills.com/SQLImmersionGeneralInfo.asp" target="_blank">Paul Randal and Kimberly Tripp</a> (I will be once they come my way again) or a <a href="http://www.brentozar.com/archive/2010/10/planning-sqlskills-immersion-events/" target="_blank">Brent Ozar deep dive</a>.</li>
<li><strong>Understanding Memory</strong> &#8211; From the hardware of physical memory to 32 bit vs 64 bit architecture, to Virtual Address Space and how SQL organizes and manages memory this chapter gives you what you need to help lead memory architecture and setup decisions with your SQL environments<strong>.</strong></li>
<li><strong>Working with Storage</strong> &#8211; Great chapter by Brent. He covers the terminology you need to know working with a SAN, the RAID levels you&#8217;ll work with and how to configure (and prove/test!) your storage setup for your performance needs. I love that this chapter includes time spent on testing your setup. Talking in theory about how to setup is great. Even suggesting you test is great. When I first started out, I had no clue how to actually do this testing. This chapter is, well, really useful.</li>
<li><strong>The CPU And Query Processing &#8211; </strong>Again, a look from the standpoint of a resource &#8211; the CPU. But it isn&#8217;t just a walk through the CPU&#8217;s architecture and what they do (though it does start off with that). It is, instead, a discussion on the aspects of CPUs (Multicore/Hyperthreading, Processor Cache, Multiprocessing, NUMA) that affect SQL Server, and why. The chapter then finishes with a great look at query optimization and execution including many of the important concepts there (like statistics, plan compilation, etc.)</li>
</ul>
</li>
<li><strong>The &#8220;How and Why&#8221; Behind Some Common Issues You Are Having </strong>with chapters like:
<ul>
<li><strong>Locking and Latches &#8211; </strong>Every chapter is great in this book but this chapter is a very in depth look at locking and latching within SQL Server. Again the angle on the attack in the chapter isn&#8217;t just &#8220;learn it and know it academically&#8221; it is &#8220;here&#8217;s what is happening which might explain why you are seeing this problem&#8221;.  This chapter will help you decide on an isolation level, weigh out the pros and cons of the optimistic isolation levels in SQL Server (Snapshot Isolation and Read Committed Snapshot Isolation) and explain what is happening here. It finishes with a great treatment of latching. I learned a lot reading this chapter and I think you (and your developers!) will also.</li>
<li><strong>SQL Server Waits and Extended Events &#8211; </strong>I wrestled where to include this. It is basic information in the sense that knowing how to interpret waits is key to many performance issues. This chapter is also very (warning) useful for actively troubleshooting your environment. Like the rest of the chapters it starts out with the basic understanding behind what a wait is and it covers some of the most common waits you encounter, what they mean and throws you some tools to further investigate these. It also introduces (and goes beyond introduction) extended events &#8211; a great feature of SQL Server 2008 for investigating and resolving issues in your environment. The author of this chapter (<a href="http://sqlblog.com/blogs/jonathan_kehayias/" target="_blank">Jonathan Kehayias</a> &#8211; <a href="http://twitter.com/sqlsarg" target="_blank">SQLSarg</a> on twitter for those who have difficulty spelling, as I do) gave an excellent presentation on Extended Events last year at the SQL PASS Summit. He knows his stuff here and he shows you how to unlock the potential in this feature. He also links you to a great free (a theme in this book) tool for managing your extended events through a UI.</li>
<li><strong>Knowing TempDB -</strong> How many times you have seen your tempdb grow out of control without understanding why? How many times have you wondered whether or not to use a Table Variable or a Temp Table? This chapter first explains the organization and use of the TempDB and then it tells you about some of the problems you&#8217;ve probably encountered or heard about and how to deal with them. Again, a really useful chapter. (Can you tell that my kids watch Thomas the Tank Engine sometimes? The engines like hearing that from Mr. What&#8217;s his name</li>
</ul>
</li>
<li><strong>Teach You How To Troubleshoot with chapters like:</strong>
<ul>
<li><strong>Defining Your Approach To Troubleshooting &#8211; </strong>&#8220;I thought this was an advanced book!?&#8221; I have many pet peeves (sometimes I am an offender of my pet peeves, but I&#8217;m a work in progress). One of them is <a href="http://www.straightpathsql.com/archives/tag/troubleshooting/" target="_blank">troubleshooting skills</a> or a lack thereof. It is my only (to date) <a href="http://www.sqlservercentral.com/articles/Troubleshooting/66134/" target="_blank">SQL Server Central article topic</a> even. I&#8217;ve worked with a lot of folks who have more expertise in a skill set than I but they can&#8217;t troubleshoot their way out of a paper bag. They lack a consistent methodology and click around for their answer. This chapter discusses an approach and a way to setup future troubleshooting engagements with proper SLAs and expectations. It goes on to give practical SQL Server related advice (perf counters, an overview of tools and techniques, tips for SSAS troubleshooting, etc.)</li>
<li><strong>Viewing Server Performance with PerfMon and the PAL Tool &#8211; </strong>Great! I <a href="http://www.straightpathsql.com/archives/2009/08/benchmarking-who-needs-it/" target="_blank">blogged about using PAL</a> awhile back. It is great to see it discussed in a book. These are free tools that you can use to identify, diagnose and fix many issues in SQL Server. This chapter is a simple recipe for starting to baseline your environment or troubleshoot an active problem. So for $40, this chapter gets you some of the basic first things I&#8217;ll do when on a site and I need to collect data to understand what is happening. It doesn&#8217;t just stop there on the collecting. It talks about some of the more common bottlenecks you run into and then goes into detail on how to extract and use perfmon data in various formats.</li>
<li><strong>Tracing SQL Server With SQL Trace and Profiler &#8211; </strong>Again, you already have this tool. Keeping in line with the rest of the book, this will give you the architecture behind the tool and show you the implications that has on how to use it (and when and why to use it in its various flavors or implementations). It covers querying the black box trace, granting rights to run trace, using trace for auditing and tips and tricks on how to analyze your data.</li>
<li><strong>Consolidating Data Collection with SQLDIAG and The Perfstats Script &#8211; </strong>Again, more practical information about free tools that you can use to analyze issues in your environments. These are tools designed for use by Microsoft support originally. They were designed to gather the important information and review it quickly to identify issues. Well they are available to you and this chapter shows you how to use them.</li>
</ul>
</li>
</ul>
<p>I&#8217;m getting up in the word count here. There are more chapters that are practical for us as well. Including some great chapters showing us things like using the SQL Server Managemnet Studio reports interface (with standard reports and freely available performance dashboard reports) to figure out what is going on in your environment. Not just how to use the reports but what to do with the data. Analyzing the data with another free and powerful tool called SQL Nexus. There is also a chapter on the RML utilities (Replay Markup Language) to replay a problematic (or normal) workload through your system (again.. free tools). These RML utilities can also help you test a Service Pack or run a load through an environment repeatedly after making various changes, etc.</p>
<p>I probably forgot a chapter or two here but I think you get the point &#8211; Great book. Recently someone asked what books you had to have for SQL Server. I personally think it is this book and one of Itzik&#8217;s books on T-SQL Querying (<a href="http://www.amazon.com/gp/product/0735626030?ie=UTF8&amp;tag=wwwstraightpa-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0735626030" target="_blank">SQL Server 2008 version</a>) to start.</p>
<h2>The Bad?</h2>
<p>I can&#8217;t really find anything bad about this book, honestly. It is a great size, a great level for learning and using. I would say if you want to get a bit deeper once you are done with this book that a book like <a href="http://www.amazon.com/gp/product/0735626243?ie=UTF8&amp;tag=wwwstraightpa-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0735626243" target="_blank">SQL Server 2008 Internals</a> would be a great book to also look through. It adds a lot more depth to various topics covered well in this book. I like learning and going deeper with my knowledge so I tend to be in one or both of these books. If I had to pick only one, I think I&#8217;d go with this particular one because of the immediate practical utility in many situations. It would be a tough decision, because I enjoy reading about many levels of how and why, but this book gives me a lot of that also.</p>
<p><strong>p.s. the comment wasn&#8217;t really about my eyes (just in case you were wondering..) It was a nice compliment on something I try to do that Brent is much better at &#8211; Community Involvement.</strong></p>
<h2>Get You Some</h2>
<p>If you don&#8217;t have it, it is a great investment:</p>
<p>The post <a href="http://www.straightpathsql.com/archives/2010/10/prof-sql-server-2008-internals-troubleshooting/">Prof. SQL Server 2008 Internals &#038; Troubleshooting</a> appeared first on <a href="http://www.straightpathsql.com">Straight Path Solutions, a SQL Server Consultancy</a>.</p><img src="http://track.hubspot.com/__ptq.gif?a=140200&k=14&bu=http%3A%2F%2Fwww.straightpathsql.com&r=http%3A%2F%2Fwww.straightpathsql.com%2Farchives%2F2010%2F10%2Fprof-sql-server-2008-internals-troubleshooting%2F&bvt=rss&p=wordpress" style="float:left;" xml:base="http://www.straightpathsql.com/feed/" width="1" height="1" border="0" align="right"/>]]></content:encoded>
			<wfw:commentRss>http://www.straightpathsql.com/archives/2010/10/prof-sql-server-2008-internals-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Got SQL Server Questions?</title>
		<link>http://www.straightpathsql.com/archives/2009/12/got-sql-server-questions/</link>
		<comments>http://www.straightpathsql.com/archives/2009/12/got-sql-server-questions/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 19:25:17 +0000</pubDate>
		<dc:creator>Mike Walsh</dc:creator>
				<category><![CDATA[#sqlhelp]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicate]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[community help]]></category>
		<category><![CDATA[SQL Questions]]></category>

		<guid isPermaLink="false">http://www.straightpathsql.com/?p=272</guid>
		<description><![CDATA[<p>A Great Idea &#8211; #SQLHelp hashtag on Twitter
I was following a conversation today between Brent Ozar, who is @BrentO on twitter and Aaron Nelson, who is @SQLVariant on twitter.
A great idea was discussed: A twitter hashtag that, as Jorge Segarra (or @SQLChicken on twitter) describes it in his blog post, can act like a bat [...]</p><p>The post <a href="http://www.straightpathsql.com/archives/2009/12/got-sql-server-questions/">Got SQL Server Questions?</a> appeared first on <a href="http://www.straightpathsql.com">Straight Path Solutions, a SQL Server Consultancy</a>.</p><img src="http://track.hubspot.com/__ptq.gif?a=140200&k=14&bu=http%3A%2F%2Fwww.straightpathsql.com&r=http%3A%2F%2Fwww.straightpathsql.com%2Farchives%2F2009%2F12%2Fgot-sql-server-questions%2F&bvt=rss&p=wordpress" style="float:left;" xml:base="http://www.straightpathsql.com/feed/" width="1" height="1" border="0" align="right"/>]]></description>
			<content:encoded><![CDATA[<h2>A Great Idea &#8211; <a href="http://search.twitter.com/search?q=%23sqlhelp" target="_blank">#SQLHelp</a> hashtag on Twitter</h2>
<p>I was following a conversation today between Brent Ozar, who is <a href="http://twitter.com/brento" target="_blank">@BrentO</a> on twitter and Aaron Nelson, who is <a href="http://twitter.com/sqlvariant" target="_blank">@SQLVariant</a> on twitter.</p>
<p>A great idea was discussed: A twitter hashtag that, as Jorge Segarra (or <a href="http://twitter.com/SQLChicken" target="_blank">@SQLChicken</a> on twitter) <a href="http://sqlchicken.com/2009/12/need-sqlhelp-throw-up-the-bat-signal/" target="_blank">describes it in his blog post, can act like a bat signal</a>.</p>
<p>Brent <a href="http://www.brentozar.com/archive/2009/12/i-need-sqlhelp/" target="_blank">blogs about using the #sqlhelp hashtag</a> to get help to an immediate concern and lists other options for help that require more than 140 characters.</p>
<p>Check out both blogs. In fact, Brent describes in great detail how to ask for help and I won&#8217;t recreate that here. You can tweet me any questions you may have. I&#8217;m <a href="http://twitter.com/mike_walsh" target="_blank">@Mike_Walsh</a> on twitter.</p>
<p><strong>So that&#8217;s reason 1 for writing &#8211; To tell you about it.</strong></p>
<p>What&#8217;s reason 2?</p>
<h2>An add-on idea, or a bad idea?</h2>
<p>So there are lots of ways to get help. <a href="http://www.serverfault.com">Serverfault</a>, <a href="http://www.stackoverflow.com" target="_blank">Stackoverflow</a>, Twitter&#8217;s <a href="http://search.twitter.com/search?q=%23sqlhelp" target="_blank">#sqlhelp</a> tag, <a href="http://social.msdn.microsoft.com/forums/" target="_blank">MSDN Forums</a>, <a href="http://www.sqlservercentral.com" target="_blank">SQL Server Central</a>, Newsgroups (I go there just to watch the Aaron Bertrand/Joe Celko show and answer the occasional question) and even sometime in LinkedIn answers.</p>
<p>Most of these all have something in common: <strong>RSS FEEDS.</strong></p>
<h4>Why not get them all together and tweet new questions?</h4>
<p>So that&#8217;s the idea. I am too busy to take it on right now but maybe, if anyone thinks it&#8217;s a good idea, someone can take it and run with it. The dream in my head looks something like this:</p>
<ul>
<li>A Twitter Account &#8220;MSSQLHelp&#8221; or something</li>
<li>That twitter account simply tweets out from an aggregated feed comprised of all of the above feeds new question posts (including the #sqlhelp hashtag)</li>
<li>Want to get notified of question? Follow that twitter account and put it in it&#8217;s own list/group and watch the list/group.</li>
<li>When a question comes in that someone happens to catch on twitter and knows something about &#8211; they can click the link and help the person in whichever forum they asked the question.</li>
</ul>
<h4>Short of the idea?</h4>
<p>So if that idea is really bad because I missed all of the finer points and details (or it just falls on it&#8217;s face) that&#8217;s fine. You can at least sign up the RSS feeds of your favorite locations to get and give help and see the questions as they come in. I need to be a little better at this. I am not the highest degree SQL Server guru-belt out there but I do enjoy helping with questions when I can.<br />
<strong>That&#8217;s it.. Like the idea? Steal it, claim it and do it. Don&#8217;t like it, well like Brent and I said in the <a href="http://www.brentozar.com/archive/2009/12/interview-with-mike-walsh-about-blogging/" target="_blank">first part of our video interview on blogging</a> (on Brent&#8217;s site), even negative comments can be better than no comments <img src='http://www.straightpathsql.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
</strong></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.straightpathsql.com%2Farchives%2F2009%2F12%2Fgot-sql-server-questions%2F&amp;title=Got%20SQL%20Server%20Questions%3F" id="wpa2a_2"><img src="http://www.straightpathsql.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>The post <a href="http://www.straightpathsql.com/archives/2009/12/got-sql-server-questions/">Got SQL Server Questions?</a> appeared first on <a href="http://www.straightpathsql.com">Straight Path Solutions, a SQL Server Consultancy</a>.</p><img src="http://track.hubspot.com/__ptq.gif?a=140200&k=14&bu=http%3A%2F%2Fwww.straightpathsql.com&r=http%3A%2F%2Fwww.straightpathsql.com%2Farchives%2F2009%2F12%2Fgot-sql-server-questions%2F&bvt=rss&p=wordpress" style="float:left;" xml:base="http://www.straightpathsql.com/feed/" width="1" height="1" border="0" align="right"/>]]></content:encoded>
			<wfw:commentRss>http://www.straightpathsql.com/archives/2009/12/got-sql-server-questions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
