<?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>SQL Diablo</title>
	<atom:link href="http://www.sqldiablo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqldiablo.com</link>
	<description>Ramblings of a (not so) evil Accidental DBA</description>
	<lastBuildDate>Thu, 23 Feb 2017 03:29:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.8.5</generator>
<site xmlns="com-wordpress:feed-additions:1">32010208</site>	<item>
		<title>SQL 2016 &#8211; Retain CR/LF when copying from results grid</title>
		<link>http://www.sqldiablo.com/2016/06/10/sql-2016-retain-crlf-when-copying-from-results-grid/</link>
		<comments>http://www.sqldiablo.com/2016/06/10/sql-2016-retain-crlf-when-copying-from-results-grid/#respond</comments>
		<pubDate>Fri, 10 Jun 2016 15:06:37 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[SQL Server 2016]]></category>
		<category><![CDATA[Copy]]></category>
		<category><![CDATA[CR]]></category>
		<category><![CDATA[CRLF]]></category>
		<category><![CDATA[Grid]]></category>
		<category><![CDATA[LF]]></category>
		<category><![CDATA[Paste]]></category>
		<category><![CDATA[Results]]></category>
		<category><![CDATA[SQL 2016]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=798</guid>
		<description><![CDATA[I ran into a little gotcha today in SSMS for SQL 2016: It strips CR/LF characters by default when you copy from the results grid. To disable this, go to Tools &#8211;&#62; Options, expand Query Results &#8211;&#62; SQL Server, select &#8230; <a href="http://www.sqldiablo.com/2016/06/10/sql-2016-retain-crlf-when-copying-from-results-grid/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I ran into a little gotcha today in SSMS for SQL 2016: It strips CR/LF characters by default when you copy from the results grid. To disable this, go to Tools &#8211;&gt; Options, expand Query Results &#8211;&gt; SQL Server, select Results to Grid, and check &#8220;Retain CR/LF on copy or save&#8221;.</p>
<p><a href="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg"><img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  data-attachment-id="801" data-permalink="http://www.sqldiablo.com/2016/06/10/sql-2016-retain-crlf-when-copying-from-results-grid/retain-crlf/" data-orig-file="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?fit=758%2C441" data-orig-size="758,441" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Retain CRLF" data-image-description="" data-medium-file="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?fit=300%2C175" data-large-file="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?fit=584%2C340" class="alignleft size-full wp-image-801" src="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?resize=584%2C340" alt="Retain CRLF" srcset="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?w=758 758w, https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?resize=300%2C175 300w, https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2016/06/Retain-CRLF.jpg?resize=500%2C291 500w" sizes="(max-width: 584px) 100vw, 584px" data-recalc-dims="1" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2016/06/10/sql-2016-retain-crlf-when-copying-from-results-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">798</post-id>	</item>
		<item>
		<title>Where Do We Draw The Line?</title>
		<link>http://www.sqldiablo.com/2016/05/27/where-do-we-draw-the-line/</link>
		<comments>http://www.sqldiablo.com/2016/05/27/where-do-we-draw-the-line/#comments</comments>
		<pubDate>Fri, 27 May 2016 14:00:53 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=791</guid>
		<description><![CDATA[With everything going on in the US these days with discrimination still running wild, with hate crimes and violent crimes happening at alarming rates, with leaders that increasingly seem to care only about themselves and filling the coffers of the &#8230; <a href="http://www.sqldiablo.com/2016/05/27/where-do-we-draw-the-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg"><img data-attachment-id="792" data-permalink="http://www.sqldiablo.com/2016/05/27/where-do-we-draw-the-line/attachment/53094918/" data-orig-file="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?fit=400%2C400" data-orig-size="400,400" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="53094918" data-image-description="" data-medium-file="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?fit=300%2C300" data-large-file="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?fit=400%2C400" class="size-medium wp-image-792" src="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?resize=300%2C300" alt="53094918" srcset="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?resize=300%2C300 300w, https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?resize=150%2C150 150w, https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2016/05/53094918.jpg?w=400 400w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /></a>With everything going on in the US these days with discrimination still running wild, with hate crimes and violent crimes happening at alarming rates, with leaders that increasingly seem to care only about themselves and filling the coffers of the 1%, with bigotry and hate-speech becoming commonplace, and with what feels like an ever-increasing sense of selfishness and ever decreasing sense of selflessness, I suppose it&#8217;s only natural that there&#8217;s some bleed-over of those things into other areas of life&#8230;like our #SQLFamily and our #SQLCommunity.</p>
<p>If you&#8217;re plugged into our community through Twitter, Facebook, the blogosphere, etc., then you&#8217;re probably quite familiar with the repeating cycle we seem to go through as we jump from one dramatic social crisis or hot-button issue to the next, blazing a trail of fire, accusations, slurs and offensive language, and disrespect along the way. I guess that&#8217;s to be expected, but that doesn&#8217;t make it right. It concerns me&#8230;a lot, and it has me asking some tough questions of myself and of our community, and taking a hard look at my involvement and affiliation with it all.</p>
<p>Have we lost our focus as a community? Have we forgotten that this community was founded on principles or helping, supporting, and uplifting each other? Have we become too accustomed to and perhaps jaded or spoiled by our successes? Have we forgotten to treat each other like human beings, with dignity, kindness, and respect&#8230; like real people, with real problems (both personal and professional), and perhaps most importantly, with real feelings that can be hurt.</p>
<p>Where do we draw the line between having constructive discussions about hard-hitting issues and being just plain mean, rude, hateful, attacking, inflammatory, slanderous, or offensive? Can we find a balance that lets us be considerate and respectful about what we say and how we say it without being afraid to talk about important things and to stand up for what we feel passionately about? How do we stay true to ourselves, our brands, our voices, our beliefs, and our feelings without trampling on those of others?</p>
<p>Like I said, these are tough questions, and I don&#8217;t have answers to most of them. I don&#8217;t expect things to get better overnight or even to improve because of this blog post. Part of my reason for writing this is to vent some of my worries and frustrations with what our community is becoming and how we (all of us&#8230;myself included at times) are behaving. The other reason I write this is in hopes that at least one person out there will read it and will ask themselves these same questions. I don&#8217;t know that I even care what their answers are, really. I just care that they spend some time thinking about these things and evaluating whether they&#8217;re moving in the direction they want to be, behaving the way they want others to behave, and coming into this with the right motivations, whatever those may be.</p>
<p>After all, we&#8217;re all adults here. We&#8217;re better than this, and we know it. We&#8217;ve achieved some great things together, and I know we can achieve even greater things together in the future, but we need to stay focused to do it. We need to focus on our community and its goals and mission and on what each of us can bring to the table to help us all grow and learn and improve. We need to reevaluate what is important to us. We need to reevaluate our behaviours and our interactions with others. We need to redefine our core purpose and our core beliefs as a community (even if that just means restating them as they are already), and then we need to focus on living by that purpose and those beliefs. Let&#8217;s try not to get distracted by the drama, by the pettiness, by the personalities, by the politics, by all of the things that take us away from helping each other. You see, it&#8217;s by helping each other grow that we grow the most ourselves.</p>
<p>I love you, #SQLFamily, really, I do. I think of many of you as close friends and even as part of my extended family. For me, SQL Saturdays and the PASS Summit are like a vacation, a family reunion, and a chance to geek out all rolled into one. Many of you have been mentors to me throughout the years, and I&#8217;ve had the privilege of being a mentor to several others as well. That is what makes this community great. That is what drew me in originally, and it&#8217;s what keeps me coming back. That is what we need to stay focused on and passionate about. Let&#8217;s draw the line here. Let&#8217;s make a stand, and let&#8217;s make a difference. Let&#8217;s start treating others with respect again. Let&#8217;s focus back on helping others. Let&#8217;s focus on building up our community instead of tearing it down.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2016/05/27/where-do-we-draw-the-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">791</post-id>	</item>
		<item>
		<title>And the results are in&#8230;</title>
		<link>http://www.sqldiablo.com/2015/03/03/and-the-results-are-in/</link>
		<comments>http://www.sqldiablo.com/2015/03/03/and-the-results-are-in/#respond</comments>
		<pubDate>Wed, 04 Mar 2015 04:53:11 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[Leadership]]></category>
		<category><![CDATA[Ohio North SQL Server User Group]]></category>
		<category><![CDATA[ONSSUG]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[Professional Association for SQL Server]]></category>
		<category><![CDATA[User Group]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=645</guid>
		<description><![CDATA[First of all, I&#8217;d like to take a moment to thank Allen White (b &#124; t) for his dedication to and leadership of the Ohio North SQL Server User Group over the years, and for personally mentoring me and many others in &#8230; <a href="http://www.sqldiablo.com/2015/03/03/and-the-results-are-in/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>First of all, I&#8217;d like to take a moment to thank Allen White (<a title="Allen White" href="http://sqlblog.com/blogs/allen_white/" target="_blank">b</a> | <a title="Allen White" href="https://twitter.com/SQLRunr" target="_blank">t</a>) for his dedication to and leadership of the Ohio North SQL Server User Group over the years, and for personally mentoring me and many others in the User Group, both as speakers and as IT Professionals. Simply put: If it weren&#8217;t for Allen, I wouldn&#8217;t have started speaking and wouldn&#8217;t have half the opportunities (and friendships\connections) that I have today. It&#8217;s because of this that Allen&#8217;s <a title="Open Letter to the Ohio North SQL Server User Group" href="http://sqlblog.com/blogs/allen_white/archive/2015/02/17/open-letter-to-the-ohio-north-sql-server-users-group.aspx" target="_blank">Open Letter to the Ohio North SQL Server User Group</a> and his decision not to run for the office of Chapter Leader and President of the group is a bit bittersweet for me. While Allen will continue to attend and be involved in the User Group, and I&#8217;m sure he will continue to mentor many of us as well, I know I&#8217;m going to miss his smiling face, show tunes, and other antics as the face of our meetings and the leader of our group. I can certainly understand where he&#8217;s coming from though, and his need to take a step back from the group, as well as his various reasons for doing so (which he outlines quite nicely in his open letter).</p>
<p>With all of that said, I&#8217;m extremely proud, honored, and humbled to announce that I have been elected to be the next Chapter Leader and President of the Ohio North SQL Server User Group. Allen left some pretty big shoes to fill, and while I can&#8217;t replace him, I&#8217;ll certainly do my best to carry the group forward, to continue Allen&#8217;s work in mentoring and fostering new speakers and members of our community, and to look for new and creative ways to get others involved in our group and our events and to foster a real sense of ownership in our group. It&#8217;s these things specifically that make our User Group one of the best out there. I get asked all the time how we manage to have such an engaged team that follows-through on tasks and routinely puts on such outstanding events, and my reply is always the same: it&#8217;s the sense of ownership in the group and in the events and the mentorship and friendship that exists within the group that allow us to be so successful. We&#8217;ve got an amazing group of people with an awesome breadth  and depth of skills and insights, and as Chapter Leader, I promise to keep fostering that, and to find ways to engage it to the best of my ability.</p>
<p>Finally, I&#8217;d just like to close with a brief listing of the things I&#8217;d like to work on this year and into the years that follow in an attempt to keep our group moving forward, growing, and evolving:</p>
<ul>
<li>Finalize\restart the process to get 501(c)(3) non-profit status for the group
<ul>
<li>Help move the group bank account over to the non-profit organization, and not have it tied to any one person</li>
</ul>
</li>
<li>Continue Allen’s work to foster new local speakers
<ul>
<li>Look at how we can adjust the meeting\agenda to better support this (lightning talks, multiple sessions, etc.)</li>
<li>Have an open invitation to personally help new speakers with session\abstract reviews and ideas</li>
</ul>
</li>
<li>Hold board\officer meetings to review the current officer positions and their responsibilities and adjust them as needed</li>
<li>Use my professional network to attract speakers from other areas to speak at our user group (please let me know if you&#8217;re interested; we&#8217;d love to have you)</li>
<li>Work with the other officers to improve the user group website, communications, etc.</li>
<li>Lead the SQL Saturday planning efforts, or work closely with someone else if they would like to lead the planning efforts</li>
<li>Create additional roles within the group (like the Sponsorship Coordinator position that I held previously) to allow others to contribute to the user group, if desired</li>
<li>Represent the user group at the PASS Summit, various SQL Saturday events, other user groups, etc. to exchange knowledge and ideas for running a successful User Group or SQL Saturday event</li>
</ul>
<p>Thank you to everyone who voted for me tonight, and for letting me lead this awesome group of professionals. I&#8217;m looking forward to the year ahead and to some new and interesting challenges.</p>
<p>Sincerely,<br />
Adam Belebczuk<br />
Chapter Leader and President<br />
Ohio North SQL Server User Group</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2015/03/03/and-the-results-are-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">645</post-id>	</item>
		<item>
		<title>PASS Summit 2014 Recap</title>
		<link>http://www.sqldiablo.com/2014/11/07/pass-summit-2014-recap/</link>
		<comments>http://www.sqldiablo.com/2014/11/07/pass-summit-2014-recap/#comments</comments>
		<pubDate>Sat, 08 Nov 2014 02:33:32 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[Goals]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[Speaking]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Summit]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=596</guid>
		<description><![CDATA[Just moments ago, the PASS Summit 2014 wrapped up, and will be forever in the history books. When I got back to my hotel room, I started thinking about the event, the awesome people that I met for the first time, &#8230; <a href="http://www.sqldiablo.com/2014/11/07/pass-summit-2014-recap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  data-attachment-id="597" data-permalink="http://www.sqldiablo.com/2014/11/07/pass-summit-2014-recap/summit-2014-badge/" data-orig-file="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?fit=3120%2C4208" data-orig-size="3120,4208" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;A0001&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1039348800&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.79&quot;,&quot;iso&quot;:&quot;563&quot;,&quot;shutter_speed&quot;:&quot;0.030303030303&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="" data-image-description="" data-medium-file="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?fit=222%2C300" data-large-file="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?fit=584%2C788" class="alignright size-medium wp-image-597" src="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?resize=222%2C300" alt="" srcset="https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?resize=222%2C300 222w, https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?resize=759%2C1024 759w, https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?w=1168 1168w, https://i0.wp.com/www.sqldiablo.com/wp-content/uploads/2014/11/Summit-2014-Badge.jpg?w=1752 1752w" sizes="(max-width: 222px) 100vw, 222px" data-recalc-dims="1" /></a>Just moments ago, the PASS Summit 2014 wrapped up, and will be forever in the history books. When I got back to my hotel room, I started thinking about the event, the awesome people that I met for the first time, the old friends that I was able to reconnect with, the completely mind-blowing experience of being a first time speaker at the Summit, and everything else that has gone on over just one short week. I quickly realized that I wanted to take a moment to blog about it and share some of my experiences, but to also act as a journal of sorts. Below are just some of the awesome things that I&#8217;ve done, or that have happened to me this week:</p>
<ul>
<li>I finally got to meet Paul Randal, Kimberly Tripp, and Jonathan Kehayias of SQL Skills and I was able to attend Paul&#8217;s pre-conference session on Performance Tuning Using Waits and Latches. As expected, the pre-conference session was awesome, as were Paul, Kimberly, and Jonathan.</li>
<li>I was able to network with other people from the Cleveland area, as well as from around the world, and I was even able to recruit at least one person to apply for a job at my company.</li>
<li>I was able to attend volunteer meetings and the SQL Saturday Roundtable meeting for the first time and to get some insight into PASS as an organization and how other community members approach their events. In addition, I was able to hear from several sponsors about how the community can better engage them.</li>
<li>I volunteered as a Summit Ambassador for the first time and was able to assist attendees with finding their way around the conference center.</li>
<li>I was interviewed by PASS TV to speak about local events and was able to give a shout-out to both the upcoming Cleveland SQL Saturday and Columbus SQL Saturday.</li>
<li>I presented my Introduction to AlwaysOn Availability Groups session to one of the largest audiences that I&#8217;ve ever presented to in-person (it was also video recorded), and even had a Microsoft employee attend my session and offer some insight into where AlwaysOn Availability Groups are heading in future versions of SQL Server. I was also paid a visit by the Demo Gremlins when my demo laptop decided to reboot while I was presenting the first half of my session. Fortunately, I was able to recover from the issue on the fly and still presented a successful, working demo of an Availability Groups (it just had 2 replicas instead of 3 <img src="https://s.w.org/images/core/emoji/2.3/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> ). My audience was energetic, enthusiastic, and engaged, and I even had a swarm of attendees approach me after my session to say hi and to ask follow-up questions. As a speaker, I couldn&#8217;t be happier with how things worked out.</li>
<li>I was able to visit the Experience Music Project (EMP) museum for the second time for the PASS Community Appreciation Party, and it ROCKED!</li>
<li>I was also approached by Pluralsight to produce a training video about AlwaysOn Availability Groups, and by Apress to write a book about them as well. We&#8217;ll see how these opportunities pan out, but I&#8217;m cautiously optimistic about them at this point. *fingers crossed*</li>
</ul>
<p>As you can see, it&#8217;s been a busy, exciting, fun, and exhausting week for me. I&#8217;m still blown away by the fact that I was selected to speak and that I was approached by Pluralsight and Apress, and it&#8217;s all thanks to PASS and to amazing friends and mentors like Allen White, Erin Stellato, and Brian Davis who got me started as a speaker and helped me grow over these past several year. I&#8217;ve said it before, and I&#8217;ll say it again: this community has an amazing ability to change peoples&#8217; lives and to help them grow by bring them together for a common cause. It&#8217;s been a wild ride, and the best part of it is that it&#8217;s only just the beginning.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2014/11/07/pass-summit-2014-recap/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">596</post-id>	</item>
		<item>
		<title>PASS Summit 2014 &#8211; I&#8217;m Speaking!</title>
		<link>http://www.sqldiablo.com/2014/06/25/pass-summit-2014-im-speaking/</link>
		<comments>http://www.sqldiablo.com/2014/06/25/pass-summit-2014-im-speaking/#respond</comments>
		<pubDate>Wed, 25 Jun 2014 17:30:54 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=568</guid>
		<description><![CDATA[Well, with a title like that, I think the cat&#8217;s out of the bag&#8230;I&#8217;M SPEAKING AT THE PASS SUMMIT! I still can&#8217;t believe it, even as I typed those words and added the graphics from PASS to my site to &#8230; <a href="http://www.sqldiablo.com/2014/06/25/pass-summit-2014-im-speaking/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  data-attachment-id="564" data-permalink="http://www.sqldiablo.com/2014/06/25/pass-summit-2014-im-speaking/linkclick-aspx-2/" data-orig-file="https://i2.wp.com/www.sqldiablo.com/wp-content/uploads/2014/06/LinkClick.aspx_.png?fit=250%2C250" data-orig-size="250,250" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Summit14 &#8211; I&#8217;m Speaking" data-image-description="" data-medium-file="https://i2.wp.com/www.sqldiablo.com/wp-content/uploads/2014/06/LinkClick.aspx_.png?fit=250%2C250" data-large-file="https://i2.wp.com/www.sqldiablo.com/wp-content/uploads/2014/06/LinkClick.aspx_.png?fit=250%2C250" class="alignright size-full wp-image-564" src="https://i2.wp.com/www.sqldiablo.com/wp-content/uploads/2014/06/LinkClick.aspx_.png?resize=250%2C250" alt="Summit14 - I'm Speaking" srcset="https://i2.wp.com/www.sqldiablo.com/wp-content/uploads/2014/06/LinkClick.aspx_.png?w=250 250w, https://i2.wp.com/www.sqldiablo.com/wp-content/uploads/2014/06/LinkClick.aspx_.png?resize=150%2C150 150w" sizes="(max-width: 250px) 100vw, 250px" data-recalc-dims="1" />Well, with a title like that, I think the cat&#8217;s out of the bag&#8230;I&#8217;M SPEAKING AT THE PASS SUMMIT!</p>
<p>I still can&#8217;t believe it, even as I typed those words and added the graphics from PASS to my site to promote the Summit. I have been selected to present my session &#8220;Introduction to AlwaysOn Availability Groups&#8221; as a 75 minute regular session at the Summit! It&#8217;s hard to believe that I&#8217;ve only been a member of PASS for 4 years now, starting with my very first SQL Saturday event in Columbus, OH on June 26th, 2010. Although, even sitting at that first SQL Saturday as a quiet, timid, and more than slightly confused database geek, I knew that PASS would change my life and my career as I knew them, and that has most definitely held true.</p>
<p>You see, it was that first SQL Saturday that introduced me to the concept of local SQL Server user groups, and it was at my local user group that I met and eventually became very good friends with Allen White (<a title="twitter" href="https://twitter.com/SQLRunr" target="_blank">twitter </a>| <a title="blog" href="http://sqlblog.com/blogs/allen_white/default.aspx" target="_blank">blog</a>) who is now not only a friend, but a mentor to me. At the beginning of every <a title="Ohio North SQL Server Users Group" href="http://www.ohionorthsqlserverug.org/" target="_blank">Ohio North SQL Server Users Group</a> meeting, Allen says something to the effect of &#8220;Every single one of you has something to share that everyone can learn from.&#8221; It&#8217;s part of his usual introduction to the meeting, but more than that, it&#8217;s a mantra that has inspired me (and many others) and that I have tried to live by over these past 3 years as I&#8217;ve spoken at various PASS events.</p>
<p>It really is amazing, as I look back on the last couple years, how much I&#8217;ve grown as a database professional, as a speaker, and as a person. I&#8217;m more confident, more outspoken and self-assured, and more knowledgeable, largely in part to PASS and the experiences and friendships that I&#8217;ve gained from becoming a member of this organization. In fact, if it weren&#8217;t for PASS, I would never have met Erin Stellato (<a title="twitter" href="https://twitter.com/ErinStellato" target="_blank">twitter</a> | <a title="blog" href="http://www.sqlskills.com/blogs/erin/" target="_blank">blog</a>), another good friend and mentor who was the connection that ultimately led me to my current job with Hyland Software. It&#8217;s funny how such a simple thing as one organization or one event can have such a profound impact on someone&#8217;s life, and I know I&#8217;m not alone in my experiences. It&#8217;s this and this alone that keeps me coming back and keeps me giving back to this awesome organization.</p>
<p>Thank you PASS, and more importantly the volunteers that give up their time and energy to make PASS events happen, for changing my life and giving me an awesome group of people that I&#8217;m proud to call my #SQLFamily!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2014/06/25/pass-summit-2014-im-speaking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">568</post-id>	</item>
		<item>
		<title>SQL Saturday Cleveland 2014</title>
		<link>http://www.sqldiablo.com/2014/01/13/sql-saturday-cleveland-2014/</link>
		<comments>http://www.sqldiablo.com/2014/01/13/sql-saturday-cleveland-2014/#respond</comments>
		<pubDate>Mon, 13 Jan 2014 15:00:46 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQL Saturday]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Saturday]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLSaturday]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=511</guid>
		<description><![CDATA[Happy New Year, and welcome to another exciting year of SQL Server learning! With that said, why not join us at Cleveland&#8217;s 3rd SQL Saturday on February 8th at Hyland Software? The weather may be cold and gray outside, but &#8230; <a href="http://www.sqldiablo.com/2014/01/13/sql-saturday-cleveland-2014/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.sqlsaturday.com/241/eventhome.aspx"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  data-attachment-id="514" data-permalink="http://www.sqldiablo.com/2014/01/13/sql-saturday-cleveland-2014/sqlsat241_web/" data-orig-file="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2014/01/sqlsat241_web.png?fit=236%2C115" data-orig-size="236,115" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Cleveland SQL Saturday" data-image-description="" data-medium-file="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2014/01/sqlsat241_web.png?fit=236%2C115" data-large-file="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2014/01/sqlsat241_web.png?fit=236%2C115" class="alignright size-full wp-image-514" alt="Cleveland SQL Saturday" src="https://i1.wp.com/www.sqldiablo.com/wp-content/uploads/2014/01/sqlsat241_web.png?resize=236%2C115" data-recalc-dims="1" /></a>Happy New Year, and welcome to another exciting year of SQL Server learning! With that said, why not join us at Cleveland&#8217;s 3rd <a title="SQL Saturday" href="http://www.sqlsaturday.com/241/eventhome.aspx" target="_blank">SQL Saturday</a> on February 8th at Hyland Software? The weather may be cold and gray outside, but I promise you it&#8217;ll be warm, inviting, and fun at our event! This year I&#8217;ve decided to step into the captain&#8217;s seat and lead the planning efforts for SQL Saturday, and it&#8217;s been a blast! We have a ton of awesome speakers and experts lined up like Tom LaRock, Steve Jones, Tim Ford, Grant Fritchey, Kendal Van Dyke, Argenis Fernandez, Stacia Misner, Andy Leonard, and Erin Stellato, just to name a few. Check out the full line-up <a title="SQL Saturday Schedule" href="http://www.sqlsaturday.com/241/schedule.aspx" target="_blank">here</a>! In addition to our amazing speaker line-up, we&#8217;ll also have some fun activities and experts available to answer your questions. Believe me, you don&#8217;t want to miss this event!</p>
<p>Oh, and did I mention that we have two awesome pre-con sessions available? Why yes, yes we do!</p>
<h1><a href="https://sqlsat241-precon1.eventbrite.com" target="_blank">A Day of SQL Server Internals and Data Recovery</a></h1>
<blockquote><p>Take your recovery game to an all new level. Take a deep dive into SQL Server internals and data recovery and learn how to handle a wide variety of data loss and corruption scenarios. The session will cover how to be prepared for, prevent, and recover data lost due to deletion or corruption.</p>
<p>Learn the following skills in this session:</p>
<ul>
<li>Built-in functionality in SQL Server for preventing and detecting corruption that you may not even know about.</li>
<li>How to identify a specific transaction in the transaction log and recover data lost from that transaction.</li>
<li>Categories of corruption and how to manage recovery differently for each one.</li>
</ul>
<p>Don&#8217;t come empty handed. Bring your laptop and we&#8217;ll practice recovering corrupt databases together.</p>
<h2>Speaker Bio:</h2>
<p>Argenis Fernandez is a Senior Database Engineer for SurveyMonkey based in Redmond, WA. He has worked with SQL Server for over 15 years and enjoys large SQL Server farms, high-end OLTP databases, managing Windows environments, performance troubleshooting, high availability, disaster recovery, best practices, and PowerShell scripting. Prior to SurveyMonkey, Argenis worked as a Senior Database Administrator for Coinstar/redbox and as a Senior Consultant on SQL Server Core for Microsoft Consulting Services. In 2013 he founded the Security Virtual Chapter for the Professional Association for SQL Server (PASS) (<a href="http://security.sqlpass.org" target="_blank">http://security.sqlpass.org</a>).</p>
<p>Argenis is a SQL community enthusiast and speaks frequently at major SQL Server conferences, including the PASS Summit, PASS SQL Rally, IT/Dev Connections, SQLBits, and Microsoft TechEd. He is also a Microsoft Certified Master on SQL Server 2008, an avid Twitter user (you can follow him at <a href="http://www.twitter.com/@DBArgenis" target="_blank">@DBArgenis</a>), and occasional blogger on SQL Server topics at <a href="http://www.SQLBlog.com" target="_blank">SQLBlog.com</a>.</p>
<p><a href="https://sqlsat241-precon1.eventbrite.com" target="_blank">Register for this precon</a></p></blockquote>
<h1><a href="http://www.eventbrite.com/e/automate-and-manage-sql-server-with-powershell-tickets-10030536605?aff=eorg" target="_blank">Automate and Manage SQL Server with PowerShell</a></h1>
<blockquote><p>This soup-to-nuts all day workshop will first introduce you to PowerShell, after which you’ll learn the basic SMO object model, how to manipulate data with PowerShell and how to use SMO to manage objects. We&#8217;ll also cover how to manage data using the Invoke-SQLCmd cmdlet as well as ADO.NET.  We’ll then move on to creating Policy-Based Management policies, work with the Central Management Server, manage your system inventory and gather performance data with PowerShell. We’ll wrap up with a look at PowerShell Remoting and how you can use PowerShell to manage SQL Server 2012 in server environments including Windows Server Core. After this one day, you’ll be ready to go to work and able to use PowerShell to make you truly effective.</p>
<h2>Speaker Bio:</h2>
<p>Allen White is a Microsoft SQL Server MVP and Practice Leader at UpSearch. Allen has been working with relational database systems for over 20 years. He has architected database solutions in application areas like retail point-of-sale (POS), POS audit, loss prevention, logistics, school district information management, purchasing and asset inventory and runtime analytics. He currently serves the SQL Server community as President of the Ohio North SQL Server User Group, the Cleveland, OH based chapter of the Professional Association for SQL Server (PASS).  Contact Allen at <a href="http://www.upsearch.com" target="_blank">upsearch.com</a>. Follow Allen on Twitter: <a href="http://www.twitter.com/@SQLRunr" target="_blank">@SQLRunr</a></p>
<p><a href="http://www.eventbrite.com/e/automate-and-manage-sql-server-with-powershell-tickets-10030536605?aff=eorg" target="_blank">Register for this precon</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2014/01/13/sql-saturday-cleveland-2014/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">511</post-id>	</item>
		<item>
		<title>Introduction to SQL Server 2012 AlwaysOn Availability Groups &#8211; Q &#038; A</title>
		<link>http://www.sqldiablo.com/2013/05/13/introduction-to-sql-server-2012-alwayson-availability-groups-q-a/</link>
		<comments>http://www.sqldiablo.com/2013/05/13/introduction-to-sql-server-2012-alwayson-availability-groups-q-a/#comments</comments>
		<pubDate>Mon, 13 May 2013 15:20:35 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[Availability Groups]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=445</guid>
		<description><![CDATA[Last week, I presented my session &#8220;Introduction to SQL Server 2012 AlwaysOn Availability Groups&#8221; to my largest audience ever at the PASS DBA Fundamentals Virtual Chapter. There were 191 total attendees, and I would like to take a moment to &#8230; <a href="http://www.sqldiablo.com/2013/05/13/introduction-to-sql-server-2012-alwayson-availability-groups-q-a/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Last week, I presented my session &#8220;<a title="AlwaysOn Availability Groups" href="http://www.sqldiablo.com/alwayson/" target="_blank">Introduction to SQL Server 2012 AlwaysOn Availability Groups</a>&#8221; to my largest audience ever at the <a title="PASS DBA Fundamentals Virtual Chapter" href="http://fundamentals.sqlpass.org" target="_blank">PASS DBA Fundamentals Virtual Chapter</a>. There were 191 total attendees, and I would like to take a moment to thank all of you for attending, it was truly AWESOME! Also, I would like to take a moment to apologize for the audio issues that occurred throughout the session. This was primarily my fault, as I had joined the webinar twice, once as a presenter by phone with a high-quality headset and good quality audio connection, and another time as an attendee just to keep an eye on what all of you were seeing. Unfortunately, the attendee laptop was somehow selected as the microphone to be used while I presented from my actual presenter laptop, and that is why the audio kept fading in and out and was poor quality. Mark, Mike, and I met to discuss this and how to prevent it in the future, and so this should not happen again.</p>
<p>Anyway, I received several questions during this session that I wanted to address via this blog post, as I think they could benefit everyone. So without further delay, here they are:</p>
<ul>
<li>What would you recommend for the maximum number of (practical) databases per Availability Group?
<ul>
<li>This will depend on the hardware you’re running on (specifically the number of CPU threads that the primary replica can support), and the network bandwidth available between your primary and secondary replicas. Also, the amount of transactions per second occurring in each database will be a factor in this. There are no hard-and-fast rules about how many databases can be in the Availability Group. Please see <a href="http://msdn.microsoft.com/en-us/library/ff878487.aspx#RestrictionsAG" target="_blank">http://msdn.microsoft.com/en-us/library/ff878487.aspx#RestrictionsAG </a>for Microsoft&#8217;s recommendations in this regard.</li>
</ul>
</li>
<li>How do Availability Groups work with CDC?
<ul>
<li>CDC is fully supported (and even complimented by) AlwaysOn Availability Groups. Please see this MSDN article: <a href="http://msdn.microsoft.com/en-us/library/hh403414.aspx#CDC" target="_blank">http://msdn.microsoft.com/en-us/library/hh403414.aspx#CDC</a></li>
</ul>
</li>
<li>If an Availability Group is setup at the SQL Instance level, can you have multiple SQL instances per cluster node and have an Active-Active configuration?
<ul>
<li>First of all, an Availability Groups is not the same as a Failover Cluster Instance. An Availability Group is a group of 1 or more databases that all failover together and share a set of replicas onto which that failover may occur. Each replica is another SQL Server instance that sits on another node of the same Windows Server Failover Cluster that the primary replica does. With that said, an Availability Group can only have replicas that are nodes of the same Windows Server Failover Cluster. Therefore, active/active in an Availability Group would be more a question about which replicas are readable or not and not so much about running multiple Availability Groups. Additionally, an Availability Group is not an instance-level failover (like in a Failover Cluster Instance), so things like the master and MSDB databases, logins, etc. do not failover in an Availability Group. You can have multiple Availability Groups running at the same time, but keep in mind that they would all need to be sitting on nodes of the same Windows Server Failover Cluster, and only one instance of SQL Server per cluster node can participate in Availability Groups due to the coordination between the Availability Groups and their underlying Windows Server Failover Cluster. To clarify that a bit, you cannot install 2 SQL Server instances to the same Windows Server Failover Cluster node and have one instance host a replica for on Availability Group and the other instance host a replica for a different Availability Group. Instead, you would have a single SQL Server Instance on the Windows Server Failover Cluster node that would participate in both of the Availability Groups.</li>
</ul>
</li>
<li>Is it possible to set this up with demo licenses? Is there a temp/demo/developer clustering license available from Microsoft? (for those of us on the bench who would like to test this)
<ul>
<li>Absolutely! Microsoft offers an evaluation version of SQL Server 2012, which can be downloaded from <a href="http://www.microsoft.com/en-us/download/details.aspx?id=29066" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=29066</a> and used to test AlwaysOn Availability Groups. In addition, if you already have SQL Server Developer Edition licenses, you can use those licenses to test AlwaysOn Availability Groups (you just can’t use them in any production capacity).</li>
</ul>
</li>
<li>Can you select which databases are in the Availability Group? Can you have two different databases from two different servers?
<ul>
<li>Yes, you can select which databases are part of the Availability Group. However, any database that is part of the Availability Group will need to be present on the primary replica and then synchronized to all secondary replicas. Therefore, if your primary replica has 10 databases, you could select 5 of those databases to be part of the Availability Group and those would then be synchronized to the other replicas. The 5 databases not included in the Availability Group would remain untouched and only on the server that they were on originally. The same is true of the secondary replicas. They will already contain all of the databases that are part of the Availability Group, but they can also contain a number of local databases that are not part of the Availability Group.</li>
</ul>
</li>
<li>Can we use SQL Server Standard edition for only two nodes? (reference: <a href="http://msdn.microsoft.com/en-us/library/cc645993.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/cc645993.aspx</a>)
<ul>
<li>No, you cannot. What the High Availability matrix is showing is running a two node Failover Cluster Instance on Standard edition. There are only two editions of SQL Server that will support Availability Groups, and those are Enterprise and Developer editions, and both edition support up to 5 replicas in an Availability Group. Remember that AlwaysOn is just a marketing term that Microsoft uses to describe several of their High Availability features, and is not a feature in itself. Don’t let their overuse of this term confuse you.</li>
</ul>
</li>
<li>Should the listener be a separate server? Does the listener need to have SQL Server installed on it?
<ul>
<li>The listener name is just a cluster resource name, and is not a separate physical server or cluster node, nor is it a separate SQL Server instance like a Database Mirroring Witness would be. Think of the listener name as just another service that the Windows Server Failover Cluster can host on any of its nodes. The caveat here is that the Availability Group and the Cluster are talking to one another and so the Availability Group makes sure that the listener name is always hosted by the cluster node that is the primary replica of the Availability Group. Therefore it is safe to say that the primary replica (a stand-alone SQL Server Instance installed on a Windows Server Failover Cluster node) is always the host of the listener name (if you created one).</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2013/05/13/introduction-to-sql-server-2012-alwayson-availability-groups-q-a/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">445</post-id>	</item>
		<item>
		<title>Creating a Login with a SID</title>
		<link>http://www.sqldiablo.com/2012/09/17/creating-a-login-with-a-sid/</link>
		<comments>http://www.sqldiablo.com/2012/09/17/creating-a-login-with-a-sid/#respond</comments>
		<pubDate>Mon, 17 Sep 2012 15:00:21 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2012]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=387</guid>
		<description><![CDATA[For those of you who don&#8217;t already know, there is a new PASS Virtual Chapter called DBA Fundamentals that has meetings on the first Tuesday of every month. The chapter specializes in providing training and support for new DBAs and &#8230; <a href="http://www.sqldiablo.com/2012/09/17/creating-a-login-with-a-sid/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>For those of you who don&#8217;t already know, there is a new PASS Virtual Chapter called <a title="DBA Fundamentals" href="http://fundamentals.sqlpass.org/" target="_blank">DBA Fundamentals</a> that has meetings on the first Tuesday of every month. The chapter specializes in providing training and support for new DBAs and also for seasoned DBAs who would just like to brush-up on their skills. I was fortunate enough to be asked to present at their second meeting on 9/4, and I gave my session about <a title="Service Broker" href="http://www.sqldiablo.com/service-broker/" target="_blank">SQL Server Service Broker</a>. One of the questions that I was asked during the session was: <strong>How do you create a login with a SID, and more specifically, how do you create and find the SID for that login?</strong></p>
<p>In my session on Service Broker and also in my session on AlwaysOn Availability Groups, I mention that if you&#8217;re using AlwaysOn Availability Groups or Database Mirroring that you should create your logins with the same SID on each instance/replica so that when a failover occurs, you don&#8217;t have to re-map your database users to their appropriate logins. However, I don&#8217;t really go into the detail of how to do that in my sessions, so I wanted to take some time to do that here.</p>
<pre>use master;

-- Get a new GUID value to use as the SID
declare @SID uniqueidentifier = newid();

-- In order to use the SID in a create login statement, it must be in binary format
declare @SID_Binary varbinary(max) = (select cast(@SID as varbinary(max)));

-- View the SID in GUID and Binary format:
select @SID, @SID_Binary;
-- E72669E3-9FAA-4BCB-8F8F-570EBF114674, 0xE36926E7AA9FCB4B8F8F570EBF114674

-- Here is the statement we really want to run:
--create login SQLDiablo with password='Passw0rd!', sid=0xE36926E7AA9FCB4B8F8F570EBF114674;

-- But that requires us to paste in the SID. There has to be a better way:
declare @UserName nvarchar(128) = 'SQLDiablo', @Password nvarchar(max) = 'Passw0rd!';
declare @Query nvarchar(max) = 'create login ' + @UserName + ' with password=''' + @Password + ''', sid=0x' + cast('' as xml).value('xs:hexBinary(sql:variable("@SID_Binary") )', 'varchar(max)') + ';';

select @Query;
execute sp_executesql @Query;

-- Since varbinary can be a little tricky to work with in dynamic SQL, XPath is our friend.
-- Above we converted the value of @SID_Binary to Hex using XPath's value method (don't forget to add 0x to the beginning of it).

-- Get the SID for the login we just created, as a GUID
select sp.name, cast(sp.sid as uniqueidentifier) SID_AS_GUID from sys.server_principals sp where sp.name = 'SQLDiablo';

-- SQLDiablo, E72669E3-9FAA-4BCB-8F8F-570EBF114674

set @Query = 'drop login ' + @UserName + ';';
execute sp_executesql @Query;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2012/09/17/creating-a-login-with-a-sid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">387</post-id>	</item>
		<item>
		<title>SQL Saturday #164 &#8211; Cleveland: Lessons Learned</title>
		<link>http://www.sqldiablo.com/2012/08/20/sql-saturday-164-cleveland-lessons-learned/</link>
		<comments>http://www.sqldiablo.com/2012/08/20/sql-saturday-164-cleveland-lessons-learned/#respond</comments>
		<pubDate>Mon, 20 Aug 2012 19:30:10 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL Saturday]]></category>
		<category><![CDATA[Lessons Learned]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Wrap-Up]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=370</guid>
		<description><![CDATA[Well, SQL Saturday #164 &#8211; Cleveland 2012 is in the history books, and it looks like all of our planning, blood, sweat, and tears have paid off. This was my first time helping organize a SQL Saturday, and I&#8217;ve got &#8230; <a href="http://www.sqldiablo.com/2012/08/20/sql-saturday-164-cleveland-lessons-learned/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Well, SQL Saturday #164 &#8211; Cleveland 2012 is in the history books, and it looks like all of our planning, blood, sweat, and tears have paid off. This was my first time helping organize a SQL Saturday, and I&#8217;ve got to say it was quite an experience! As part of the core planning team and as the lead for the restaurant and catering team, my last several months have been filled with tons of planning meetings, e-mails, phone calls, and lots and lots of little details to manage. It&#8217;s amazing how much work goes into an event like this, and <strong>it&#8217;s even more amazing to see a great team come together and pull it off</strong>. Before I continue with my lessons learned, I just wanted to take a moment to thank the awesome people who really helped make this event a success:</p>
<ul>
<li>Craig Purnell &amp; Allen White &#8211; Thanks for being such awesome leaders and mentors throughout the planning process, I really appreciated your council and direction</li>
<li>The Devry staff &#8211; <strong>THANK YOU, THANK YOU, THANK YOU</strong> for donating your facility for the day, for helping me remember to take breaks every now and then, for helping keep me sane, and for all of your help throughout the day (<strong>you guys were truly AWESOME!!!</strong>)</li>
<li>The Mavis Winkle&#8217;s staff &#8211; Despite rushed deadlines, miscommunications, double-bookings, an overly stressed team lead (yours truly), and lots of calls back and forth, you guys still pulled off two awesome meals for us and helped make for a great event. I would especially like to thank the owners, Bob and Marie, for helping to make my life a little less stressful on Friday and Saturday. It was really cool getting to work with you and your staff.</li>
<li>All of our sponsors &#8211; <strong>We couldn&#8217;t do an event like this without your support, and for that we are EXTREMELY grateful. THANK YOU!</strong></li>
<li>Steven Wright and SQL Sentry &#8211; Thanks for sponsoring our Speaker/Sponsor/Volunteer dinner, <strong>YOU ROCK!</strong></li>
<li>Ann Marie Kozlowski &#8211; Thanks for letting us use the Solutient offices for bag stuffing, and thanks for taking care of the breakfast arrangements</li>
<li>Carlton Ramsey &amp; Cory Stevenson (and his wife) &#8211; Thanks for buying cookies, pop, and all of the other little odds-and-ends that we needed for the event</li>
<li>Sam Nasr &#8211; Thank you for taking care of the after party arrangements</li>
<li>Colleen Morrow, Erin Stellato, and anyone else who helped out &#8211; <strong>THANK YOU SO MUCH!</strong></li>
</ul>
<p>From the speaker&#8217;s dinner on Friday night until I left Devry sometime around 6 PM on Saturday, I was pretty much a blur of activity as I tried to help make sure everything ran smoothly. Despite all of that running around, I was still able to attend two awesome sessions, present my own session, mingle, network, and have a ton of fun! I think the key to my success was that I had an absolutely awesome team that I could rely on to really get things done.</p>
<p>One of the things to keep in mind about an event like this is that <strong>it is inevitable that there will be lots of little problems and issues that come up throughout the day</strong>. The key to handling these issues is to <strong>keep calm, ask for help when you need it, and to trust your team to do their job</strong>. It&#8217;s not necessary to manage every little detail of an event like this. It&#8217;s simply too much to handle for one person. Instead, break the responsibilities up into smaller tasks, assign those tasks to people or teams to accomplish, and then give them the room to do their job.</p>
<p>As far as the food was concerned, there are a couple things to consider when planning an event like this:</p>
<ul>
<li>If you have the space to allow everyone to dine in the same area, then you have a lot more flexibility as to what kinds of food you can serve, and you can even have a fully catered buffet (much like the awesome buffet at SQL Saturday in Chicago earlier this year).</li>
<li>If you don&#8217;t have a large common area, then you will need to distribute the food and have the attendees go into the session rooms to eat it. If this is the case, you&#8217;re going to want to go with highly portable food such as boxed lunches.</li>
<li>Don&#8217;t forget to get lots of heavy-duty construction garbage bags and to distribute them throughout the venue to handle the trash that will be generated. It would also be a good idea to have a team that checks the garbage cans and bags throughout the day and empties them as needed.</li>
<li>An afternoon snack is a good idea, but don&#8217;t over do it. We bought 2 cookies for every attendee as an afternoon snack, and we had about half of them left over after the event.</li>
<li>You&#8217;re going to have food left over after an event like this. It might be a good idea to get in touch with your local foodbank, homeless shelter, or area churches before the event and see if they can use the leftover food. They&#8217;ll thank you for it, and it&#8217;s one more way you can give back to the community.</li>
</ul>
<p>As far as the venue goes, here are my thoughts:</p>
<ul>
<li>Keep the logistics of an event like this in mind when choosing a venue. Make sure the hallways are wide enough, the doors won&#8217;t automatically lock you out throughout the day (yep, this actually happened to us), and that there is enough space for the number of attendees you&#8217;re aiming for. Sometimes cheaper (free) isn&#8217;t always better.</li>
<li>Regardless of whether you get the venue for free or at full price, make sure to clean up after your event and to try to help the venue&#8217;s staff in any way you can. After all, you&#8217;re representing PASS as a whole, and you might even want to have another SQL Saturday there next year.</li>
<li>If you&#8217;re having the event at a college or school, why not do a track of sessions that students from the school can attend? It&#8217;s a way of saying thank you for the use of the venue and it&#8217;s also a way to give back to the community. SQL Saturday in Cleveland was able to use the Devry campus here for free as a direct result of SQL Saturday in Chicago doing exactly what I mentioned. The Cleveland team also did a track of intro sessions for the Devry students, and the track was very well received.</li>
</ul>
<p>Other than that, my only advice is to <strong>HAVE FUN</strong>! Events like this aren&#8217;t worth the effort if they&#8217;re not only educational, but fun and social as well. You&#8217;re going to have to work hard to get the job done, but that doesn&#8217;t mean you can&#8217;t play hard too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2012/08/20/sql-saturday-164-cleveland-lessons-learned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">370</post-id>	</item>
		<item>
		<title>AlwaysOn Availability Groups, Isolation Levels, &#038; Selects Blocking the Redo Thread</title>
		<link>http://www.sqldiablo.com/2012/08/01/alwayson-availability-groups-isolation-levels-selects-blocking-writers/</link>
		<comments>http://www.sqldiablo.com/2012/08/01/alwayson-availability-groups-isolation-levels-selects-blocking-writers/#comments</comments>
		<pubDate>Wed, 01 Aug 2012 15:30:34 +0000</pubDate>
		<dc:creator><![CDATA[SQL Diablo]]></dc:creator>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[Availability Groups]]></category>
		<category><![CDATA[Blocking]]></category>
		<category><![CDATA[Isolation Levels]]></category>

		<guid isPermaLink="false">http://www.sqldiablo.com/?p=344</guid>
		<description><![CDATA[This past weekend, I had the pleasure of presenting my session SQL Server 2012 AlwaysOn Readable Secondaries at SQL Saturday #126 in Indianapolis, IN. In that session, I covered the basics of AlwaysOn Availability Groups, how to set them up, &#8230; <a href="http://www.sqldiablo.com/2012/08/01/alwayson-availability-groups-isolation-levels-selects-blocking-writers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>This past weekend, I had the pleasure of presenting my session <a title="SQL Server 2012 AlwaysOn Readable Secondaries" href="http://www.sqlsaturday.com/viewsession.aspx?sat=126&amp;sessionid=9207" target="_blank">SQL Server 2012 AlwaysOn Readable Secondaries</a> at SQL Saturday #126 in Indianapolis, IN. In that session, I covered the basics of AlwaysOn Availability Groups, how to set them up, failing over, and using readable secondary replicas for read-only workloads and backups. During the session, I always make sure to mention the possibility of queries running on the secondary replica blocking the redo thread that is trying to write changes from the primary database to the secondary database.</p>
<p>After mentioning this caveat, I was asked a very good question: <strong>Can you use transaction isolation levels (such as snapshot isolation) with AlwaysOn Availability Groups, and would they help to avoid the issue of read-only queries on secondary replicas blocking the redo thread?</strong> In order to answer this question, I&#8217;m going to break it two parts, and then we&#8217;ll work through a couple demos to illustrate the answers.</p>
<p><span style="text-decoration: underline;"><strong>Questions:</strong></span></p>
<p><strong>Q: </strong>Can you use transaction isolation levels with AlwaysOn Availability Groups?<strong><br />
A: </strong>Yes and no. Yes, you can set whatever isolation level you would like when running queries on the secondary replicas, and SQL Server will not return an error. However, SQL Server will automatically override the isolation level (and ignore all lock hints) when querying a read-only replica, and instead force the queries to use snapshot isolation.</p>
<p>Per the &#8220;Benefits&#8221; topic of the <a title="Active Secondaries: Readable Secondary Replicas (AlwaysOn Availability Groups)" href="http://msdn.microsoft.com/en-us/library/ff878253.aspx#Benefits" target="_blank">Active Secondaries: Readable Secondary Replicas (AlwaysOn Availability Groups)</a> BOL article:</p>
<p style="padding-left: 30px;">Read-only workloads use row versioning to remove blocking contention on the secondary databases. All queries that run against the secondary databases are automatically mapped to snapshot isolation transaction level, even when other transaction isolation levels are explicitly set. Also, all locking hints are ignored. This eliminates reader/writer contention.</p>
<p><strong>Q: </strong>Does using snapshot isolation prevent read-only queries from blocking the redo thread on secondary replicas?<br />
<strong>A:</strong> After reading the above quote from BOL, you would think that read-only queries won&#8217;t block the redo thread, and that is true for DML statements. However, it is not true for DDL statements. Sure, snapshot isolation prevents read-only queries on the secondary replicas from taking locks and preventing other DML statements against the database from executing, but it doesn&#8217;t prevent the read-only queries from taking schema stability locks and blocking DDL statements.</p>
<p>If you take a look later on in the same article I quoted above, you will come to the &#8220;Read-Only Workload Impact&#8221; section under the &#8220;Performance Considerations&#8221; topic:</p>
<p style="padding-left: 30px;">Also, read-only workloads on the secondary replicas can block data definition language (DDL) changes that are applied through log records. Even though the read operations do not take shared locks because of row versioning, these operations take schema stability (Sch-S) locks, which can block redo operations that are applying DDL changes.</p>
<p><span style="text-decoration: underline;"><strong>Demos:</strong></span></p>
<p>In order to have a reference architecture to use for this demo, I&#8217;m going to use the Availability Group that I setup as part of the presentation that I mentioned at the beginning of this article. If you would like to play along at home, you can download the scripts and slide deck for that session <a href="http://www.sqldiablo.com/alwayson/" target="_blank">here</a>. This Availability Group is called DemoAG, and has three replicas, AlwaysOn1 (primary), AlwaysOn2 (secondary), and AlwaysOn3 (secondary). There are two databases participating in the Availability Group: AdventureWorks2012 and AdventureWorksDW2012. I&#8217;m going to be using AdventureWorks2012 for this demo.</p>
<p><span style="text-decoration: underline;">Testing isolation levels and lock hints:</span></p>
<p>Unfortunately, I haven&#8217;t come up with a good way to demonstrate that SQL is overriding the transaction isolation level on the readable secondary because it is actually doing this internally (I&#8217;ll keep looking into this to see if there is a good way to demonstrate it). I can, however, demonstrate that SQL Server is ignoring lock hints on the read-only replicas. I can do this by beginning a transaction, executing a select query with the tablockx lock hint, and leaving the transaction open. I then open a new query window and query sys.dm_tran_locks to see if there is a table lock on the table. If I do this on the primary, you will see an open table lock on the table. If I do this on the secondary, there is no open table lock. If I then try to update data on the primary replica, I am able to see the statement completes and that the data has been written to the replica, even with the open transaction on the secondary that should be holding a table lock.</p>
<pre>-- Execute this in a session of its own on the primary replica:
begin tran;

select * from ErrorLog with (tablockx);

-- With the above transaction open, launch a new query window on
-- the primary replica, and execute this query
-- (you should notice a table lock on the ErrorLog table):
use master;

select
t.name
, dtr.*
from sys.dm_tran_locks dtr
join sys.databases d
on d.name = 'AdventureWorks2012'
and d.database_id = dtr.resource_database_id
join AdventureWorks2012.sys.tables t
on t.object_id = dtr.resource_associated_entity_id;

-- Now try running this insert in the same query window as the sys.dm_tran_locks query
-- (you should get blocked until you commit or rollback the transaction in the other session):
insert AdventureWorks2012.dbo.ErrorLog(UserName, ErrorNumber, ErrorMessage)
values('DemoUser', 1, 'Demo Message');

-- Go ahead and close both query windows, and connect to one of the secondary replicas.
-- Now, try running through the scenario above on the secondary replica (minus the insert).
-- You should notice that there is no table lock being held, even though we explicitly requested one.</pre>
<p><span style="text-decoration: underline;">Testing read-only queries blocking DDL statements:</span></p>
<p>As far as demonstrating that read-only queries can block DDL statements, all we need to do is run a long-running query on the secondary replica and simultaneously try to alter the table that the query on the secondary is using. We should notice that the redo queue size on the secondary then increases and stays that way until we either kill or complete the read-only query. This indicates that the redo thread is not able to commit the DDL changes because the select statement is taking a schema stability lock and preventing the alteration to the table.</p>
<pre>-- Run this query on the secondary replica
-- (it's horribly ugly and inefficient, but the idea is to hold a
-- schema stability lock on ErrorLog for as long as we can):

select
NumbersTable.Number
from AdventureWorks2012.dbo.ErrorLog el
cross apply (
select
Number
from
(
select
row_number() over (order by s1.name) as number
from AdventureWorks2012.sys.sysobjects s1
cross apply AdventureWorks2012.sys.sysobjects s2
cross apply AdventureWorks2012.sys.sysobjects s3
cross apply AdventureWorks2012.sys.sysobjects s4
cross apply AdventureWorks2012.sys.sysobjects s5
) as InnerNumbersTable
) NumbersTable
group by NumbersTable.Number
order by NumbersTable.Number desc;

-- While that beast is running on the secondary replica, run the
-- following on the primary replica:

alter table AdventureWorks2012.dbo.ErrorLog add DemoColumn varchar(10) null;

-- Now go back to the secondary replica, open a new query window, and run the
-- query below (you should notice that the redo queue is greater than 0,
-- which indicates that the redo thread is having trouble applying changes
-- to the database):
select
dhdrs.redo_queue_size
from master.sys.dm_hadr_database_replica_states dhdrs
join master.sys.databases d
on d.database_id = dhdrs.database_id
and d.name = 'AdventureWorks2012';</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldiablo.com/2012/08/01/alwayson-availability-groups-isolation-levels-selects-blocking-writers/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">344</post-id>	</item>
	</channel>
</rss>
