<?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>Search results matching tag 'Troubleshooting'</title><link>http://www2.sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=Troubleshooting&amp;orTags=0</link><description>Search results matching tag 'Troubleshooting'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Learn More About SQL Server IO and Query Tuning in These Webcasts</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2012/12/14/learn-more-about-sql-server-io-and-query-tuning-in-these-webcasts.aspx</link><pubDate>Fri, 14 Dec 2012 18:50:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46662</guid><dc:creator>KKline</dc:creator><description>
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I'm doing two new webcasts next week on Wednesday, December 19th, one in the morning and the other after lunch.&lt;/p&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;SSDs are a Game Changer for SQL Server Storage&lt;/h2&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;No, session is not exclusively about SSDs. &amp;nbsp;But this is my first session on IO and storage tuning that emphasizes SSDs over hard disks. &amp;nbsp;As Bob Dylan said "Times, they are a'changin'". &amp;nbsp;This session on Wednesday, December 19th at 11:30 AM EST, sponsored by Astute Networks, takes you through all of the basics of storage and IO tuning, regardless of the underlying storage technology. &amp;nbsp;I'll show you how SQL Server handles storage structures, how to identify IO activity on Windows and SQL Server, and best practices for minimizing IO bottlenecks. &amp;nbsp;Register now for:&lt;a title="Kevin Kline's Storage IO Best Practices for SQL Server" href="http://bit.ly/UcXYI3"&gt;&amp;nbsp;Storage IO Best Practices for SQL Server and a New Approach to Solving Application Performance Issues&lt;/a&gt;.&lt;/p&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;Write Better SQL Queries&lt;/h2&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;The next webcast on Wednesday, December 19th at 2 PM EST, is with me, Aaron Bertrand &amp;nbsp;(&lt;a href="https://twitter.com/#!/AaronBertrand"&gt;Twitter&amp;nbsp;&lt;/a&gt;|&amp;nbsp;&lt;a href="http://sqlblog.com/blogs/aaron_bertrand/rss.aspx"&gt;Blog&lt;/a&gt;)&amp;nbsp;and SQLCruise Impresario &amp;amp; Microsoft MVP Tim Ford &amp;nbsp;(&lt;a href="https://twitter.com/#!/sqlagentman"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.ford-it.com/sqlagentman/"&gt;Blog&lt;/a&gt;)&amp;nbsp;as we take you through the query tuning process, discussing important DMVs to use during query tuning, as well as demonstrating several essential query tuning techniques that every SQL developer should know. &amp;nbsp;Not only are we presenting an hour of top quality technical content, we’ll also be giving away some cool prizes, including the grand prize of a paid registration for the upcoming&amp;nbsp;&lt;a target="_blank" href="http://elink.sqlsentry.net/c/1/?aId=67857085&amp;amp;requestId=b34612-273953cd-e600-4a18-979a-a9f2ded860bd&amp;amp;rId=lead-a407ed107f65de119513001e0b614992-c233a49718324979b0d8efc0614ff5d0&amp;amp;ea=aunefuonetre=pbz=vagrepreir&amp;amp;dUrl=http%3A%2F%2Fsqlcruise.com%2F2013-cruises%3F_cldee%3DbmhhcnNoYmFyZ2VyQGludGVyY2VydmUuY29t&amp;amp;uId=0"&gt;SQLCruise Miami&lt;/a&gt;, a $1,395 value! &amp;nbsp;Register now for:&amp;nbsp;&lt;a title="SQL Server Query Tuning Best Practices, Hosted by Kevin Kline, Aaron Bertrand, and Tim Ford" href="http://bit.ly/UskPPm"&gt;SQL Server Query Tuning Best Practices, Hosted by Kevin Kline and Aaron Bertrand with special guest Tim Ford&lt;/a&gt;&lt;/p&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I hope to see you at both of these sessions next week! &amp;nbsp;Best regards,&lt;/p&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;-Kev&lt;/p&gt;
&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a title="Kevin E. Kline on Twitter" href="http://twitter.com/kekline"&gt;-Follow me on Twitter!&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Recap - SQL Saturday 151 in Orlando</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2012/10/02/recap-sql-saturday-151-in-orlando.aspx</link><pubDate>Tue, 02 Oct 2012 14:19:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45424</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;It's always a feel-good experience for me to return to SQL Saturday in Orlando, the place where&amp;nbsp;&lt;a title="SQL Saturday" href="http://www.sqlsaturday.com/"&gt;SQL Saturdays&lt;/a&gt;&amp;nbsp; were started by Andy Warren (&lt;a href="https://twitter.com/#!/sqlandy"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.sqlandy.com/"&gt;Blog&lt;/a&gt;). &amp;nbsp;On this trip, I delivered a full-day, pre-conference seminar on Troubleshooting and Performance Tuning SQL Server. &amp;nbsp;I also delivered a session on SQL Server Internals and Architecture to a&amp;nbsp;&lt;em&gt;totally&amp;nbsp;&lt;/em&gt;packed house. &amp;nbsp;For those of you who emailed me directly, here's&amp;nbsp;&lt;a title="A Special Offer from SQL Sentry" href="http://www.sqlsentry.net/sqlsaturday151"&gt;the link for the special SQL Sentry offer&lt;/a&gt;.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2012/10/IMAG2606.jpg"&gt;&lt;img class="aligncenter size-medium wp-image-2064" title="IMAG2606" alt="" width="300" height="179" style="border:0px;cursor:default;display:block;margin-left:auto;margin-right:auto;" src="http://kevinekline.com/wp-content/uploads/2012/10/IMAG2606-300x179.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I got to attend the extended events session by&amp;nbsp;Jack Corbett (&lt;a href="https://twitter.com/#!/unclebiguns"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://wiseman-wiseguy.blogspot.com/feeds/posts/default"&gt;Blog&lt;/a&gt;), middle in the photo above. &amp;nbsp;Good stuff, Jack! &amp;nbsp;Jack led the&amp;nbsp;&lt;a title="The Orlando SQL Server User Group" href="http://orlando.sqlpass.org/"&gt;Orlando PASS Chapter&lt;/a&gt;&amp;nbsp;for a few years and, although he relocated back up to New England, he enjoys getting back to Orlando when the opportunity presents itself.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I also got a chance to do a podcast with Rodney Landrum (&lt;a title="Rodney Landrum on Twitter" href="https://twitter.com/SQLBeat"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a title="Rodney Landrum's Blog" href="http://www.simple-talk.com/community/blogs/rodney/"&gt;Blog&lt;/a&gt;), in the SQL Saturday chef's outfit on the right. &amp;nbsp;Rodney, you should get your blog details up at the&amp;nbsp;&lt;a title="Oodles of Good SQL Server Bloggers collated by SQLPASS.ORG" href="http://www.sqlpass.org/Community/BlogDirectory.aspx"&gt;PASS SQL blogger page&lt;/a&gt;, btw. &amp;nbsp;Rodney is also known as "the guy with the Red-Gate tatoo". &amp;nbsp;Ask him why, when you meet him in person. &amp;nbsp;I'll post the direct link to our podcast when I get it from Rodney. &amp;nbsp;But in the meantime, be sure to check out his&amp;nbsp;&lt;a title="The SQLBeat Podcast" href="http://www.simple-talk.com/blogs/author/195835-sqlbeat/"&gt;SQLBeat webcast&lt;/a&gt;. &amp;nbsp;There are lots of great speakers and respected authorities to hear on his podcast.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2012/10/IMAG2607.jpg"&gt;&lt;img class="aligncenter size-medium wp-image-2065" title="IMAG2607" alt="" width="300" height="179" style="border:0px;cursor:default;display:block;margin-left:auto;margin-right:auto;" src="http://kevinekline.com/wp-content/uploads/2012/10/IMAG2607-300x179.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;As I mellow with age, I've found that I most enjoy connecting with friends and building relationships. &amp;nbsp;The above picture shows me, Eddie Weurch (&lt;a title="Eddie Weurch on Twitter" href="http://twitter.com/EddieW"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a title="Eddie Weurch's Blog" href="http://www.indydba.com/"&gt;Blog&lt;/a&gt;), and Pam Shaw (&lt;a title="Pam Shaw on Twitter" href="http://twitter.com/pamshaw"&gt;Twitter&lt;/a&gt;), head of the&amp;nbsp;&lt;a title="Tampa SQL Server User Group" href="http://www.tampasql.com/"&gt;Tampa PASS Chapter&lt;/a&gt;. &amp;nbsp;Pam, Eddie, and I were swapping some hilarious stories about our early years in snowy climates. &amp;nbsp;Pam had the good fortune to be pulled, face first, through the snow by her mom during a trip to the school bus stop on the first big snow of the season. &amp;nbsp;Mom, it seems, wanted to make sure she got to the bus stop safely, but instead fell down two steps from the front door of their home, sliding all the way to the bus stop firmly clutching Pam's hand. &amp;nbsp;ROFL!&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2012/10/IMAG2609.jpg"&gt;&lt;img class="aligncenter size-medium wp-image-2066" title="IMAG2609" alt="" width="300" height="179" style="border:0px;cursor:default;display:block;margin-left:auto;margin-right:auto;" src="http://kevinekline.com/wp-content/uploads/2012/10/IMAG2609-300x179.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I got to spend some time with Ryan Adams (left) and Kendal Van Dyke (right), as well. &amp;nbsp;There may have been some liquor involved. &amp;nbsp;However, the highlight of my evening was definitely when Kendal yelled "FINALLY!" at the waitress bringing our plates out ten minutes&amp;nbsp;&lt;em&gt;﻿after&amp;nbsp;&lt;/em&gt;﻿the appetizers were served. &amp;nbsp;Kendal was actually paying no attention to the waitress or the plates and was instead yelling at the TV where the Florida State vs South Florida football game was playing. &amp;nbsp;The waitress, on the other hand, was mortified. &amp;nbsp;Hilarity ensued as he tried to explain that he was not the least bit cross with her. &amp;nbsp;:^)&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;Ryan is going to be presenting at the upcoming&amp;nbsp;&lt;a title="SQLCruise" href="http://sqlcruise.com/"&gt;spring 2013 SQLCruise event&lt;/a&gt;. &amp;nbsp;You should definitely attend! &amp;nbsp;Ryan Adams has lot more content here (&lt;a href="https://twitter.com/#!/search/ryanjadams"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.ryanjadams.com/"&gt;Blog&lt;/a&gt;). &amp;nbsp;Kendal, by the way, is a standing member of the current PASS Board of Directors. &amp;nbsp;He's written some excellent content and, just recently, moved to&amp;nbsp;&lt;a title="Upsearch" href="http://www.upsearch.com/"&gt;Upsearch&lt;/a&gt;&amp;nbsp;consultancy where my friend Allen White (&lt;a href="https://twitter.com/#!/SQLRunr"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://sqlblog.com/blogs/allen_white/default.aspx"&gt;Blog&lt;/a&gt;)&amp;nbsp;works. &amp;nbsp;Kendal Van Dyke has more content here (&lt;a href="https://twitter.com/#!/SQLDBA"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://feeds.feedburner.com/kendalvandyke"&gt;Blog&lt;/a&gt;).&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I hope you're planning to attend a SQL Saturday event soon. &amp;nbsp;And not just the event, but also the after-event gatherings as well. &amp;nbsp;You can almost always be sure that most of the speakers will be there. &amp;nbsp;It's a great way to enlarge your professional network as well as to make real&amp;nbsp;&lt;em&gt;﻿and lasting&amp;nbsp;&lt;/em&gt;﻿friendships!&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;Enjoy,&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;-Kev&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;-&lt;a title="Kevin E. Kline on Twitter" href="http://twitter.com/kekline"&gt;Follow me on Twitter&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Two New Slide Decks. Plus, the Week in Colorado.</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2012/08/20/two-new-slide-decks-plus-the-week-in-colorado.aspx</link><pubDate>Mon, 20 Aug 2012 15:03:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44792</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2012/08/IMAG2488.jpg"&gt;&lt;img class="alignright  wp-image-2027" title="Kevin and the SpringSQL Leadership" alt="" width="240" height="143" style="border:0px;cursor:default;float:right;" src="http://kevinekline.com/wp-content/uploads/2012/08/IMAG2488-300x179.jpg"&gt;&lt;/a&gt;I had the honor of traveling the great state of Colorado last week, speaking at the PASS chapters in&amp;nbsp;&lt;a title="Boulder, CO SQL Server Users Group" href="https://groups.google.com/forum/?fromgroups#!forum/boulder-sql-server-users-group"&gt;Boulder&lt;/a&gt;,&amp;nbsp;&lt;a title="Colorado Springs, CO SQL Server Users Group" href="http://www.springssql.sqlpass.org/"&gt;Colorado Springs&lt;/a&gt;, and&amp;nbsp;&lt;a title="Denver, CO SQL Server Users Group" href="http://denver.sqlpass.org/"&gt;Denver&lt;/a&gt;. &amp;nbsp;At all three events, we had a stellar attendance and, at least&amp;nbsp;&lt;a title="A Huge Crowd for the Denver SQL Server User Group!" href="http://img.ly/m6ZG"&gt;in Denver, broke all the records&lt;/a&gt;&amp;nbsp;in recent memory both in terms of overall attendance and in first-timers. &amp;nbsp;Denver, in fact, was standing room only and had nearly 30 first time attendees. &amp;nbsp;Great news! &amp;nbsp;I also want to give a special shout-out of thanks and appreciation to&amp;nbsp;Chris Shaw (&lt;a href="https://twitter.com/#!/SQLShaw"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://chrisshaw.wordpress.com/feed/"&gt;Blog&lt;/a&gt;) whose hard work and tenacity ensured that all of Colorado got to see me speak. From left to right, Gabriel Villa (&lt;a title="Gabriel Villa on Twitter" href="http://twitter.com/extofer"&gt;Twitter&lt;/a&gt;), me, Chris Shaw, and Rebecca Mitchell (&lt;a title="Rebecca Mitchell on Twitter" href="http://twitter.com/sqlprincess"&gt;Twitter&lt;/a&gt;). &amp;nbsp;If it weren't for Chris, I wouldn't have been there. &amp;nbsp;Thanks for putting in the time, amigo!&lt;/p&gt;&lt;h2 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;New Slide Decks!&lt;/h2&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;During the 3-day jaunt, I presented two of my more popular sessions. &amp;nbsp;These are updated slide decks, in case you want to download them here:&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a title="End-to-End Troubleshooting for Microsoft SQL Server" href="http://kevinekline.com/wp-content/uploads/2012/08/UG-End-to-End-Troubleshooting.zip"&gt;UG - End-to-End Troubleshooting&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;and&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a title="Top 10 DBA Blunders on Microsoft SQL Server" href="http://kevinekline.com/wp-content/uploads/2012/08/UG-Top-10-SQL-Server-Administration-Mistakes.zip"&gt;UG - Top 10 SQL Server Administration Mistakes&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2012/08/IMAG2492.jpg"&gt;&lt;img class="alignright  wp-image-2033" title="Kevin &amp;amp; Steve Murchie" alt="" width="125" height="210" style="border:0px;cursor:default;float:right;" src="http://kevinekline.com/wp-content/uploads/2012/08/IMAG2492-179x300.jpg"&gt;&lt;/a&gt;Be sure to check in the Slides area of the website, if you want to see the links for SpeakerRate, and in the case of several of my presentations, white papers, video recordings, etc. It's the People that Matter&lt;/p&gt;&lt;h2 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;A Blast from the SQLPASS Past!&lt;/h2&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I've always tried to maintain the relationships I built with the founding members of the&amp;nbsp;&lt;a title="The Professional Association for SQL Server" href="http://www.sqlpass.org/"&gt;PASS&lt;/a&gt;&amp;nbsp;board of directors. &amp;nbsp;After their time on the PASS board, almost all of them have moved on from SQL Server to other adventures. &amp;nbsp;Pam Smith, the first president of the organization, is now a professor. &amp;nbsp;Guy Brown, the second president, is now the director of IT at his same employer, rather than just SQL Server as when he was on the PASS board. &amp;nbsp;A few, such as Kurt Windisch, a former VP of PASS, and my good friend&amp;nbsp;Joe Webb (&lt;a href="https://twitter.com/#!/joewebb"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a target="_blank" href="http://www.webbtechsolutions.com/blog"&gt;Blog&lt;/a&gt;), are still active in the SQL Server space. &amp;nbsp;One relationship that I've enjoyed over the years is with PASS' original Microsoft liaison and now a Denver-area software entrepreneur Steve Murchie (at right) running his own healthcare IT outfit. &amp;nbsp;Steve has been a source of inspiration to me and also of great advice for all things startup-related. &amp;nbsp;It was great to connect with Steve and catch up on his latest doings.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I also got to enjoy an evening out with the local attendees after the Denver user group meeting. &amp;nbsp;It was great to hang out with folks there. &amp;nbsp;I got to meet&amp;nbsp;&lt;a title="Kevin Cox on deck for 24HOP of SQLPASS.ORG" href="http://www.sqlpass.org/24hours/fall2012/SessionsbySchedule/SpeakerDetails.aspx?spid=480"&gt;Kevin Cox&lt;/a&gt;&amp;nbsp;(&lt;a title="Kevin Cox's Twitter Feed" href="http://twitter.com/KevinCoxSQL"&gt;twitter&lt;/a&gt;), a member of Microsoft's incredibly talented&amp;nbsp;&lt;a title="The Microsoft SQL Server Customer Advisory Team" href="http://www.sqlcat.com/"&gt;SQLCAT&lt;/a&gt;&amp;nbsp;group, and for whom I was a technical editor on a SQL Server v6.5 book back in the Neanderthal era. &amp;nbsp;That shows just how old both Kevin and I actually are. &amp;nbsp;Other cool folks that I got to meet included&amp;nbsp;&lt;a href="http://twitter.com/stevewake"&gt;Steve Wake&lt;/a&gt;,&amp;nbsp;&lt;a href="http://twitter.com/mike_fal"&gt;Mike Fal&lt;/a&gt;,&amp;nbsp;&lt;a href="http://twitter.com/marcbeacom"&gt;Marc Beacom&lt;/a&gt;,&amp;nbsp;&lt;a href="http://twitter.com/jasonkassay"&gt;Jason Kassay&lt;/a&gt;,&amp;nbsp;&lt;a href="http://twitter.com/jasonhorner"&gt;Jason Horner&lt;/a&gt;&amp;nbsp;and my ol' buddy,&amp;nbsp;&lt;a href="http://twitter.com/greeleygeek"&gt;Kelly the Greeley Geek&lt;/a&gt;.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;On top of that, long-time SQL Server MVP and all-around awesome guy&amp;nbsp;Steve Jones (&lt;a href="https://twitter.com/#!/way0utwest"&gt;Twitter&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://feeds.feedburner.com/sqlmusings"&gt;Blog&lt;/a&gt;) visited. &amp;nbsp;I kept him out way too late that night which, to be honest, isn't usually my style. &amp;nbsp;But the good conversation propelled us on past midnight.&lt;/p&gt;&lt;h2 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;The Good Folks at SQL Server Professional and Windows IT Professional Magazines&lt;/h2&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;a href="http://kevinekline.com/wp-content/uploads/2012/08/IMAG2486.jpg"&gt;&lt;img class="alignright  wp-image-2036" title="Kevin and the Ladies of SQLMag" alt="" width="240" height="143" style="border:0px;cursor:default;float:right;" src="http://kevinekline.com/wp-content/uploads/2012/08/IMAG2486-300x179.jpg"&gt;&lt;/a&gt;I've written for SQL Server Professional (formerly the artist known as "SQLMag") in some form or another starting from my first cover article for them way back in the mid 1990's. &amp;nbsp;My&amp;nbsp;&lt;a title="Kevin Kline's Tool Time column at SQL Server Professional Magazine" href="http://www.sqlmag.com/blogcontent/seriespath/tool-time-blog-16"&gt;Tool Time column&lt;/a&gt;&amp;nbsp;has been going strong there since, oh, around 2006 iirc. &amp;nbsp;For most of the time I've known the folks at SQLMag, they were located in Loveland, CO but they were able to move to some incredibly nice digs just up the road in Fort Collins. &amp;nbsp;In all the many years, I've written for them, I'd never been to their offices - until now. &amp;nbsp;It was great to visit and break bread with Megan (to my right), Blair (across), and Jaylee (across and to my right)!&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I've always supported SQLMag and encourage you to subscribe. &amp;nbsp;On top of the goodness already in the digital magazine, there are some neat developments coming down the pipeline with SQLMag which I think we'll all enjoy. &amp;nbsp;Be sure to subscribe today! &amp;nbsp;(You can click the badge on the left or simply go to&amp;nbsp;&lt;a title="SQL Server Professional Magazine" href="http://www.sqlmag.com/"&gt;http://www.sqlmag.com&lt;/a&gt;).&lt;/p&gt;&lt;h2 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;What's Next?&lt;/h2&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;My current travel schedule is pinned up on&amp;nbsp;&lt;a title="Kevin Kline's appearance schedule" href="http://kevinekline.com/2012/07/31/come-see-me-ill-probably-be-just-down-the-street-soon/"&gt;this blog post HERE&lt;/a&gt;. &amp;nbsp;However, I also know of a couple on-line appearances and probably a trip between the long gap between now and my next in-person appearance at the&amp;nbsp;&lt;a title="Orlando SQL Saturday 151" href="http://www.sqlsaturday.com/151/eventhome.aspx"&gt;Orlando SQL Saturday&lt;/a&gt;&amp;nbsp;at the end of&amp;nbsp;September, where I'll also be teaching a pre-conference seminar (&lt;a title="SQL Server Configuration and Tuning Seminar" href="http://www.eventbrite.com/event/3895236758?ref=ebtn"&gt;register HERE for the seminar&lt;/a&gt;).&lt;/p&gt;&lt;h3 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;SSWUG&lt;/h3&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;The first on-line event to note is my a presentation by&amp;nbsp;&lt;a title="SQL Server Worldwide User Group" href="http://www.sswug.org/"&gt;SSWUG&lt;/a&gt;&amp;nbsp;of my&amp;nbsp;&lt;a title="Kevin Kline and SSWUG bring you &amp;quot;Leadership Skills for IT Professionals&amp;quot;" href="http://www.vconferenceonline.com/event/home.aspx?id=769"&gt;Leadership Skills for IT Professionals video series&lt;/a&gt;, starting on August 24th. &amp;nbsp;Sign up using the hyperlink (note that a video plays immediately upon loading the webpage, in case you want to be ready to pause or stop it). &amp;nbsp;You can also buy a DVD set of the 14 hours of leadership training content.&lt;/p&gt;&lt;h3 style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;24HOP - The 24 Hours of PASS Event&lt;/h3&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I'll also be speaking on the topic of influence in the next&amp;nbsp;&lt;a title="The 2012 24 Hours of PASS session schedule" href="http://www.sqlpass.org/24hours/fall2012/SessionsbySchedule.aspx"&gt;24 Hours of PASS coming up on September 20th and 21st&lt;/a&gt;. &amp;nbsp;Registration for the twenty-four hours of around the clock presentations is completely free and well worth your time. &amp;nbsp;Check the schedule for the event and register! &amp;nbsp;Even if you can only watch one or two sessions (or even zero sessions), be sure to register so that you'll automatically be notified when the sessions become available as streaming media.&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;Enjoy!&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;-Kev&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;-Follow me on&amp;nbsp;&lt;a title="Kevin Kline on Twitter" href="http://twitter.com/kekline"&gt;Twitter&lt;/a&gt;,&amp;nbsp;&lt;a title="Kevin Kline on LinkedIn" href="http://linkedin.com/kekline"&gt;LinkedIn&lt;/a&gt;, and&amp;nbsp;&lt;a title="Kevin Kline on Facebook" href="http://facebook.com/kekline"&gt;Facebook&lt;/a&gt;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>High-Availability White Papers and Resources for SQL Server</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2012/07/26/high-availability-white-papers-and-resources-for-sql-server.aspx</link><pubDate>Thu, 26 Jul 2012 15:00:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44457</guid><dc:creator>KKline</dc:creator><description>&lt;div class="mceTemp" style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&lt;div class="mceTemp"&gt;&lt;a rel="attachment wp-att-2011" href="http://kevinekline.com/2012/07/26/high-availability-white-papers-and-resources-for-sql-server/charlotte-sql-ug/"&gt;&lt;img class="size-medium wp-image-2011" title="Charlotte SQL UG" alt="" width="300" height="168" style="border:0px none;cursor:default;margin:0px;padding:0px;-webkit-user-drag:none;" src="http://kevinekline.com/wp-content/uploads/2012/07/Charlotte-SQL-UG-300x168.jpg"&gt;&lt;/a&gt;In foreground, attendee makes dreaded "shoot myself" hand sign to the speaker.&lt;/div&gt;&lt;p&gt;I was just telling the good people of Charlotte about how they (and how YOU) need to read all things by Paul Randal (&lt;a title="Paul Randal's Blog" href="http://www.sqlskills.com/BLOGS/paul/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a title="Paul Randal's Twitter Feed" href="http://twitter.com/paulrandal"&gt;twitter&lt;/a&gt;), except for all of his&amp;nbsp;&lt;a title="Maybe He Did Write a Romance Novel, Maybe He Didn't" href="http://www.amazon.com/forum/romance?cdForum=FxM42D5QN2YZ1D&amp;amp;cdThread=Tx2769ZA6OCU1BD"&gt;cheesy romance novels&lt;/a&gt;&amp;nbsp;like&amp;nbsp;&lt;a title="Quite Possibly The Worst Romance Novel EVER" href="http://www.amazon.com/Caress-and-Conquer-ebook/dp/B006IUV50A/ref=sr_1_2?ie=UTF8&amp;amp;qid=1343317555&amp;amp;sr=8-2&amp;amp;keywords=Caress+and+Conquer+by+Connie+Mason"&gt;&lt;em&gt;Caress and Conquer&lt;/em&gt;&lt;/a&gt;&amp;nbsp;written under the nom de plum of Connie Mason.&lt;/p&gt;&lt;p&gt;There's lots more good stuff from Paul, just not romantic.&lt;/p&gt;&lt;p&gt;This is a 'so-last-version' whitepaper describing &amp;nbsp;five common high-availability and disaster-recovery architectures deployed by customers, along with a case study of each. Although the white paper is specific to SQL Server 2008 R2 and isn't updated for AlwaysOn features, it's still really, really good. &amp;nbsp;It covers:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Failover Clustering for High Availability with Database Mirroring for Disaster Recovery&lt;/li&gt;&lt;li&gt;Database Mirroring for High Availability and Disaster Recovery&lt;/li&gt;&lt;li&gt;Geo-Clustering for High Availability and Disaster Recovery&lt;/li&gt;&lt;li&gt;Failover Clustering for High Availability Combined with SAN-Based Replication for Disaster Recovery&lt;/li&gt;&lt;li&gt;Peer-to-Peer Replication for High Availability and Disaster Recovery&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;You can get it from&amp;nbsp;&lt;a href="http://download.microsoft.com/download/5/B/D/5BD13FFA-5E34-4AE1-9AA0-C6E6951B8FC8/SQL%20Server%202008%20R2%20High%20Availability%20Architecture%20White%20Paper.docx"&gt;this link&lt;/a&gt;. &amp;nbsp;Not everything is transferable to new AlwaysOn technologies, but then again AlwaysOn is an Enterprise Edition feature. &amp;nbsp;So the database mirroring recommendation can be upsized, in many if not all cases, to SQL Server 2012, while the SAN and peer-to-peer recommendations continue to hold fast.&lt;/p&gt;&lt;p&gt;In addition, I encourage you to get up to speed on AlwaysOn. &amp;nbsp;There are two great AlwaysOn FAQs that I recommend.&amp;nbsp; The first is Microsoft’s official AlwaysOn FAQ at&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/sqlserver/gg508768.aspx"&gt;http://msdn.microsoft.com/en-us/sqlserver/gg508768.aspx&lt;/a&gt;.&amp;nbsp; The second comes from my buddy and high-availability expert Allan Hirt (&lt;a title="Allan Hirt, Mr. SQLHA" href="http://www.sqlha.com/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a title="Allan Hirt's Twitter Feed" href="http://twitter.com/sqlha"&gt;twitter&lt;/a&gt;) at&amp;nbsp;&lt;a href="http://www.sqlha.com/2012/04/13/allans-alwayson-availability-groups-faq/"&gt;http://www.sqlha.com/2012/04/13/allans-alwayson-availability-groups-faq/&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;To get started with AlwaysOn, check out&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/cc645581.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc645581.aspx&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Enjoy,&lt;/p&gt;&lt;p&gt;-Kev&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Analyzing the errorlog</title><link>http://www2.sqlblog.com/blogs/tibor_karaszi/archive/2012/07/05/analyzing-the-errorlog.aspx</link><pubDate>Thu, 05 Jul 2012 11:53:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44203</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;How often do you do this? Look over each message (type) in the errorlog file and determine whether this is something you want to act on. Sure, some (but not all) of you have some monitoring solution in place, but are you 100% confident that it really will notify for all messages that you might find interesting? That there isn't even one little message hiding in there that you would find valuable knowing about? Or how about messages that you typically don't are about, but knowing that you have a high frequency can be valuable information?&lt;/p&gt;&lt;p&gt;So, this boils down to actually reading the errorlog file. Some of you probably already have scripts and tool that makes this easier than just reading every simple message from top to bottom. I wanted to share how I do it, and this is why I wrote my&amp;nbsp;&lt;a href="http://www.karaszi.com/SQLServer/util_analyze_sql_server_logs.asp"&gt;Analyze SQL Server&amp;nbsp;logs&lt;/a&gt; article.&amp;nbsp;Check it out. And, feedback is always welcome!&lt;/p&gt;</description></item><item><title>New White Paper: SQL Server Extended Events and Notifications</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2012/04/25/new-white-paper-sql-server-extended-events-and-notifications.aspx</link><pubDate>Wed, 25 Apr 2012 13:13:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42932</guid><dc:creator>KKline</dc:creator><description>&lt;p&gt;SQL Server comes with a wide array of tools for monitoring your environment. There are logs and traces that provide information when errors occur, but these are often used passively to react to events that have already occurred. &amp;nbsp;There's PerfMon, and Profiler, and loads of Dynamic Management Views to check. &amp;nbsp;But where to look?&lt;/p&gt;&lt;p&gt;As database administrators (DBA), we need to monitor our environments proactively and create solutions as issues arise. In this white paper, we will look at a couple technologies – event notifications and extended events – that can help you achieve these goals. With these two features, we’ll look at the error log and deadlocks, and demonstrate how you can get relevant information delivered as it occurs. We’ll also look at ways that run-time errors can be captured and used to help reduce the amount of time required to investigate issues.&lt;/p&gt;&lt;p&gt;This white paper, written by SQL Server MVP Jason Strate (&lt;a title="Jason Strate's SQL Server Blog" href="http://www.jasonstrate.com/"&gt;blog&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a title="Jason Strate's Twitter Feed" href="http://twitter.com/stratesql"&gt;twitter&lt;/a&gt;), is a free download &lt;em&gt;but requires a registration&lt;/em&gt;.&amp;nbsp; &lt;a title="Microsoft SQL Server Extended Events White Paper" href="http://www.quest.com/whitepaper/how-to-use-sql-servers-extended-events-and-notifications816315.aspx"&gt;Download the Extended Events white paper here&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;And, as always, I enjoy your feedback. &amp;nbsp;Thanks!&lt;/p&gt;&lt;p&gt;-Kev&lt;/p&gt;&lt;p&gt;&amp;nbsp;Follow me on&amp;nbsp;&lt;a title="Kevin Kline's Twitter Feed" href="http://twitter.com/kekline"&gt;Twitter&lt;/a&gt;!&lt;/p&gt;</description></item><item><title>SQL Server Performance Tuning and Optimization in Jacksonville, FL on April 27th</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2012/04/23/sql-server-performance-tuning-and-optimization-in-jacksonville-fl-on-april-27th.aspx</link><pubDate>Mon, 23 Apr 2012 13:15:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:42931</guid><dc:creator>KKline</dc:creator><description>&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;One last reminder - &amp;nbsp;If you're interested in learning more about troubleshooting and optimizing SQL Server performance, please consider coming to the full-day seminar I'll be giving this Friday. &amp;nbsp;Full details are here:&amp;nbsp;&lt;a href="http://sqlperftuning.eventbrite.com/"&gt;http://sqlperftuning.eventbrite.com/&lt;/a&gt;. &amp;nbsp;We'll be working some exercises, so bring your laptop with an instance of SQL Server 2008 (or later) running on it. &amp;nbsp;It'll be fun!&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;I also encourage you to come on down to&amp;nbsp;&lt;a title="Jacksonville, FL SQL Saturday 130" href="http://www.sqlsaturday.com/130/eventhome.aspx"&gt;SQL Saturday 130&lt;/a&gt;&amp;nbsp;&amp;nbsp;the following day - whether there's an official registration for you or not. &amp;nbsp;(But don't tell 'em I said that). &amp;nbsp;:^)&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;Come by the booth for a visit. &amp;nbsp;I'll be hanging out most of the day and have some nice swag to give away. &amp;nbsp;&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;Enjoy,&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;-Kev&lt;/p&gt;&lt;p style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;"&gt;&amp;nbsp;Follow me on&amp;nbsp;&lt;a title="Kevin Kline's Twitter Feed" href="http://twitter.com/kekline"&gt;Twitter&lt;/a&gt;!&lt;/p&gt;&lt;br class="Apple-interchange-newline"&gt;</description></item><item><title>Everybody Needs a Test Harness</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2011/10/31/everybody-needs-a-test-harness.aspx</link><pubDate>Mon, 31 Oct 2011 14:17:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:39489</guid><dc:creator>KKline</dc:creator><description>&lt;p&gt;When you're developing new Transact-SQL code or modifying some existing code, do you just launch directly into programming?&lt;/p&gt;&lt;p&gt;I know that I did just that, for years.  It wasn't until I was trying to performance tune some existing code that I realized I hadn't actually taken caching of data and execution plans into account.  So all those modified stored procedures that I was so proud of might not actually be faster than the first generation of procedures because I hadn't checked to ensure that I was testing cached programs against uncached programs (and, by extension, the data used by those programs).  That's easy enough to fix with a &lt;em&gt;test harness.&lt;/em&gt;  Test harness were originally an actual, physical harness used by engineers to clamp down parts of an electrical or mechanical device they were prototyping.  Ours is no different.  It locks down all of the assumptions about our code (like my early, false assumption that I didn't need to clear the caches) and adds a metric or two for good measure - literally - so we can better measure what's happening in that code.&lt;/p&gt;&lt;p&gt;Here's what my test harness looks like: &lt;/p&gt;&lt;pre style="padding-left:30px;"&gt;/* Transact-SQL test harness by Kevin Kline, http://KevinEKline.com, Twitter at kekline */ &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;/* Flush dirty pages from the buffer to the database files. */&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;CHECKPOINT;&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;/* Flush the data cache and procedure cache, respectively. For DEV environments only! */&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;DBCC DROPCLEANBUFFERS; &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;DBCC FREEPROCCACHE;&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;/* Enable statistics tracking for IO and timings. Remember, SET commands remain enabled during a session until disabled. */&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;SET STATISTICS IO ON; &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;SET STATISTICS TIME ON;&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;-- Whatever SQL code you'd like to process goes below.&lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;SELECT SalesOrderID&lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;FROM Sales.SalesOrderHeader H&lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;WHERE CustomerID = 344&lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;GO&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;SET STATISTICS IO OFF; &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;SET STATISTICS TIME OFF;&lt;/pre&gt; &lt;pre style="padding-left:30px;"&gt;/* Textual Execution Plans, if desired. &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;SET SHOWPLAN_TEXT ON; &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;SET SHOWPLAN_TEXT OFF; &lt;/pre&gt;&lt;pre style="padding-left:30px;"&gt;*/&lt;/pre&gt;&lt;p&gt; I also like to include the execution plans a lot of the time.  You might wonder why I don't save the execution plans for the GUI in SSMS?  Well, I'm a big advocate of scripting in general because I like to automate activities.  By pulling the execution plans using scripts, I can use SQLCMD to schedule a large number of query executions during the evening and have the results ready for analysis when I come back into the office in the morning.  &lt;em&gt;Workin' smarter, not harder, Baby!&lt;/em&gt;&lt;/p&gt;&lt;p&gt;So how does this test harness work for you?  Do you use other elements in yours?  If so, share your experiences here!&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;-Kevin&lt;/p&gt;&lt;p&gt;-&lt;a title="C'mon. You know you want to." href="http://twitter.com/kekline" target="_blank"&gt;Follow me on Twitter&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Troubleshooting Repeated Login Failures on SQL Server</title><link>http://www2.sqlblog.com/blogs/kevin_kline/archive/2011/10/21/troubleshooting-repeated-login-failures-on-sql-server.aspx</link><pubDate>Fri, 21 Oct 2011 13:05:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:39300</guid><dc:creator>KKline</dc:creator><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;I’d recently
experienced a situation where I was getting repeated login failures to a SQL
Server where I &lt;i style="mso-bidi-font-style:normal;"&gt;knew &lt;/i&gt;that I had the
correct user name and password.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Each
time, I’d get error 18456 in response.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span style="line-height:115%;font-size:9.5pt;"&gt;"Login failed for
user '&amp;lt;user_name&amp;gt;'. (Microsoft SQL Server, Error: 18456)".&lt;/span&gt;&lt;span style="font-size:14pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;The
challenge when troubleshooting this error message is that you may have a
problem with SQL Server or you may have a problem with Active Directory or
Kerberos, if you’re using one of those authentication technologies.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;h2 style="margin:10pt 0in 0pt;"&gt;&lt;span style="line-height:115%;font-size:14pt;mso-bidi-font-size:13.0pt;"&gt;&lt;font color="#4f81bd"&gt;&lt;font face="Cambria"&gt;A
False Trail&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/h2&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;When times
are good, and you’re able to make a connection, you can&amp;nbsp;always query &lt;i style="mso-bidi-font-style:normal;"&gt;sys.dm_exec_connections&lt;/i&gt;, to see how you’re
connecting, for example, using NTLM rather than Kerberos.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;But that doesn’t help us when we can’t
connect to the server at all.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;In other
situations, your problem might be caused by duplicate SPMs in Active Directory.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;MVP Russell Fields documented a &lt;/font&gt;&lt;a href="http://msmvps.com/blogs/vandooren/archive/2008/03/11/getting-rid-of-the-duplicate-spn-in-active-directory.aspx"&gt;&lt;font color="#0000ff" face="Calibri"&gt;nice
solution for ridding Active Directory of duplicate SPNs here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;. &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;Microsoft Support also mentions some &lt;/font&gt;&lt;a href="http://support.microsoft.com/kb/321044"&gt;&lt;font color="#0000ff" face="Calibri"&gt;troubleshooting steps for
authentication problems here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Ok,
that helps. But it’s not my solution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;o:p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;h2 style="margin:10pt 0in 0pt;"&gt;&lt;font size="4"&gt;&lt;font color="#4f81bd"&gt;&lt;font face="Cambria"&gt;MVPs to the Rescue&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h2&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;o:p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Fortunately,
my MVP buddies Edwin Sarmiento (&lt;/font&gt;&lt;a href="http://bassplayerdoc.blogspot.com/"&gt;&lt;font color="#0000ff" face="Calibri"&gt;blog&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;
| &lt;/font&gt;&lt;a href="http://www.twitter.com/bassplayerdoc"&gt;&lt;font color="#0000ff" face="Calibri"&gt;twitter&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;) of Canada and Bitemo
Erik Gergely (&lt;/font&gt;&lt;a href="http://blog.rollback.hu/"&gt;&lt;font color="#0000ff" face="Calibri"&gt;blog&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;) of Hungaria had
already discussed and solved the problem for me.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Something
Erik pointed out, but hadn’t occurred to me at first, is that if you’re getting
this SQL Server error message then you’ve actually reached the server and
probably aren’t having a full disconnect error.&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;The second
thing that Erik pointed out is &lt;em&gt;the importance of the state element&lt;/em&gt; of this error message.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;A lot of the time, you can simply ignore the
state element of an error message.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;i style="mso-bidi-font-style:normal;"&gt;But not this time. &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;As it turns out, &lt;em&gt;state is the key to
solving the problem&lt;/em&gt;.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For example, a
state of 18 indicates that the password must be changed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Microsoft
provides a pretty &lt;/font&gt;&lt;a href="http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx"&gt;&lt;font color="#0000ff" face="Calibri"&gt;good
description of the states of error 18456 here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;, but it leaves out a few
things.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;(You’ll get more useful info if
you read all of the comments too).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;But
again, Erik comes to the rescue by providing &lt;/font&gt;&lt;a href="http://blog.rollback.hu/2009/12/error-18456-level-14-state-sql-server-login-errors/"&gt;&lt;font color="#0000ff" face="Calibri"&gt;a
complete and concise list of error 18456 states here&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;o:p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;h2 style="margin:10pt 0in 0pt;"&gt;&lt;font size="4"&gt;&lt;font color="#4f81bd"&gt;&lt;font face="Cambria"&gt;Microsoft Improves the Documentation&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h2&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;o:p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Even better
for all troubleshooting situation involving state information, Microsoft has
now added &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms365262.aspx"&gt;&lt;font color="#0000ff" face="Calibri"&gt;state
descriptions for errors in Books Online&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;, including &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc645917.aspx"&gt;&lt;font color="#0000ff" face="Calibri"&gt;error 18456&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;When you look in your SQL Server error log,
you see the state of the error and be able to make an accurate deduction about
the nature of the error!&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;Hope this
helps,&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;-Kev&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;-Follow me
on &lt;/font&gt;&lt;a href="http://twitter.com/kekline"&gt;&lt;font color="#0000ff" face="Calibri"&gt;Twitter&lt;/font&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="line-height:115%;font-size:14pt;"&gt;&lt;font face="Calibri"&gt;-More content on my&amp;nbsp;&lt;/font&gt;&lt;a href="http://KevinEKline.com"&gt;&lt;font color="#0000ff" face="Calibri"&gt;blog&lt;/font&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;</description></item><item><title>Who owns your jobs?</title><link>http://www2.sqlblog.com/blogs/tibor_karaszi/archive/2011/10/06/who-owns-your-jobs.aspx</link><pubDate>Thu, 06 Oct 2011 16:13:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:38900</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;Yep, another Agent blog. The topic of job owner has been discussed here before, but this is a specific situation, which potentially is a ticking bomb. First a quick recap of how agent does things:&lt;/p&gt;&lt;p&gt;When a job is owned by somebody who is sysadmin, then no impersonation is performed. &lt;/p&gt;&lt;ul&gt;&lt;li&gt;T-SQL jobsteps will be executed as Agent's own Windows authenticated login.&lt;/li&gt;&lt;li&gt;Other jobsteps (which operates as the OS level) is done in Agent's service account's context.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Above is, assuming you didn't ask for impersonation for the jobstep (Run As). &lt;/p&gt;&lt;p&gt;Last week, at a SQL Server admin class, Andreas Jarbéus from Swedish Match asked about job owned by Windows account and what happens when that person leaves the company. I was about to say "no problem, if the job owner is sysadmin", but I felt there was a bit more to it. The scenario is:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The job owner is member of a Windows/AD group. Say you have a "SQL Server DBA" group in your AD.&lt;/li&gt;&lt;li&gt;This group is added as a login to your SQL Servers. The persons in that group do not have individual logins in SQL Server - only through this group. &lt;/li&gt;&lt;li&gt;This group is sysadmin. (I'm not saying that having jobs in general owned by sysadmins is a best practice. You can for instance have vendors installing some software and you &lt;strong&gt;don't&lt;/strong&gt; want to make them sysadmin. In such a case, clearly we don't want the job to keep running if that person would disappear. So, I'm targeting jobs owned by sysadmin here, and I would bet you have bunch of those.)&lt;/li&gt;&lt;li&gt;Somebody in this group creates an Agent job.&lt;/li&gt;&lt;li&gt;The person in the group leaves the company and is removed from this Windows/AD group.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Above is a pretty common scenario. The thing now is that &lt;strong&gt;the job no longer works&lt;/strong&gt;. And here's the reason:&lt;/p&gt;&lt;p&gt;If the owner was somebody in Windows/AD who's SID exists in SQL Server (the &lt;strong&gt;individual&lt;/strong&gt; was added as a login to SQL Server), then the job will still work. This also applies for SQL Logins which might be disabled (like "sa" for instance). The reason for this is that the SID for the job owner exists in sys.server_principals and SQL Server will know that this SID is sysadmin. Since Agent won't do impersonation for sysadmins, there's no need to "go out to Windows" and see if this SID exists in Windows/AD. Remove the login, and the job will stop working, though - but you have at least don't something explicitly inside your SQL Server to cause this (removed the login).&lt;/p&gt;&lt;p&gt;But when the owner's SID don't exist in sysadmin we have a problem. The problem is that the recorded owner of the job is the SID for the Windows user, even though that SID&amp;nbsp;doesn’t exist in sys.server_principals. As long as this still exists in Windows/AD, the job will work just fine. Agent will run this job owned by ?, ask Windows who this SID is and see that this SID is a member of a group which exists as a login in SQL Server and that is sysadmin. Now, imagine what happen if the SID doesn't exist in Windows anymore. The job is owned by ?, and that is all that SQL Server knows. The SID no longer exist in Windows/AD so you there's nobody to tell SQL Server "Yeah, this used to be a sysadmin in SQL Server - through a group membership in Windows/AD". &lt;/p&gt;&lt;p&gt;Even worse, the job seems to keep working until you re-start the SQL Server service, some caching going on. Makes it even more difficult to determine why the job suddenly stops working: "We deleted this Windows account 4.5 months ago." This is easy to repro, and you don't even need a domain (local Windows accounts and groups work just fine):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Create a Windows group for this.&lt;/li&gt;&lt;li&gt;Create a Windows account for this.&lt;/li&gt;&lt;li&gt;Add the Windows account to above group.&lt;/li&gt;&lt;li&gt;Add above &lt;strong&gt;group&lt;/strong&gt; as a login to SQL Server.&lt;/li&gt;&lt;li&gt;Make this group sysadmin.&lt;/li&gt;&lt;li&gt;Create a job, with two jobsteps:&lt;/li&gt;&lt;li&gt;T-SQL which executes: PRINT ORIGINAL_LOGIN() + ' | ' + SUSER_SNAME() + ' | ' + USER_NAME()&lt;/li&gt;&lt;li&gt;CmdExec which executes: WHOAMI.EXE&lt;/li&gt;&lt;li&gt;(Above isn't really necessary, but useful for testing other impersonation aspects of Agent)&lt;/li&gt;&lt;li&gt;Specify the Windows account as owner of the job.&lt;/li&gt;&lt;li&gt;Run the job, make sure it works fine.&lt;/li&gt;&lt;li&gt;Remove the Windows account from the Windows group.&lt;/li&gt;&lt;li&gt;Run the job and see it fails.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I'm sure this has been blogged before, but I was a bit surprised by it. I have now added a check for this in my "Check best practices" stored procedure I run every day... On the flip side, this doesn't seem to happen for multi-server (MSX) jobs, the ownership seems to have special handling for these&amp;nbsp;- you will see if you check the owner_sid in sysjobs.&lt;/p&gt;</description></item></channel></rss>