<?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>Scott Mattie&#039;s Blog</title>
	<atom:link href="http://www.smattie.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smattie.com</link>
	<description>Just another Microsoft enthusiast&#039;s blog</description>
	<lastBuildDate>Tue, 07 May 2013 05:37:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>R.I.P. Timothy J. Locke</title>
		<link>http://www.smattie.com/2013/05/04/r-i-p-timothy-j-locke/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=r-i-p-timothy-j-locke</link>
		<comments>http://www.smattie.com/2013/05/04/r-i-p-timothy-j-locke/#comments</comments>
		<pubDate>Sat, 04 May 2013 09:22:03 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tim Locke]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2272</guid>
		<description><![CDATA[This is the eulogy that I will give later today for my best friend. He was born on 7 September 1963 and passed away on 26 April 2013 at 10:40 AM. He fought kidney cancer the past year and had to endure a slow, yet painful death that I talked about in my last article. I [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia; font-size: 10pt;">This is the eulogy that I will give later today for my best friend. He was born on 7 September 1963 and passed away on 26 April 2013 at 10:40 AM. He fought kidney cancer the past year and had to endure a slow, yet painful death that I talked about in my last <a href="http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/"><strong>article</strong></a>. I tried my best to capture the spirit of our conversations this past year. He knew early on that he had at best six to twelve months to live. He also knew that the medications he would take had about a 10% chance of succeeding. He did his best to make peace with it and made right in everyone&#8217;s eyes. In the end, as he took his last breath, he was surrounded by his family and everyone knew how much he loved them.</span></p>
<p><strong><span style="font-family: Georgia; font-size: 10pt;">I will miss him and here is my story&#8230;</span></strong></p>
<p><span style="font-family: Georgia; font-size: 10pt;">Tim would be very happy to see so many of us here today. It is times like this one that clearly let us know how both fragile and precious life is for each one of us. I believe that God only takes those, no matter what their age, when he feels they are ready to come back home to Him. I am here today to tell you what both Tim and his family have meant to me. More importantly, I want to share with you how Tim Locke made me a better person.</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">I would like to start with a few quotes, before I begin with my own words. These words are from Steve Jobs&#8217; 2005 Stanford Commencement Address:</span></p>
<blockquote><p><span style="font-family: Georgia; font-size: 10pt;"><em>No one wants to die. Even people who want to go to heaven don&#8217;t want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life&#8217;s change agent. It clears out the old to make way for the new.</em></span></p></blockquote>
<p><span style="font-family: Georgia; font-size: 10pt;">Samuel Johnson wrote that &#8220;<span style="color: #7030a0;"><strong>It matters not how a man dies, but how he lives.</strong></span>&#8221; I find both strength and wisdom in each of those quotes.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">Tim loved Leah, his wife of 27 years and his children (Karen, Geena and Erik) very much. He always talked about them, since they were first and foremost on his mind. He lived for his family and that is what many of us remember about him. It is also what made him so special.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">As for me, I met Tim in 2008, when we were working together in Las Vegas and fate would bring us together via a software product called Mariposa. Like most relationships, we started off as strangers and it did not start smoothly.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">The first time we met, I was checking mail on my smart phone and it just annoyed him. When we started talking however it become clear that it was a great fit for both of us. He needed someone with a strong technical background and I needed a personable manager, who could provide clear direction.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">I can clearly recall what started our friendship. <span style="color: #7030a0;"><strong>It was a simple act of kindness by me, where I had no expectations</strong></span> I offered to take him to the airport and pick him up when he flew back from San Diego every week. It was during this time when the economy had really taken a dive and money was tight for everyone. <span style="color: #7030a0;"><strong>That act of kindness started opening a lot more doors</strong></span>. I do not think that either one of us knew it at the time, but our friendship would grow due to the little things we would do for one another.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">I read a book a few years ago; where they said a relationship is like a bank account. You need to maintain a positive balance for it to hold a meaningful value. Over time, you will need to deposit into this account and the system only works if you put in more than you take. I see relationships the same way and I agree that <span style="color: #7030a0;"><strong>it is better to give than receive</strong></span>.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">Before too long, we become roommates and it started out rough for Tim. I have a dog named Foxy Brown and at this time she was a three-month old puppy, who was not yet house broken.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">On the night we moved in, Foxy had pooped the entire length of the hallway from his bedroom to the front door. Let&#8217;s just say that started a special relationship for both of them. A few weeks later, Foxy would strike again. This time she had barged into his bathroom and started ramming the glass door with her head. Needless to say, Tim was just trying to defend himself with a bar of soap and a shampoo bottle. Of course he had to tell everyone at work about it. Tim loved playing the victim and nothing was ever his fault. That is a trait of his that I dearly miss about him.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">The best moment was when he fell asleep on the couch and Foxy had jumped up there to snuggle with him. I was in the other room, but this moment would soon catch my attention, when they <span style="color: #7030a0;"><strong>both </strong></span>started to <span style="color: #7030a0;"><strong>snore</strong></span>. Of course, I had to email Tim and a bunch of close friends, <strong>where he did not know a single person</strong>. <span style="color: #7030a0;"><strong>Foxy loves Tim</strong></span> was the title of the email I sent that day with those pictures.<br />
</span></p>
<p><img class="aligncenter size-full wp-image-2282" alt="foxytim" src="http://cdn2.smattie.com/wp-content/uploads/2013/05/foxytim.jpg" width="320" height="240" /></p>
<p><strong>Here is another photo:</strong></p>
<p><img class="aligncenter size-full wp-image-2283" alt="foxytim2" src="http://cdn2.smattie.com/wp-content/uploads/2013/05/foxytim2.jpg" width="320" height="240" /></p>
<p><span style="font-family: Georgia; font-size: 10pt;">I will never forget the time when I first met Leah. She quickly saw that we basically had no food and went grocery shopping. I think it was the first time that we actually felt human in that apartment. I would not be at all surprised if that trip was not motivated by the fact Tim admitted to eating Foxy&#8217;s dog treats. Not only did he admit that he ate a few of them, but they also tasted really good.</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">When I look back, I see the reason that our friendship grew was not because of some major events. The real significance of our relationship is that it simply continued. We both went in different directions where could have easily lost touch, but we understood that we had a special bond and kept it alive. As I speak to you today, I realize what Tim and his family has taught me regarding relationships, especially great ones, they are not based on needs. Instead they are built over time and one you start down this continuum, you realize that all you really did was accept and uplift one another.<br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I was raised a Christian, but I know some people have their doubts with religion. They look at the Bible as a book of rules that tell you what you can and can&#8217;t do. Sadly, I think a lot of people overlook a more important lesson, <span style="color: #7030a0;"><strong>the ability to love one another</strong><span style="color: #333333;">. If you just look at Jesus&#8217; travels, you will see that it was all about the people he met and the actions he took to make a difference. I am not sure why so many people fail to see that important teaching, but I wonder if that is why so many people are unhappy today. We desire to be accepted, but yet some get hung up on a perception that causes them to feel alone, angry and betrayed.<br />
</span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">It was great to see so many neighbors offer love and support to the Locke family this past year and especially these past few months. I saw a lot of love and <span style="color: #7030a0;"><strong>acts of kindness </strong><span style="color: #333333;">to a family that really appreciated it.<span style="color: #7030a0;"><strong><br />
</strong></span></span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I do hope that more people will find this simple truth. Life is short and you should live it with no regrets. Stop focusing on what you do not have and remind yourself how blessed you are with what you have today. Do not doubt the power you have as a person to make a difference in the others. You never know when you might say or do an <span style="color: #7030a0;"><strong>act of kindness </strong><span style="color: #333333;">to someone that inspired them to keep fighting onward.<br />
</span></span></span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">I could not imagine my life today without Tim being such a key part of it. I find comfort that God has Tim snug closely in his arms and is welcoming him home. I will long to hear his constant rants that usually led him to picking on me, which showed me how much he cared.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">As I close this speech, I would like to share another quote from Steve Jobs.<br />
</span></p>
<blockquote><p><span style="font-family: Georgia; font-size: 10pt;"><em>When I was 17, I read a quote that went something like: &#8220;If you live each day as if it was your last, someday you&#8217;ll most certainly be right.&#8221; It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: &#8220;If today were the last day of my life, would I want to do what I am about to do today?&#8221; And whenever the answer has been &#8220;No&#8221; for too many days in a row, I know I need to change something.<br />
</em></span></p>
<p><span style="font-family: Georgia; font-size: 10pt;"><em>Remembering that I&#8217;ll be dead soon is the most important tool I&#8217;ve ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure &#8211; these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.<br />
</em></span></p></blockquote>
<p><span style="font-family: Georgia; font-size: 10pt;">I find comfort in those words as I also start to embrace my own mortality. Live each day as if it is your last. Then remember that we can all make a difference when we choose to give a little bit of ourselves without taking away more than we gave.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">God bless you all and I will you miss you Tim. Thank you for being a great friend.<br />
</span></p>
<div class="shr-publisher-2272"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/05/04/r-i-p-timothy-j-locke/' data-shr_title='R.I.P.+Timothy+J.+Locke'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/05/04/r-i-p-timothy-j-locke/' data-shr_title='R.I.P.+Timothy+J.+Locke'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/05/04/r-i-p-timothy-j-locke/' data-shr_title='R.I.P.+Timothy+J.+Locke'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/05/04/r-i-p-timothy-j-locke/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life is very fragile&#8230; and so precious!</title>
		<link>http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=life-is-very-fragile-and-so-precious-2</link>
		<comments>http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/#comments</comments>
		<pubDate>Sun, 21 Apr 2013 07:01:35 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Tim Locke]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2261</guid>
		<description><![CDATA[As stated in my last post, I am taking a bit of a break from technical writing as I am spending (what little) time (is left) with my best friend Tim J. Locke. As most things in life, time wins and we must accept our destiny that one day we will share the same fate and [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">As stated in my last <a href="http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/">post</a>, I am taking a bit of a break from technical writing as I am spending (what little) time (is left) with my best friend <span style="color: #7030a0;"><strong>Tim J. Locke</strong><span style="color: #333333;">. As most things in life, time wins and we must accept our destiny that one day we will share the same fate and <strong>that is death</strong>. Tonight, I write this article with a heavy heart; since it is clear that I only have days with him. Talking with the hospice care, we doubt that he will ever wake up again and to make matters worse, his skin is turning yellow and gray from his liver shutting down. I read a book a few days ago called <span style="color: #0070c0;"><strong>Making the most of the time we have: Caring for a loved one at life&#8217;s end</strong><span style="color: #333333;">.<br />
</span></span></span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">It describes some of the symptoms as the body starts to shut down and let go of its gripe on life. Here is the stage that we are currently at right now:<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Days Before Death:<br />
</strong></span></p>
<ul>
<li><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Decreased intake of food and fluids<br />
</strong></span></li>
<li><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Dry mouth<br />
</strong></span></li>
<li><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Restlessness<br />
</strong></span></li>
<li><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Labored breathing<br />
</strong></span></li>
<li><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Fever<br />
</strong></span></li>
<li><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>Darker urine; reduce output<br />
</strong></span></li>
</ul>
<p><span style="font-family: Georgia; font-size: small;">This is a very tough process to watch when it goes so slowly. You see the person you know slowly turn into someone who is not the same person you first met. They start to deal with a loss of </span><span style="font-family: Georgia;">appetite</span><span style="font-family: Georgia; font-size: small;">  fatigue and restlessness. It is almost as if the body knows it needs to prepare for a journey and they start trying to go somewhere and anywhere. You see their thoughts go all over the place and then you start to see how the body begins to slip away. The only true blessing that you have is that you had a chance to make peace with him and let them know how much he meant to you. </span></p>
<p><span style="font-family: Georgia; font-size: small;">In the end, it is weird how simple life becomes for someone and how all the things you chose to achieve in life is pushed aside. As an adult, you worry about finding a good job, a place to live, food in your stomach and then as that becomes easier to obtain, then you start to focus on a nicer car, a home of your own and a person to love. It is never-ending series of pursuits to make your life feel more enriched during this ride of life.</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">In the last few months of your life, your focus changes drastically in what you seek. You want to resolve any past conflicts; you want people to know how much they meant to you, if you have family you want to ensure they are taken care of financially. <span style="color: #7030a0;"><strong>I was very fortunate (and thankful) to tell Tim how much of a better person I became and because of him.</strong><span style="color: #333333;"><br />
</span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">Sadly, the last remaining weeks of a person&#8217;s life is really simple. Goals are to eat and drink, plus keep it down. You also hope for bowel movements to rid the body of toxins, but as the weeks pass, the body is less capable of performing those simple tasks. Then it becomes a battle to keep the person calm and reassured, since the mind is now dealing with less blood flow and battling toxins that should have been flushed from the system.<br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">The last part that we are dealing with now is to reassure him and tell him everything is fine, in hopes that his brain will relax and allow him to end the suffering. Sad as it may seem, we are hoping that he will let go, even though we do not want to see him leave us. <span style="color: #7030a0;"><strong>We know it is time and we want him to be at peace</strong><span style="color: #333333;">. I get the sense that he has stayed on this long because he is very worried about how his children will be during their adulthood. He loved them very much and he really wished he could stay around longer to help them with words of wisdom as they become adults.<br />
</span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I met <span style="color: #7030a0;"><strong>Tim J. Locke</strong><span style="color: #333333;"> five years ago in Las Vegas, while working for a casino gaming company that is well-known for making slot machines. Looking back, I am amazed how fast the time flew by and it just goes to show you that each decade that passes, the faster the next one seems to go by. If those 5 years flew by, imagine how fast this past year went by when we found out that he had stage 4 kidney cancer. </span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;"><span style="color: #7030a0;"><span style="color: #333333;">It just seems like yesterday, that we were both working in Las Vegas, drinking and griping about how frustrating the job was and next thing I know I offered him a ride to the airport. The economy had just crashed and I knew that parking your car was expensive. Before I knew it, we become roommates and I will never forget the time he moved in. My dog <span style="color: #7030a0;"><strong>Foxy Brown </strong><span style="color: #333333;">(5 months old min-pin) pooped from his room all the way down the hallway. What a great way to start a friendship! It seems that my dog and Tim would always be at odds from that point onward. For example, one day as he was taking a shower and I had already left for work. My dog had barged into his bathroom and started ramming the glass door with her head, trying to get in the shower with him. He was so freaked out that he almost slipped and fell in the shower. He had a dog, but it was a low energy breed (Pug) and he was not ready for a high energy breed, especially as a puppy.</span></span></span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">Quickly over time, he became my best friend and we would take trips to his home in San Diego. We used it as an excuse to leave Las Vegas I would meet his mother, all four of his brothers and sisters. I would then meet his 2 daughters, his son and his wife. (I will always cherish how she made both of us feel when she came to visit us and went grocery shopping!) Somewhere along the way, I became family and it became an annual event to spend time with them over the fourth of July. It is amazing to look back and see how this friendship has evolved. I can truly say that I have been blessed to have known him. He was always supportive of me and encouraged me to pursue my dreams, plus he always had great advice as I navigated through life. He was the person I always longed to hear from and I could never wait until we spoke again.<br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">As I watch him start to pass away, I become quickly overwhelmed by emotions, knowing that he is in a deep sleep with very little chance of waking up. I am however thankful for letting him know many times beforehand that I loved him. <span style="color: #7030a0;"><strong>In the end, I think that is really all that matters is let others know how much they mean to us and even more important is to make an effort to make a difference to the people we meet along this journey. </strong><span style="color: #333333;">We are <span style="text-decoration: underline;"><strong>not</strong></span> here forever and the biggest reward in life is when you make a difference in others, because it is what truly makes us happy.<br />
</span></span></span></p>
<p><span style="font-family: Georgia; font-size: small;">I believe in God and was raised a Christian. I know some people look at religion and have their doubts. I know some people look at the Bible as a book of rules that tell you what you can and can&#8217;t do. Sadly, I think a lot of people overlook a more important lesson, the ability to love other people. It is written all over the place and if you know Jesus&#8217; journeys, it was all about the people he met, plus the actions he took to make a difference. He healed a lot of people, he spoke with a lot of people, and he passed on a lot of guidance. He also did not care about social statuses of people and he crossed all boundaries. He saw the rich as well as the poor. I am not sure why so many people fail to see that important teaching, but I wonder if that is why we see so many people unhappy today. I look at the recent violence in all places of the world and I wonder how many people feel left out and isolated to the point that they blindly start killing others. (i.e. like we just saw earlier this week with the Boston Marathon.) I wonder what a difference it would have made if we took time to get them know them and accept them as they are, instead of trying to </span><span style="font-family: Georgia;">mode</span><span style="font-family: Georgia; font-size: small;"> them as we want.</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I hope and wish that more people find that simple truth. Life is short and you should live it with no regrets. Stop focusing on what you do not have and start focusing on what you do have, then remind yourself how blessed you are with what you have today. Do not get so caught up in what you are pursuing that you forget what you have around you. It sucks to be taken for granted. Last but not least, do not doubt the power you have as a person to make a difference in someone you meet. You never know when you might have said hello to someone who was at the last bit of strength to continue and your act of kindness inspired them to keep fighting onward.<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong>No matter what you believe, I want to say God bless you and I hope you will find the happiness that you really deserve in life. I hope you find some people in this life and make a difference for them by your actions.</strong></span></p>
<div class="shr-publisher-2261"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/' data-shr_title='Life+is+very+fragile...+and+so+precious%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/' data-shr_title='Life+is+very+fragile...+and+so+precious%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/' data-shr_title='Life+is+very+fragile...+and+so+precious%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/04/21/life-is-very-fragile-and-so-precious-2/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Heading back down to San Diego&#8230;</title>
		<link>http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=heading-back-down-to-san-diego</link>
		<comments>http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/#comments</comments>
		<pubDate>Sun, 14 Apr 2013 07:01:12 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tim Locke]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2257</guid>
		<description><![CDATA[I know I have been quiet for the past month, but I have been dealing with a personal issue. My best friend is slowing passing away and has &#8220;&#8216;weeks if not days&#8221; to live. About a year ago, he found out he has kidney cancer and sadly he found even worse news&#8230; it was stage [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I know I have been quiet for the past month, but I have been dealing with a personal issue. My best friend is slowing passing away and has &#8220;&#8216;weeks if not days&#8221; to live. About a year ago, he found out he has kidney cancer and sadly he found even worse news&#8230; it was stage 4, which means it had spread to other organs. This past year, he has been on the losing end of this battle as it has aggressively spread throughout his body. It is now to a point where it has spread to his brain.</p>
<p>Needless to say, each day has gotten worse and he is now rapidly losing his memories as well. I am now preparing to go down for the last time to be there for his family and help them get through this. If it is not too much to ask, if you could send some prayers or best wishes their way&#8230; I would really appreciate it.</p>
<p>When I come back, I have a lot of articles that I plan to write, some on SQL and Windows, plus some networking stuff. I just have not had the time and also my mind has been on my friend and his family.</p>
<div class="shr-publisher-2257"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/' data-shr_title='Heading+back+down+to+San+Diego...'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/' data-shr_title='Heading+back+down+to+San+Diego...'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/' data-shr_title='Heading+back+down+to+San+Diego...'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/04/14/heading-back-down-to-san-diego/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New AWS Feature: Copy AMI</title>
		<link>http://www.smattie.com/2013/04/03/new-aws-feature-copy-ami/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-aws-feature-copy-ami</link>
		<comments>http://www.smattie.com/2013/04/03/new-aws-feature-copy-ami/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 07:01:30 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[AMI]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2250</guid>
		<description><![CDATA[In my last post, I told you about moving an existing AMI to another region by exploiting the copy snapshot feature. On 13 March 2013, Amazon announced a new feature called Copy AMI: Dear Amazon Web Services Customer, We are excited to announce the immediate availability of a new feature: Amazon Machine Image (AMI) Copy. AMI [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my last <a href="http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/">post</a>, I told you about moving an existing AMI to another region by exploiting the copy snapshot feature. <span style="color: #7030a0;"><strong>On 13 March 2013</strong></span>, Amazon announced a new feature called <span style="color: #7030a0;"><strong>Copy AMI</strong></span>:</p>
<blockquote>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">Dear Amazon Web Services Customer,</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">We are excited to announce the immediate availability of a new feature: <strong>Amazon Machine Image (AMI) Copy</strong>. AMI Copy enables you to copy your AMIs across AWS regions, thus making it easier for you to leverage multiple AWS regions and accelerate your geographical expansion and help increase application performance and availability.</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">To use AMI Copy, simply select the AMI to be copied from within the AWS Management Console, choose the destination region, and start the copy. AMI Copy can also be accessed via the EC2 Command Line Interface or EC2 API as described in the <a href="http://www.amazon.com/gp/r.html?R=2PUZ8IID2EIDI&amp;C=21KHWN21HLRI3&amp;H=VN1OAVBRYOMYJ8IIMGX8VACBLJ8A&amp;T=C&amp;U=http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html?ref_%3Dpe_12300_28673600_7" target="_blank"><span style="color: #0068cf;">EC2 User Guide.</span></a> Once the copy is complete, the new AMI can be used to launch new EC2 instances in the destination region.</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">There are no additional charges for using AMI Copy, but you will be charged to transfer the AMI out of the source region and to store the copied AMI in the destination region.</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">We recently launched Amazon <a href="http://www.amazon.com/gp/r.html?R=2PUZ8IID2EIDI&amp;C=21KHWN21HLRI3&amp;H=KCXK8FLPSAYXOA4FRKS3YUPWJAGA&amp;T=C&amp;U=http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html?ref_%3Dpe_12300_28673600_7" target="_blank"><span style="color: #0068cf;">EBS Snapshot Copy</span></a>, which enables you to copy EBS Snapshots across AWS regions, and last month we significantly <a href="http://www.amazon.com/gp/r.html?R=2PUZ8IID2EIDI&amp;C=21KHWN21HLRI3&amp;H=UGCPHSPGACR93L2IKZYZNCSBO5IA&amp;T=C&amp;U=http://aws.amazon.com/ec2/pricing/?ref_%3Dpe_12300_28673600%23DataTransfer?ref_%3D7" target="_blank"><span style="color: #0068cf;">lowered the cost of transferring data between AWS Regions</span></a> (by 26% to 83%). Together with AMI Copy we hope that these updates make it easier for you to take advantage of the AWS global footprint.</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">Sincerely,</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
</blockquote>
<p style="background: white;"><span style="color: black;"><span style="font-family: Verdana; font-size: 9pt;">The Amazon Web Services Team</span><span style="color: #444444; font-family: Arial; font-size: 10pt;"><br />
</span></span></p>
<p><span style="color: #7030a0;"><strong>Now I am going to show you how simple it is to perform:<br />
</strong></span></p>
<ol>
<li>
<div>Select your AMI section under Images on the left side of the EC2 Dashboard:</div>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/04/040213_1950_NewAWSCopyF1.png" /></li>
<li>
<div>Right click on your AMI and select <span style="color: #7030a0;"><strong>Copy</strong></span></div>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/04/040213_1950_NewAWSCopyF2.png" /></li>
<li>
<div>Then select your <span style="color: #7030a0;"><strong>destination region</strong></span>, give it a user-friendly <span style="color: #7030a0;"><strong>name </strong></span>to help you quickly identify it and change anything in the <span style="color: #7030a0;"><strong>description </strong></span>as needed. (Again, to help you quickly identify it)</div>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/04/040213_1950_NewAWSCopyF3.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/04/040213_1950_NewAWSCopyF3.png" width="563" height="212" /></a></p>
<p>After a while, <span style="color: #7030a0;"><em>depending </em><em>on your root volume activity/size </em></span>(and other volumes that might be part of your image) it will show up in your new region and then you will deploy it as you would in the original region. Right click the AMI and select <span style="color: #7030a0;"><strong>Launch</strong></span>:</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/04/040213_1950_NewAWSCopyF4.png" /></p>
<p>Now you do not need to worry about launching another instance, just so you can detach and swap out a root volume. This is a great new feature and I like the direction this is headed, as it will allow for true redundancy with AWS by allowing you to be in multiple regions easier and taking advantage of their global foot print.</li>
</ol>
<div class="shr-publisher-2250"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/04/03/new-aws-feature-copy-ami/' data-shr_title='New+AWS+Feature%3A+Copy+AMI'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/04/03/new-aws-feature-copy-ami/' data-shr_title='New+AWS+Feature%3A+Copy+AMI'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/04/03/new-aws-feature-copy-ami/' data-shr_title='New+AWS+Feature%3A+Copy+AMI'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/04/03/new-aws-feature-copy-ami/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: AWS ELB Sticky Sessions Explained</title>
		<link>http://www.smattie.com/2013/03/06/video-aws-elb-sticky-sessions-explained/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-aws-elb-sticky-sessions-explained</link>
		<comments>http://www.smattie.com/2013/03/06/video-aws-elb-sticky-sessions-explained/#comments</comments>
		<pubDate>Wed, 06 Mar 2013 08:01:52 +0000</pubDate>
		<dc:creator>Lance Byrd</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Lance]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[elb]]></category>
		<category><![CDATA[Lance Byrd]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2232</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">// <![CDATA[
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "Elb-sticky-session.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
// ]]&gt;</script></p>
<div class="shr-publisher-2232"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/03/06/video-aws-elb-sticky-sessions-explained/' data-shr_title='Video%3A+AWS+ELB+Sticky+Sessions+Explained'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/03/06/video-aws-elb-sticky-sessions-explained/' data-shr_title='Video%3A+AWS+ELB+Sticky+Sessions+Explained'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/03/06/video-aws-elb-sticky-sessions-explained/' data-shr_title='Video%3A+AWS+ELB+Sticky+Sessions+Explained'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/03/06/video-aws-elb-sticky-sessions-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Migrate an AWS Image (AMI) to another region</title>
		<link>http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-migrate-an-aws-image-ami-to-another-region</link>
		<comments>http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/#comments</comments>
		<pubDate>Mon, 04 Mar 2013 08:01:06 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2218</guid>
		<description><![CDATA[When I used to work at Amazon Web Services (AWS) one of the pain points was the ability to migrate your fault tolerant strategies to another region. Amazon had these great technologies to help you fail away from trouble areas. A great overview of these strategies is in a video, that I did last year, which [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When I used to work at <span style="color: #7030a0;"><strong>Amazon Web Services (AWS) </strong></span>one of the pain points was the ability to migrate your fault tolerant strategies to another region. Amazon had these great technologies to help you fail away from trouble areas. A great overview of these strategies is in a video, that I did last year, which shows you how to create an AMI and snapshots plus move them around inside of a region. You can watch that video <a href="http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/"><strong>here</strong></a>.</p>
<p>For example, you have a recent image of your web server or you have a snapshot of an EBS volume that host a key database. You are located in a region of AWS, let&#8217;s say US-East with all of these backups and now there is an outage that is like this <a href="http://aws.amazon.com/message/65648/"><strong>one</strong></a> from April 2011 that was called &#8220;AWS Cloud Apocalypse 2011.&#8221; There were even jokes that Skynet from Terminator had taken AWS out as seen on their <a href="https://forums.aws.amazon.com/thread.jspa?threadID=65073"><strong>forums</strong></a>. For more articles, you can search on your favorite search engine like this: <span style="color: #7030a0;"><strong>&#8220;skynet site:forums.aws.amazon.com.&#8221;</strong></span></p>
<p>Sometime in the past 6 months, Amazon has finally allowed this feature and it is long overdue! Here is a great <a href="http://media.amazonwebservices.com/AWS_Migrate_Resources_To_New_Region.pdf"><strong>whitepaper</strong></a> from AWS on this topic and here is the support <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html"><strong>document</strong></a>.</p>
<p>Let&#8217;s walk through the steps of creating an AMI with an EBS root volume, which most Windows instances should be now:</p>
<p><strong><em>If the image is too small in your browser, then click on the image and you can see the full version.</em></strong></p>
<ol>
<li>
<div>Create a current image of your machine, which is called an Amazon Machine image (AMI):</div>
<p>Right click on your EC2 instance and then select Create Image (EBS AMI)</p>
<p>&nbsp;</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat1.png" /></li>
<li>
<div>Provide a name and description to help you easily identify this new image</div>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat2.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat2.png" width="558" height="331" /></a></li>
<li>
<div>View the pending status</div>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat3.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat3.png" width="593" height="138" /></a></li>
<li>
<div>Verify the Status</div>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat4.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat4.png" width="601" height="27" /></a></li>
<li>
<div>Verify the status is <span style="color: #7030a0;"><strong>available</strong></span></div>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat5.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat5.png" width="581" height="35" /></a></li>
</ol>
<p>Now you are ready to migrate this image to another region. Note the <span style="color: #7030a0;"><strong>AMI-eee570de </strong></span>and go to snapshots.</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat6.png" /></p>
<p>Right click on your snapshot with the <span style="color: #7030a0;"><strong>AMI-eee570de </strong></span>and select <span style="color: #7030a0;"><strong>copy snapshot</strong></span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat7.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat7.png" width="574" height="99" /></a></p>
<p>Select a <span style="color: #7030a0;"><strong>region </strong></span>(I choose <strong>US East</strong>) and then <span style="color: #7030a0;"><strong>Yes, Copy<br />
</strong></span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat8.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat8.png" width="569" height="186" /></a></p>
<p>Notice the advice:</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat9.png" /></p>
<p>Then select the region:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat10.png" /></p>
<p>Then click on snapshots for a status:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat11.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat11.png" width="607" height="34" /></a></p>
<p>They even added a nice progress bar as well:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat12.png" /></p>
<p>Completed:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat13.png" /></p>
<p>Now you will need to register the snapshot as an AMI, by right clicking it and selecting <span style="color: #7030a0;"><strong>Create Image from Snapshot</strong></span>:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat14.png" /></p>
<p>Then it will give you the properties and <span style="color: #c00000;"><span style="background-color: yellow;"><strong>sadly, it looks like you still <span style="text-decoration: underline;">can&#8217;t</span> use Windows snapshots to create an image.</strong></span></span>  The underlying software that AWS uses will <span style="color: #c00000;"><span style="background-color: yellow; text-decoration: underline;"><strong>not</strong></span></span>  allow Windows volumes to be created from a snapshot, since the software assumes all volumes are Linux. However, these steps will work for Linux, I may as well show you how that will work.</p>
<p>Give a <span style="color: #7030a0;"><strong>name </strong> </span>and <span style="color: #7030a0;"><strong>description</strong></span>, then match then <span style="color: #7030a0;"><strong>architecture </strong> </span>and if need be you can change the <span style="color: #7030a0;"><strong>Kernel </strong><strong>and Ramdisk ID </strong></span>to help you. Select <span style="color: #7030a0;"><strong>Yes, Create </strong></span>when ready.</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat15.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat15.png" width="606" height="343" /></a></p>
<p>Check the status:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat16.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat16.png" width="597" height="150" /></a></p>
<p>Now you have a new image (again this will not work for Windows machines):</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat17.png" /></p>
<p>Another thing to note is that there are 2 different forms of virtualization. <a href="http://en.wikipedia.org/wiki/Hardware_virtual_machine"><strong>Hardware-assisted virtualization</strong></a> and <a href="http://en.wikipedia.org/wiki/Paravirtualization"><strong>Paravirtualization</strong></a>. It seems that AWS assumes most systems will be Paravirtualization, which may be causing the issue where you can&#8217;t create an AMI from snapshot on Windows EC2 systems.</p>
<p><strong>I am wondering if you could do the following:<br />
</strong></p>
<ul>
<li><span style="color: #7030a0;">Create a volume form Snapshot as /dev/sda1<br />
</span></li>
<li><span style="color: #7030a0;">Launch a new instance with the same parameters (Windows 2008 R2) and wait for it to load<br />
</span></li>
<li><span style="color: #7030a0;">Stop the new instance<br />
</span></li>
<li><span style="color: #7030a0;">Detach the current root volume and then attach the volume we created from snapshot<br />
</span></li>
</ul>
<p>So I tried it</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat18.png" /></p>
<p>Then I verified the new volume existed:</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat19.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat19.png" width="499" height="22" /></a></p>
<p>Launched a new instance:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat20.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat20.png" width="499" height="34" /></a></p>
<p>Waited for the instance to launch and then tried to login (did not bother to get the password, since I want to log in with my instance):</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat21.png" /></p>
<p>Then I stopped the instance and detached the root volume:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat22.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat22.png" width="499" height="86" /></a></p>
<p>Then attached my volume that I created from my Snapshot as dev/sda1:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat23.png" /></p>
<p>Now I started it and tried to RDP into my instance and damn my guess was correct:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat24.png" /></p>
<p>Here you can see it with my volume:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat25.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0819_HOWTOMigrat25.png" width="499" height="38" /></a></p>
<p>So that is how you do it in these simple steps:</p>
<ul>
<li><span style="color: #7030a0;">Create an AMI<br />
</span></li>
<li><span style="color: #7030a0;">Copy the snapshot to the new region<br />
</span></li>
<li><span style="color: #7030a0;">Create a volume form Snapshot as /dev/sda1<br />
</span></li>
<li><span style="color: #7030a0;">Launch a new instance with the same parameters (Windows 2008 R2) and wait for it to load<br />
</span></li>
<li><span style="color: #7030a0;">Stop the new instance<br />
</span></li>
<li><span style="color: #7030a0;">Detach the current root volume and then attach the volume we created from snapshot<br />
</span></li>
</ul>
<p>&nbsp;</p>
<div class="shr-publisher-2218"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/' data-shr_title='HOW+TO%3A+Migrate+an+AWS+Image+%28AMI%29+to+another+region'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/' data-shr_title='HOW+TO%3A+Migrate+an+AWS+Image+%28AMI%29+to+another+region'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/' data-shr_title='HOW+TO%3A+Migrate+an+AWS+Image+%28AMI%29+to+another+region'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/03/04/how-to-migrate-an-aws-image-ami-to-another-region/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Hyper-V limits with Windows Server 2012</title>
		<link>http://www.smattie.com/2013/02/27/hyper-v-limits-with-windows-server-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hyper-v-limits-with-windows-server-2012</link>
		<comments>http://www.smattie.com/2013/02/27/hyper-v-limits-with-windows-server-2012/#comments</comments>
		<pubDate>Wed, 27 Feb 2013 08:01:22 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2187</guid>
		<description><![CDATA[As stated in an early article of mine, there is a great free book from Microsoft Press that talks in good depth about Windows Server 2012. Today, I wanted to share some of the information that I learned from that book. (Limits and new features) Here is a simple comparison of the different limits between Windows Server 2008 R2, Windows Server 2012 Release Candidate 1 [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">As stated in an early <a href="http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/"><span style="color: blue; text-decoration: underline;"><strong>article</strong></span></a><strong> </strong>of mine, there is a great <span style="color: #7030a0;"><strong>free</strong> <span style="color: #333333;">book from Microsoft Press that talks in good depth about Windows Server 2012. Today, I wanted to share some of the information that I learned from that book. (Limits and new features)<br />
</span></span></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">Here is a simple comparison of the <span style="color: #7030a0;"><strong>different</strong> <span style="color: #333333;">limits between Windows Server 2008 R2, Windows Server 2012 Release Candidate 1 and Windows Server 2012:<br />
</span></span></span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0758_HyperVlimit1.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022713_0758_HyperVlimit1.png" width="623" height="153" /></a><span style="color: #333333; font-family: Georgia; font-size: 10pt;"><br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong><span style="background-color: yellow; text-decoration: underline;">NOTE:</span> Please click on image for a larger view.<br />
</strong></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I verified this information on TechNet with <a href="http://technet.microsoft.com/en-us/library/jj680093.aspx"><strong>Hyper-V Scalability in Windows Server 2012</strong></a> and <a href="http://technet.microsoft.com/en-us/library/ee405267%28v=ws.10%29.aspx"><strong>Requirements and Limits for Virtual Machines and Hyper-V in Windows Server 2008 R2</strong></a><strong>.<br />
</strong></span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">Another great bit of information is the TechNet article called <a href="http://technet.microsoft.com/en-US/library/hh831410.aspx"><span style="color: blue; text-decoration: underline;"><strong>What&#8217;s New in Hyper-V</strong></span></a><strong> </strong>which outlines the new changes. Cool new features, like the following:<br />
</span></p>
<p><a href="http://technet.microsoft.com/en-US/library/hh831410.aspx"><span style="color: blue; font-family: Georgia; font-size: 10pt; text-decoration: underline;"><strong>Hyper-V Replica</strong></span></a><span style="color: #333333; font-family: Georgia; font-size: 10pt;"><br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx"><span style="color: blue; text-decoration: underline;"><strong>Resource metering</strong></span></a><br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx"><span style="color: blue; text-decoration: underline;"><strong>Improved Storage migration</strong></span></a> (No more downtime)<br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx"><span style="color: blue; text-decoration: underline;"><strong>Virtual Fibre Channel</strong></span></a><br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx"><span style="color: blue; text-decoration: underline;"><strong>Virtual NUMA</strong></span></a><br />
</span></p>
<div class="shr-publisher-2187"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/02/27/hyper-v-limits-with-windows-server-2012/' data-shr_title='Hyper-V+limits+with+Windows+Server+2012'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/02/27/hyper-v-limits-with-windows-server-2012/' data-shr_title='Hyper-V+limits+with+Windows+Server+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/02/27/hyper-v-limits-with-windows-server-2012/' data-shr_title='Hyper-V+limits+with+Windows+Server+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/02/27/hyper-v-limits-with-windows-server-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Go from Minimal Interface to CORE in Server 2012</title>
		<link>http://www.smattie.com/2013/02/26/how-to-go-from-minimal-interface-to-core-in-server-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-go-from-minimal-interface-to-core-in-server-2012</link>
		<comments>http://www.smattie.com/2013/02/26/how-to-go-from-minimal-interface-to-core-in-server-2012/#comments</comments>
		<pubDate>Tue, 26 Feb 2013 08:25:35 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[Core]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Minimal Interface]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2169</guid>
		<description><![CDATA[In my last article, I spoke about a new cool feature of Windows Server 2012. The ability to go from a server GUI to Server CORE (or vice versa) without having to re-install the Operating System! You may ask yourself, &#8220;Why would I care about that?&#8221; To be blunt, Server CORE is very similar to the way most Linux [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my last <a href="http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/"><strong>article</strong></a>, I spoke about a new cool feature of Windows Server 2012. The ability to go from a server GUI to Server CORE (or vice versa) <span style="color: #7030a0;"><strong>without </strong></span>having to re-install the Operating System! You may ask yourself, <span style="color: #7030a0;"><strong><em>&#8220;Why would I care about that?&#8221; </em></strong></span>To be blunt, Server CORE is very similar to the way most Linux distributions are now working… <span style="color: #7030a0;"><span style="text-decoration: underline;"><strong>no</strong></span></span> Graphic User Interface. <strong>Most web servers are running this way in world today with some distribution of Linux with an Apache Web Server.</strong> It decreases the attack surface area, has less code to run the OS and takes a lot less CPU or memory resources to run. This means that older machines can stay in production longer. Another good case might be you have to ship a domain controller to a branch office where there is no IT staff or a secure place to lock down the server. So now you can send them a <span style="color: #7030a0;"><strong>Read Only Domain Controller (RODC) </strong></span>that is also running as <span style="color: #7030a0;"><strong>Server Core</strong></span>. Both of those roles/features were introduced with Windows Server 2008.</p>
<p>In Server 2012, you can flip back and forth much easier and <span style="color: #7030a0;"><span style="text-decoration: underline;"><strong>without</strong></span></span> having to re-install the OS. This is really helpful. Think about this scenario, I am told at the last-minute to ship a server that is already running a GUI version of Windows Server 2012 to a branch office, where our current policy is to ship Server CORE. In Windows 2008 or R2, that meant a new install of the OS, whereas in Server 2012 that is a few PowerShell commands and I am done! <span style="font-family: Wingdings;">J</span></p>
<p>I have been reading <a href="http://www.amazon.com/William-R.-Stanek/e/B000APT6MS/ref=ntt_athr_dp_pel_pop_1"><strong>William R. Stanek&#8217;</strong>s</a> book <a href="http://www.amazon.com/Windows-Server-2012-Pocket-Consultant/dp/0735666334"><strong>Windows Server 2012 Pocket Consultant</strong></a>. I highly recommend it. (<span style="color: #7030a0;"><strong>Hint hint</strong></span>)</p>
<p>Today, I am going to talk about <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/hh846317%28v=vs.85%29.aspx"><strong>Minimal Interface</strong></a>, which is a new GUI mode in Server 2012. TechNet has a really good article on this topic as well, located <a href="http://blogs.technet.com/b/server_core/archive/2012/05/09/configuring-the-minimal-server-interface.aspx"><strong>here</strong></a>. <span style="color: #c00000;"><strong><span style="background-color: yellow;">I want to be clear, that this article will <span style="text-decoration: underline;">not</span> be a step by step, like yesterday, but it will give you all the commands to go in any direction with any feature.</span><span style="color: #7030a0;">  With that being said, let&#8217;s get started.</span></strong><br />
</span></p>
<p>What does a <span style="color: #7030a0;"><strong>minimal interface </strong></span>look like? It looks a lot like Server CORE, but with Server Manager and MMC snap in support (as seen below):</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom1.png" /></p>
<p>What does the GUI look like? This is my full GUI installation before doing any commands</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom2.png" /></p>
<p>What does Server CORE look like? This is my CORE installation before doing any commands</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom3.png" /></p>
<p><span style="color: #c00000; text-decoration: underline;"><strong>PowerShell commands:<br />
</strong></span></p>
<p><strong>To convert a full GUI mode to a minimal interface:<br />
</strong></p>
<p><span style="color: #7030a0;"><strong><em>Uninstall-WindowsFeature server-gui-shell -restart<br />
</em></strong></span></p>
<p><span style="color: #c00000; background-color: yellow;"><strong>TIP</strong></span><span style="background-color: yellow;">:</span> To see what will happen <span style="color: #7030a0;"><strong>before </strong></span>it takes action use the <span style="color: #c00000;"><strong>–Whatif <span style="background-color: yellow;">(See below) </span></strong></span></p>
<p><span style="color: #c00000;"><strong><span style="background-color: yellow;"><strong>TIP#2: Add-<strong>WindowsFeature</strong> is an alias of Install-WindowsFeature and Remove<strong>-WindowsFeature is an alias of </strong><strong>Uninstall-WindowsFeature. You can use Add instead of Install and Remove over Uninstall.</strong></strong></span><br />
</strong></span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom4.png" /></p>
<p>This command did <span style="color: #7030a0;"><span style="text-decoration: underline;"><strong>not</strong></span></span> run, but you should not always trust what you hear, since someone could be <strong>lying</strong> to you. (<strong>Lord forbid a mistake happens as well</strong>) To verify it did <span style="color: #c00000;"><span style="text-decoration: underline;"><strong>not</strong></span></span> complete in the GUI, open <span style="color: #7030a0;"><strong>Server Manager</strong></span>, then <span style="color: #7030a0;"><strong>Dashboard</strong></span>, then <span style="color: #7030a0;"><strong>Add roles and features</strong></span>, click <span style="color: #7030a0;"><strong>next </strong></span>(4 times) and then on Features drill down <span style="color: #7030a0;"><strong>to User Interfaces and Infrastructure</strong></span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom5.png" /></p>
<p>When you do execute the command, you will see a status bar, just like when you apply a Windows Update patch:</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom6.png" /></p>
<p><strong>To convert a minimal interface to full GUI mode:<br />
</strong></p>
<p><span style="color: #7030a0;"><strong><em>Install-WindowsFeature server-gui-shell –restart<br />
</em></strong></span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom7.png" /><span style="color: #7030a0;"><strong><em><br />
</em></strong></span></p>
<p>As you can see it did <span style="color: #7030a0;"><span style="text-decoration: underline;"><strong>not</strong></span></span> add the Desktop Experience:</p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom8.png" /></p>
<p>To add it type <span style="color: #c00000;"><strong><span style="background-color: yellow;">Install-WindowsFeature desktop-experience –restart</span></strong></span> and hit <span style="color: #c00000;"><strong>enter<span style="color: #7030a0;"><em><br />
</em></span></strong></span></p>
<p><strong>To convert a minimal interface to full GUI mode with the <span style="color: #7030a0;">Desktop Experience</span>:<br />
</strong></p>
<p><span style="color: #7030a0;"><strong><em>Install-WindowsFeature server-gui-shell, desktop-experience –restart<br />
</em></strong></span></p>
<p><span style="color: #c00000;"><strong>Converting to Server Core Installations<br />
</strong></span></p>
<p><strong>To convert a minimal interface or full GUI mode to Server CORE:<br />
</strong></p>
<p><span style="color: #7030a0;"><strong><em>Uninstall-WindowsFeature server-gui-mgmt-infra –restart </em><span style="color: #c00000;"><span style="background-color: yellow;">(Full)</span><span style="color: #7030a0;"><em><br />
</em></span></span></strong></span></p>
<p><span style="color: #7030a0;"><strong><em>Uninstall-WindowsFeature server- gui-shell –restart </em><span style="color: #c00000;"><span style="background-color: yellow;">(Minimal)</span><span style="color: #7030a0;"><em><br />
</em></span></span></strong></span></p>
<p><strong>To convert a Server CORE to minimal interface or full GUI mode:<br />
</strong></p>
<p><span style="color: #7030a0;"><strong><em>Install-WindowsFeature server-gui-mgmt-infra –restart </em><span style="color: #c00000;"><span style="background-color: yellow;">(Full)</span><br />
</span></strong></span></p>
<p><span style="color: #7030a0;"><strong><em>Install-WindowsFeature server-gui-shell –restart </em><span style="color: #c00000;"><span style="background-color: yellow;">(Minimal)</span><span style="color: #7030a0;"><em><br />
</em></span></span></strong></span></p>
<p>Here is an example, open <span style="color: #7030a0;"><strong>PowerShell </strong></span>in server CORE by typing <span style="color: #c00000;"><span style="background-color: yellow;"><strong>powershell</strong></span></span> and hit <span style="color: #c00000;"><strong>enter<br />
</strong></span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom9.png" /></p>
<p>To go to a <span style="color: #7030a0;"><strong>Server 2012 Minimal Interface</strong></span>, type in the command <span style="color: #c00000;"><span style="background-color: yellow;"><strong>Install-WindowsFeature server-gui-shell –restart</strong></span></span> and hit <span style="color: #c00000;"><strong>enter</strong></span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom10.png" /><span style="color: #7030a0;"><strong><em><br />
</em></strong></span></p>
<p>You will see a progress bar as it starts to add the feature and then it will restart</p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/022613_0825_HOWTOGofrom11.png" /></p>
<p>In closing, I want to say that I am really impressed with Windows Server 2012 and more importantly with PowerShell 3.0. It very simple and has straight forward commands. I am really glad to see these new features and I believe that <span style="color: #7030a0;"><strong>Server 2012 Minimal Interface</strong></span> will allow people to get away from the GUI, while still using the tools that have gotten used to using over the years with many different versions of Windows. This is great and I am glad to see that we are moving more towards command line tools and relying less on the GUI tools. This is great, because it has a significant smaller attack surface area and the reason is that there are less components installed, which also means there are fewer services listening to allow an intruder into your environment. It will take some time getting use to this new direction, but it is the right direction that we should have taken years ago.</p>
<div class="shr-publisher-2169"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/02/26/how-to-go-from-minimal-interface-to-core-in-server-2012/' data-shr_title='HOW+TO%3A+Go+from+Minimal+Interface+to+CORE+in+Server+2012'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/02/26/how-to-go-from-minimal-interface-to-core-in-server-2012/' data-shr_title='HOW+TO%3A+Go+from+Minimal+Interface+to+CORE+in+Server+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/02/26/how-to-go-from-minimal-interface-to-core-in-server-2012/' data-shr_title='HOW+TO%3A+Go+from+Minimal+Interface+to+CORE+in+Server+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/02/26/how-to-go-from-minimal-interface-to-core-in-server-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Go from GUI to CORE and back to GUI in Server 2012</title>
		<link>http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012</link>
		<comments>http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 08:01:08 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[Core]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2136</guid>
		<description><![CDATA[I have been preparing to upgrade my Windows and SQL certifications for 2012. I was checking out an article on switching from Server GUI to Server core. This article was written for Windows Server 8 Beta and was called How to Turn the GUI Off and On in Windows Server 2012. It gave me the [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia;">I have been preparing to upgrade my Windows and SQL certifications for 2012. I was checking out an article on switching from Server GUI to Server core. This article was written for Windows Server 8 Beta and was called <a href="http://www.howtogeek.com/111967/how-to-turn-the-gui-off-and-on-in-windows-server-2012/"><strong>How to Turn the GUI Off and On in Windows Server 2012.</strong></a> It gave me the impression you could also start from server core and go to a GUI, but I see the menu was different from the one they showed. </span></p>
<p><span style="font-family: Georgia;">Here is mine and note that option number <span style="color: #7030a0;"><strong>12 </strong></span>is to log off the user:<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer1.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer1.png" width="608" height="308" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>Here is one from that article, take note of option number 12 (Restore GUI):<br />
</strong></span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer2.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">So it made me wonder how it is done and why not update the information for Server 2012 in the process. (No Beta or RC versions) I started with an installation of Server 2012 with a GUI and decided to remove it. Let&#8217;s begin with the process of removing the GUI, which is pretty easy. Also you might be asking yourself, why would I want to have SQL server running as a VM and as Server Core? (<span style="color: #c00000; background-color: yellow;">Plus are there any advantages you would gain using Windows Server 2012 Hyper-V over VMWare?</span>)<br />
</span></p>
<p><span style="font-family: Georgia;"><span style="color: #7030a0;"><strong>Here is a very brief overview and my opinion:</strong></span><br />
</span></p>
<ul>
<li><span style="color: #c00000; font-family: Georgia;"><em>Faster Failover Times for Unplanned Failovers- Unplanned failover in a VM often takes ~5min. AlwaysOn unplanned failovers take &lt;30sec. (Also, remember VMotion doesn&#8217;t help with unplanned failovers)<br />
</em></span></li>
<li><span style="color: #c00000; font-family: Georgia;"><em>Reduced downtime for SQL and Windows patching and upgrades. (<span style="background-color: yellow;">Often overlooked as a benefit</span>)<br />
</em></span></li>
<li><span style="color: #c00000; font-family: Georgia;"><em>Faster DR, as selected workloads can be quickly brought online in a DR scenario<br />
</em></span></li>
<li><span style="color: #c00000; font-family: Georgia;"><em>Readable Secondary for offloading report traffic<br />
</em></span></li>
</ul>
<p><span style="font-family: Georgia;">Open Server Manager and then Click on Manage, and then select <span style="color: #7030a0;"><strong>Remove Roles and Features </strong></span>from the menu.<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer3.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Select your <strong>server</strong> from the server pool and click <strong>next</strong>.<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer4.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span><span style="font-family: Georgia;">Since the GUI is </span><span style="color: #c00000;"><strong>not </strong></span><span style="font-family: Georgia;">a Role, you can just click next again to </span><span style="color: #c00000;"><strong>skip </strong></span><span style="font-family: Georgia;">past the </span><span style="color: #c00000;"><strong>Roles </strong></span><span style="font-family: Georgia;">section. On the Features page, you need to ensure that the box is unchecked next to the &#8220;User Interfaces and Infrastructure&#8221; option, and then click next.</span> </span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer5.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Now click the &#8220;Restart Destination Server&#8221; box, then click <span style="color: #7030a0;"><strong>remove</strong></span>.<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer6.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Then you will see Windows make the new changes:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer7.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">After the reboot, all you have now is a Server core installation with only a command prompt.<br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer8.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer8.png" width="562" height="285" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Type in &#8220;<span style="color: #7030a0;"><strong>sconfig</strong></span>&#8221;<br />
</span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer9.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Notice the menu has changed since Server 8 Beta and there is no more revert back to GUI option:<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer10.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer10.png" width="562" height="344" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">I was reading the <strong><a href="http://www.amazon.com/Windows-Server-2012-Pocket-Consultant/dp/0735666334">Windows Server 2012 Pocket consultant</a> </strong>and it mentions that you have 3 types of installations now:<br />
</span></p>
<ol>
<li><strong><em><span style="font-family: Georgia;">Server with a GUI<br />
</span></em></strong></li>
<li><strong><em><span style="font-family: Georgia;">Server Core<br />
</span></em></strong></li>
<li><span style="font-family: Georgia;"><strong><em>Server with minimal interface</em></strong><br />
</span></li>
</ol>
<p><span style="font-family: Georgia;">I also found this article on the Microsoft Premier Field Engineers blog called <a href="http://blogs.technet.com/b/gbanin/archive/2012/12/11/converting-a-server-with-a-gui-to-or-from-server-core.aspx"><strong>Converting a server with a GUI to or from Server Core</strong></a>. It also talks about the three installations of Windows Server 2012 as well. <em>I will look at exploring <span style="color: #7030a0;"><strong>Server with a minimal interface </strong></span>at a later time.</em> For now, I am just going to focus on Server GUI and Server Core.<br />
</span></p>
<p><span style="font-family: Georgia;">To add the server back to a GUI, you will need to use the new 3.0 PowerShell cmdlet <span style="color: #7030a0;"><strong>Add-WindowsFeature Server-Gui-Shell</strong></span> to convert it back. Again, this is a very simple method to convert back to a GUI from Core. To get there, type in <span style="color: #c00000;"><strong>powershell </strong></span>at the command prompt and then type <span style="color: #c00000;"><strong>Add-WindowsFeature Server-Gui-Shell </strong></span>as seen below:<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer11.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer11.png" width="607" height="569" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">It will start running the job and you will see a status menu, like this one below:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer12.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">When it is done, you will need to reboot the server and the easiest method is to type <span style="color: #7030a0;"><strong>shutdown –r –f –t 0 </strong></span>(<strong><em>restart, force, time 0 seconds</em></strong>)<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer13.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Again, it will make the changes for you while the restart is happening:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer14.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">After the restart, you are back to the GUI as seen here:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021913_0702_HOWTOServer15.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">I am really glad to see that Microsoft made this change and I can see a lot of good here. I am a big fan of flexibility and this allows for it, plus I really like the direction PowerShell is headed with this release of Windows. </span></p>
<p><span style="font-family: Georgia;">I think it is great for people who start off with a GUI and then decide that it causes too much of a performance hit or they want to move a server to a regional office where there is no support staff. This allows you to save on resources and also lock down the exposed surface area. More importantly, if you ever ran into a weird issue, you could convert back to GUI mode for easily troubleshooting and you get to do all of this without having to re-install the box. Plus you get to make your boss think you are incredible as well, by doing the task in a very fast manner.<br />
</span></p>
<div class="shr-publisher-2136"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/' data-shr_title='HOW+TO%3A+Go+from+GUI+to+CORE+and+back+to+GUI+in+Server+2012'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/' data-shr_title='HOW+TO%3A+Go+from+GUI+to+CORE+and+back+to+GUI+in+Server+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/' data-shr_title='HOW+TO%3A+Go+from+GUI+to+CORE+and+back+to+GUI+in+Server+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/02/25/how-to-go-from-gui-to-core-and-back-to-gui-in-server-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Improvements with SQL Server 2012 SP1 CU2 and Sysprep</title>
		<link>http://www.smattie.com/2013/02/19/improvements-with-sql-server-2012-sp1-cu2-and-sysprep/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=improvements-with-sql-server-2012-sp1-cu2-and-sysprep</link>
		<comments>http://www.smattie.com/2013/02/19/improvements-with-sql-server-2012-sp1-cu2-and-sysprep/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 08:01:48 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Sysprep]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2109</guid>
		<description><![CDATA[Good news came out earlier this month when Microsoft released Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack 1. It can be downloaded here and if you are new to CU packages, there are not like a regular Service pack or Windows update. These CU fixes are not as tested as regular [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia;">Good news came out earlier this month when Microsoft released <span style="color: #7030a0;"><strong>Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack 1</strong></span>. It can be downloaded <a href="http://support.microsoft.com/kb/2790947"><strong>here</strong></a> and if you are new to CU packages, there are <strong>not</strong> like a regular Service pack or Windows update. These CU fixes are <strong>not</strong> as tested as regular like either a service pack or Windows updates, plus in most cases the CU is only recommended if you have the issue they fixed in the release notes. </span></p>
<p><span style="font-family: Georgia;">In addition to all of that, you also do not get a link to download. Instead you will need to sign up via email to get the download and it will look like this one:<br />
</span></p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/Email.png"><img class="aligncenter  wp-image-2114" alt="Email" src="http://cdn.smattie.com/wp-content/uploads/2013/02/Email.png" width="521" height="421" /></a></p>
<p><span style="font-family: Georgia;">Another thing to note is that this patch is <span style="color: #7030a0;"><strong>only </strong></span>relevant for builds with SP1 installed. (11.0.3000 -&gt; 11.0.3338) <span style="color: #c00000; background-color: yellow;">Do not attempt to install on SQL Server 2012 RTM (any build &lt; 11.0.3000) or any previous version</span>. To find your current version, you can type the following:<br />
</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">SELECT </span><span style="color: fuchsia;">SERVERPROPERTY<span style="color: gray;">(<span style="color: red;">&#8216;productversion&#8217;<span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: teal;">VersionNumber<span style="color: gray;">,</span><br />
</span></span></span></span></span></p>
<p><span style="color: fuchsia; font-family: Consolas; font-size: 9pt;">SERVERPROPERTY <span style="color: blue;"><span style="color: gray;">(<span style="color: red;">&#8216;productlevel&#8217;<span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: teal;">ProductLevel<span style="color: gray;">,</span><br />
</span></span></span></span></span></p>
<p><span style="color: fuchsia; font-family: Consolas; font-size: 9pt;">SERVERPROPERTY <span style="color: blue;"><span style="color: gray;">(<span style="color: red;">&#8216;edition&#8217;<span style="color: gray;">) </span><span style="color: blue;">AS </span><span style="color: teal;">Edition<br />
</span></span></span></span></span></p>
<p>&nbsp;</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement1.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement1.png" width="619" height="122" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">You could also just use this TSQL code: </span><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">SELECT </span><span style="color: fuchsia;">@@VERSION<span style="color: gray;">;<br />
</span></span></span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement2.png" /></p>
<p><span style="font-family: Georgia;">As you can tell, my SQL instance is ready for <span style="color: #7030a0;"><strong>Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack 1</strong></span>.<br />
</span></p>
<p><span style="font-family: Georgia;">If you are like me, you enjoyed the benefits of <a href="http://technet.microsoft.com/en-us/library/hh824816.aspx"><strong>sysprep</strong></a> with Windows servers or desktops. It saves a lot of time deploying new machines or reimaging machines that had an issue, like corruption or malware. Also, you could even customize your image to put in your own company&#8217;s logo and support telephone numbers. It gives you a sense of personalization to your company and allows them to go to the right support person. As for SQL server, I have not always been a big fan of <a href="http://technet.microsoft.com/en-us/library/hh824816.aspx"><strong>sysprep</strong></a>, because quite frankly it was very limited. Let me show you what I mean.<br />
</span></p>
<p><span style="font-family: Georgia;">First off, it is recommended that you try this image on a system <strong>without</strong> SQL installed. That way you do <strong>not</strong> need to worry about what components may or may not be installed. If you try it on a system that has an unsupported component of SQL server to use with sysprep, then you will see this error message below:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement3.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Launch the 2012 SQL installer and then go to <strong>Advanced</strong>, then select <strong>Image Preparation of a stand-alone instance of SQL Server</strong>. (As seen below)<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement4.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement4.png" width="571" height="256" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Then click next a few times to install the setup files and eventually you will come to the menu and see this:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement5.png" width="562" height="421" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Please note how you do <strong>not</strong> see Analysis or Integration services, which is what I meant earlier by it is limited in the number of features it is supported. Now, I am going to go ahead and <span style="color: #7030a0;"><strong>update</strong><br />
</span>my SQL server instance to <span style="color: #7030a0;"><strong>Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack 1</strong></span>. Here is my instance version now:<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement6.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement6.png" width="581" height="183" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Notice now, how many more features that I have with the menu with <span style="color: #7030a0;"><strong>Cumulative update package 2 (CU2) for SQL Server 2012 Service Pack 1</strong></span>.</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement7.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_1932_Improvement7.png" width="563" height="502" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">These new features, now allow anyone to use <strong>sysprep</strong> more often with SQL Server 2012 and I am very glad to see these changes. It is great when you have choices to make getting tasks done and I love having flexibility.<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>For more information on this topic, please see the following articles:<br />
</strong></span></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee210664.aspx"><span style="font-family: Georgia;"><strong>Install SQL Server 2012 Using SysPrep</strong></span></a><span style="font-family: Georgia;"><strong><br />
</strong></span></p>
<p><a href="http://blogs.technet.com/b/scvmm/archive/2013/01/25/expanded-sysprep-support-in-sql-server-2012-sp1-cu2.aspx"><span style="font-family: Georgia;"><strong>Expanded SysPrep Support in SQL Server 2012 SP1 CU2</strong></span></a><span style="font-family: Georgia;"><strong><br />
</strong></span></p>
<p><a href="http://support.microsoft.com/kb/2792921"><span style="font-family: Georgia;"><strong>Description of new features in Cumulative Update 2 for SQL Server 2012 SP1</strong></span></a><span style="font-family: Georgia;"><strong><br />
</strong></span></p>
<p><a href="http://support.microsoft.com/kb/2790947"><span style="font-family: Georgia;"><strong>Cumulative update package 2 for SQL Server 2012 Service Pack 1 Download</strong></span></a><span style="font-family: Georgia;"><strong><br />
</strong></span></p>
<p><a href="http://technet.microsoft.com/en-us/library/hh824816.aspx"><span style="font-family: Georgia;"><strong>Sysprep Overview</strong></span></a><span style="font-family: Georgia;"><strong><br />
</strong></span></p>
<div class="shr-publisher-2109"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/02/19/improvements-with-sql-server-2012-sp1-cu2-and-sysprep/' data-shr_title='Improvements+with+SQL+Server+2012+SP1+CU2+and+Sysprep'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/02/19/improvements-with-sql-server-2012-sp1-cu2-and-sysprep/' data-shr_title='Improvements+with+SQL+Server+2012+SP1+CU2+and+Sysprep'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/02/19/improvements-with-sql-server-2012-sp1-cu2-and-sysprep/' data-shr_title='Improvements+with+SQL+Server+2012+SP1+CU2+and+Sysprep'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/02/19/improvements-with-sql-server-2012-sp1-cu2-and-sysprep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting a SCVMM 2012 transport error</title>
		<link>http://www.smattie.com/2013/02/18/troubleshooting-a-scvmm-2012-transport-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=troubleshooting-a-scvmm-2012-transport-error</link>
		<comments>http://www.smattie.com/2013/02/18/troubleshooting-a-scvmm-2012-transport-error/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 08:01:41 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2092</guid>
		<description><![CDATA[Last week, I had someone reach out to me asking for help with a new SCVMM 2012 server. It was a new installation and for the most part it worked well for them during the past month. However, recently they started seeing the error below, which prevent them access to the Virtual Machine Manager: At [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia;">Last week, I had someone reach out to me asking for help with a new SCVMM 2012 server. It was a new installation and for the most part it worked well for them during the past month. However, recently they started seeing the error below, which prevent them access to the Virtual Machine Manager:<br />
</span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo1.png" /></p>
<p><span style="font-family: Georgia;">At first they ignored this error, since rebooting the SQL server seemed to fix the issue. As time went on, the error become more common and they found themselves rebooting more frequently. <span style="color: #7030a0;"><strong>Sadly, they did not share that information with me that they had to reboot so often. </strong></span>With the information they had shared with me listed above, I recommended that they investigate the following areas:<br />
</span></p>
<ol>
<li><span style="color: #7030a0; font-family: Georgia;">Check for any auto services that are not started<br />
</span></li>
<li><span style="color: #7030a0; font-family: Georgia;">Check to ensure SQL, VMM and WS-Management services (etc.) are started<br />
</span></li>
<li><span style="color: #7030a0; font-family: Georgia;">Check Application and System logs for any service complainants<br />
</span></li>
<li><span style="color: #7030a0; font-family: Georgia;">Check Application and System logs for anything wrong with SCVMM and/or SQL Server<br />
</span></li>
</ol>
<p><span style="font-family: Georgia;">For the most part, all services were started and not having any issues. They did not see any credential errors with any service in the logs. At first they suspected the SCVMM application had an issue based on the error logs below:<br />
</span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo2.png" /></p>
<p>&nbsp;</p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>Application fault again:<br />
</strong></span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo3.png" /></p>
<p>&nbsp;</p>
<p><span style="font-family: Georgia;">At this point, I asked them if they had any experience with SCVMM and were aware of the relationship it has with SQL server. They stated that they had some, but were not sure of the SQL details, so at that point I explained that all of the information they see in the SCVMM console is stored in a database on the SQL server and the application depends on it. At that point they understood why I was asking them about SQL server.<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>Then they shared with me this gem of information that I was looking for to help them:<br />
</strong></span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo4.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">I also asked them to log into SQL and check the error logs to confirm what we were seeing from this error message on the SCVMM server. (Above)<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>They first looked at the installation logs and saw an underlying error in their initial setup logs were coming from SQLServer :<br />
</strong></span></p>
<p><span style="font-family: Georgia;"><em><span style="color: #c00000;">InnerException.Type: System.Data.SqlClient.SqlException, InnerException.Message: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 &#8211; The semaphore timeout period has expired.)</span><br />
</em></span></p>
<p><span style="font-family: Georgia;">When I was able to finally persuade them to look at the SQL server, there are no other databases on that server. However, we did see this error message was all over the place:<br />
</span></p>
<p><span style="color: #c00000; font-family: Georgia;"><em><span style="background-color: yellow;">A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 &#8211; The semaphore timeout period has expired.)</span><br />
</em></span></p>
<p><span style="font-family: Georgia;">At this point, I let them know that &#8220;The semaphore timeout period has expired&#8221; is a Winsock error that usually indicates the TCP peer did not ACK some data. This typically means that some part of the network layer croaked. (i.e. a NIC or switch is malfunctioning) It could also probably happen if the server machine was unplugged or hard powered off, but SQL Server itself or the client process wouldn&#8217;t cause this type of error. Even if you forcibly terminated the SQL Server process on the server, you wouldn&#8217;t see this behavior. It would at least send a TCP Reset. (RST)<br />
</span></p>
<p><span style="font-family: Georgia;">I asked them if they knew how TCP works and then explained the 3 way handshake that occurs with these diagrams:<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>Basic overview:<br />
</strong></span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo5.jpg"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo5.jpg" width="588" height="362" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><strong>Then I went further and explained some more details with this one:<br />
</strong></span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo6.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo6.png" width="517" height="330" /></a><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">I recommended that they either use <a href="http://www.microsoft.com/en-us/download/details.aspx?id=4865"><strong>Netmon</strong></a> or <a href="http://www.wireshark.org/download.html"><strong>Wireshark </strong></a> to perform a network captures to look at where the failure is actually occurring. However, they saw this error message below and just asked the data center people to look at the SQL server NIC and switches. (<span style="background-color: yellow;"><em>It appears it&#8217;s either a NIC issue or a networking issue on the SQL server side. I found these 2 logs after digging around for a while and they seem to be consistent throughout</em></span>)<br />
</span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/021813_0500_Troubleshoo7.png" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">Personally, I would have gone a step further and pin-pointed it to the actual device. I would have done a quick TCP based trace route, like <a href="http://tcptrace.sourceforge.net/"><strong>tcptrace</strong></a>. (It will require you to install <a href="http://www.winpcap.org/install/default.htm"><strong>wincap</strong></a>) A lot of people are <span style="color: #7030a0;"><strong>not </strong></span>aware that ICMP traffic, <span style="color: #c00000; background-color: yellow;"><em>like ping and tracert</em></span>, is often either <span style="color: #7030a0;"><strong>dropped or deprioritized </strong></span>a lot in busy networks and it can lead to false alarms. If your network traffic is leaving a building, then I would recommend using a TCP connection to test, so that way I am guaranteed to get a response back. After that, then I would have confirmed my findings with the packet capture by looking for a <a href="http://www.inetdaemon.com/tutorials/internet/tcp/3-way_handshake.shtml"><strong>TCP 3 way handshake.</strong></a></span></p>
<p>Moving forward, I hope that people were able to see the key here is to look at basic networking and event viewer (plus other application) logs to get a true sense of what is going on. Sometimes, your perception of things can lead you down the wrong path as you allow it to become a reality. In this case, most of the early troubleshooting was focused on SCVMM and not a lot of attention was placed on the SQL server.</p>
<div class="shr-publisher-2092"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/02/18/troubleshooting-a-scvmm-2012-transport-error/' data-shr_title='Troubleshooting+a+SCVMM+2012+transport+error'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/02/18/troubleshooting-a-scvmm-2012-transport-error/' data-shr_title='Troubleshooting+a+SCVMM+2012+transport+error'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/02/18/troubleshooting-a-scvmm-2012-transport-error/' data-shr_title='Troubleshooting+a+SCVMM+2012+transport+error'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/02/18/troubleshooting-a-scvmm-2012-transport-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a SQL Server mirror on an existing mirror</title>
		<link>http://www.smattie.com/2013/02/06/creating-a-sql-server-mirror-on-an-existing-mirror/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-sql-server-mirror-on-an-existing-mirror</link>
		<comments>http://www.smattie.com/2013/02/06/creating-a-sql-server-mirror-on-an-existing-mirror/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 08:01:46 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2072</guid>
		<description><![CDATA[This is an article that I have been meaning to write for months. It was very exciting for me when I was trying to solve this issue and I was even more pleased with performing this task when I found a few DBA&#8217;s had never attempted this operation. I want to share that knowledge with [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia; font-size: 12pt;"><span style="color: #7030a0;"><strong>This is an article that I have been meaning to write for months</strong>. </span>It was very exciting for me when I was trying to solve this issue and I was even more pleased with performing this task when I found a few DBA&#8217;s had never attempted this operation. I want to share that knowledge with you today.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;"><strong>Little background about this configuration:</strong></span><span style="font-family: Georgia; font-size: 12pt;">We had a production 2008 R2 SQL Server that was configured as <span style="color: #7030a0;"><strong><a href="http://msdn.microsoft.com/en-us/library/ms179344%28v=sql.100%29.aspx">Synchronous Database Mirroring (High-Safety Mode)</a> </strong></span></span><span style="font-family: Georgia; font-size: medium;">which means we were writing to both nodes at the same time and had a witness server for automatic fail-over. </span><strong style="font-family: Georgia; font-size: 12pt;">Here is a great description from Books Online about our <a href="http://msdn.microsoft.com/en-us/library/ms189901(v=sql.100).aspx">mirroring</a>:</strong></p>
<p><span style="color: #00b050; font-family: Georgia; font-size: 12pt;"><em>To achieve synchronous operation for a session, the mirror server must synchronize the mirror database with the principal database. When the session begins, the principal server begins sending its active log to the mirror server. The mirror server writes all of the incoming log records to disk as quickly as possible. As soon as all of the received log records have been written to disk, the databases are synchronized. As long as the partners remain in communication, the databases remain synchronized.<br />
</em></span></p>
<p><span style="color: #00b050; font-family: Georgia; font-size: 12pt;"><em>After synchronization finishes, every transaction committed on the principal database is also committed on the mirror server, guaranteeing protection of the data. This is achieved by waiting to commit a transaction on the principal database, until the principal server receives a message from the mirror server stating that it has hardened the transaction&#8217;s log to disk. Note the wait for this message increases the latency of the transaction.<br />
</em></span></p>
<p><span style="font-family: Georgia; font-size: 12pt;"><span style="color: #00b050;"><em>The time required for synchronization depends essentially on how far the mirror database was behind the principal database at the start of the session (measured by the number of log records initially received from the principal server), the work load on the principal database, and the speed of the mirror system. After a session is synchronized, the hardened log that has yet to be redone on the mirror database remains in the redo queue. For more information, see Database Mirroring Sessions. </em></span><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">We were limited on space (isn&#8217;t that always the case?) and were only doing mirroring on key databases. However, as the application started to mature, another database was created to capture additional monitoring and a decision was made to store this database on the witness server. At the time of this decision, there was plenty of disk space.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">As we know, the more time passes, the more things grow and features get added, which means the database was growing at an alarming rate. I did a lot of monitoring on the database and created jobs to purge data that was no longer required due to our retention period. For 6 months, I made sure we had enough space to prevent auto growth and that we kept the database with <span style="color: #c00000;"><strong>at least 10% of free disk space</strong></span>. Sadly, it just got to a point where we literally had <span style="color: #c00000;"><strong>less </strong></span>than a week left before we would fill up the drive.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">I had to come up with a solution and it needed to be tested, plus done quickly. To make matters worse, I had a lot on my plate that was just as important and I could not engage anyone else for assistance. I need to perform 2 critical operations that same week and get this database taken care of ASAP.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">My initial thoughts were that I could either do a restore or attempt to mirror the database to the new server that was built earlier. I first tried the restore method, but I had reservations about it, since I knew the backup took a very long time. The problem I ran into was the backup was timing out due to various issues. I was more intrigued by the mirroring option, so I decided to test that approach and ended up learning a lot.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">More importantly, I was successful in getting this database migrated to the new server that has plenty of disk space. I would like to show you how I proceeded.<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">The current servers in the mirror were the following:<br />
</span></p>
<p><span style="color: #7030a0;"><strong>SQLM101</strong></span> &#8211; Principal</p>
<p><span style="color: #7030a0;"><strong>SQLM102 </strong></span>– Mirror</p>
<p><span style="color: #7030a0;"><strong>SQLW101 </strong></span>– Witness server and additional DB added for monitor logs</p>
<p><span style="color: #7030a0;"><strong>SQLW102 </strong></span>– <strong>New</strong> Witness server with additional DB added for monitor logs</p>
<p><span style="font-family: Georgia; font-size: 12pt;">At first, when I attempted this process, I was <strong>not</strong> very knowledgeable about SQL Server end points and I did <strong>not</strong> understand there were certain roles for each type of end point. Luckily for me I was able to reach out to <span style="color: #f79646;"><strong>Robert Davis </strong></span>(<a href="http://www.sqlsoldier.com/wp/"><strong>Blog</strong> </a>| <a href="https://twitter.com/SQLSoldier"><strong>Twitter</strong></a>) who helped me understand this topic better and then I found this great article in Books Online<a href="http://msdn.microsoft.com/en-us/library/ms190278%28v=sql.105%29.aspx"><strong> sys.database_mirroring_endpoints (Transact-SQL)</strong></a><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">I was then able to come up with this script to do a test for active end points and also see how they are configured:<br />
</span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Check for SQL Endpoints<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select </span><span style="color: gray;">* </span><span style="color: blue;">from </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">database_mirroring_endpoints<br />
</span></span></span></span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ1.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ1.png" width="562" height="32" /></a><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia; font-size: 12pt;">* Not all results are shown here (please note role_desc field)<br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">The screen shot below shows you the end points in SQL Server Management Studio (SSMS) and the results of the script.<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ2.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ2.png" width="599" height="185" /></a><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">When I ran this script, I was very interested in was the <span style="color: #7030a0;"><strong>role_desc </strong></span>field which shows me how this end point is configured, which is only for the <strong>Witness</strong> Role. It can&#8217;t be used for any other type, such as <strong>None, Partner </strong>or<strong> All</strong>. Then I ran some more queries to get more details on the end points.<br />
</span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Check for end point connections<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select </span><span style="color: gray;">* </span><span style="color: blue;">from </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">dm_db_mirroring_connections<br />
</span></span></span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">SELECT</span> e<span style="color: gray;">.</span>name<span style="color: gray;">,</span> e<span style="color: gray;">.</span>protocol_desc<span style="color: gray;">,</span> e<span style="color: gray;">.</span>type_desc<span style="color: gray;">,</span> e<span style="color: gray;">.</span>role_desc<span style="color: gray;">,</span> e<span style="color: gray;">.</span>state_desc<span style="color: gray;">,</span> t<span style="color: gray;">.</span>port<span style="color: gray;">,</span> e<span style="color: gray;">.</span>is_encryption_enabled<span style="color: gray;">,</span> e<span style="color: gray;">.</span>encryption_algorithm_desc<span style="color: gray;">,</span> e<span style="color: gray;">.</span>connection_auth_desc<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">FROM </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">database_mirroring_endpoints</span> e JOIN</span> sys<span style="color: gray;">.<span style="color: green;">tcp_endpoints</span> t <span style="color: blue;">ON</span> e.</span>endpoint_id <span style="color: gray;">=</span> t<span style="color: gray;">.</span>endpoint_id<br />
</span></span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Check for SQL Endpoints (simple view)<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select </span><span style="color: gray;">* </span><span style="color: blue;">from </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">endpoints<br />
</span></span></span></span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Check for SQL Endpoints (more options to see which ones are in the mirroring state)<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select </span><span style="color: gray;">* </span><span style="color: blue;">from </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">database_mirroring </span><span style="color: blue;">where</span> mirroring_state is </span><span style="color: gray;">not </span><span style="color: gray;">null</span><br />
</span></span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;to see who has granted Mirroring and the grantee<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">SELECT</span> EP<span style="color: gray;">.</span>name<span style="color: gray;">,</span> SP<span style="color: gray;">.<span style="color: blue;">STATE<span style="color: gray;">, </span><span style="color: fuchsia;">CONVERT<span style="color: gray;">(<span style="color: blue;">nvarchar<span style="color: gray;">(</span>38<span style="color: gray;">), </span><span style="color: fuchsia;">suser_name<span style="color: gray;">(</span>SP<span style="color: gray;">.</span>grantor_principal_id<span style="color: gray;">))</span><br />
<span style="color: blue;">AS</span> GRANTOR<span style="color: gray;">,</span> SP<span style="color: gray;">.<span style="color: blue;">TYPE </span><span style="color: blue;">AS</span> PERMISSION,</span> CONVERT<span style="color: gray;">(<span style="color: blue;">nvarchar<span style="color: gray;">(</span>46<span style="color: gray;">),<span style="color: fuchsia;">suser_name<span style="color: gray;">(</span>SP<span style="color: gray;">.</span>grantee_principal_id<span style="color: gray;">))</span><br />
<span style="color: blue;">AS</span> GRANTEE<br />
</span></span></span></span></span></span></span></span></span></span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">FROM </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">server_permissions</span> SP ,</span> sys<span style="color: gray;">.<span style="color: green;">endpoints</span> EP<br />
</span></span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WHERE</span> SP<span style="color: gray;">.</span>major_id <span style="color: gray;">=</span> EP<span style="color: gray;">.</span>endpoint_id<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">ORDER </span><span style="color: blue;">BY</span> Permission<span style="color: gray;">,</span>grantor<span style="color: gray;">,</span> grantee<span style="color: gray;">;<br />
</span></span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">I ran this script (<strong>above</strong>) on all of the current SQL Server Mirror pairs and it let me know a couple of key things: the role of the end point and the encryption method. This would allow me to create a new end point on the new SQL server. I did also check that there was no current endpoints, as seen below:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ3.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Here is the script that I ran to create the new endpoint to match the others, please note the <span style="background-color: yellow;">role is all</span>:<br />
</span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">/****** Object: Endpoint [Mirroring] Script Date: 08/21/2012 15:17:17 ******/<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">CREATE</span><br />
<span style="color: blue;">ENDPOINT</span> [Mirroring]<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">AUTHORIZATION</span> [SMATTIE\stangsct]<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">STATE<span style="color: gray;">=<span style="color: blue;">STARTED<br />
</span></span></span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">AS </span><span style="color: blue;">TCP <span style="color: gray;">(<span style="color: blue;">LISTENER_PORT</span> =</span> 5022<span style="color: gray;">,</span> LISTENER_IP </span><span style="color: gray;">= </span><span style="color: gray;">ALL)<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">FOR </span><span style="color: blue;">DATA_MIRRORING <span style="color: gray;">(<span style="color: blue; background-color: yellow;">ROLE</span><span style="background-color: yellow;"> = </span></span><span style="background-color: yellow;"><span style="color: gray;">ALL</span></span>, </span><span style="color: blue;">AUTHENTICATION </span><span style="color: gray;">= </span><span style="color: blue;">WINDOWS</span> NEGOTIATE</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: gray;">, </span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">ENCRYPTION </span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: gray;">= </span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">REQUIRED </span></span><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">ALGORITHM </span></span></em></em></em></em><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RC4<span style="color: gray;">)</span></span></span></em></em></em></em></em></em></em></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ4.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ4.png" width="584" height="154" /></a><span style="color: blue; font-family: Courier New; font-size: 10pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">This would allow me to mirror on top of the existing mirror from the stand point of the new server. I still needed to modify the existing Witness server to move the role from &#8220;witness&#8221; to &#8220;all.&#8221; Again, Books Online was very valuable and helped me get the information I needed via this article: <a href="http://msdn.microsoft.com/en-us/library/ms186332%28v=sql.105%29.aspx"><strong>ALTER ENDPOINT (Transact-SQL) </strong></a><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">I ran this script one section at a time so I could see a before and after:<br />
</span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Check for SQL Endpoints<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select </span><span style="color: gray;">* </span><span style="color: blue;">from </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">database_mirroring_endpoints<br />
</span></span></span></span></p>
<p><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211; Change Endpoint role<br />
</span></em></em></em></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">Alter </span><span style="color: blue;">Endpoint</span> [Mirroring] <span style="color: blue;">For </span><span style="color: green;">Database_Mirroring <span style="color: blue;"><span style="color: gray;">(<span style="color: blue;">Role</span> = </span><span style="color: gray;">All);<br />
</span></span></span></span></p>
<p><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Check for SQL Endpoints<br />
</span></em></em></em></em></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select </span><span style="color: gray;">* </span><span style="color: blue;">from </span><span style="color: green;">sys<span style="color: gray;">.<span style="color: green;">database_mirroring_endpoints</span></span></span></span><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ5.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ5.png" width="610" height="216" /></a><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></em></em></em></p>
<p><span style="font-family: Georgia; font-size: 12pt;">At this point, I was ready to proceed with copying the database backups and then start the mirror. (</span><span style="color: #7030a0;"><strong>SQLW101 and SQLW102</strong></span><span style="font-family: Georgia; font-size: 12pt;">)<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ6.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Then I restored the database on the new Witness server and made sure that it was set to NORECOVERY.<br />
</span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ7.png"><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ7.png" width="569" height="510" /></a><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">It should look like this when you restore the database:<br />
</span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ8.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Now, I went ahead and setup the mirror (using the wizard for this demo) Click <span style="color: #f79646;"><strong>Configure Security</strong></span><br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ9.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ9.png" width="563" height="503" /></a><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">It will now bring up the <span style="color: #f79646;"><strong>security wizard</strong></span>:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ10.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">We are migrating the current witness; there is no need for a new witness server<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ11.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Add the Principal (primary) server<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ12.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Add the Mirror (secondary) server, by selecting <span style="color: #f79646;"><strong>Connect</strong></span><br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ13.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Then log into the server and click <span style="color: #f79646;"><strong>Next</strong></span><br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ14.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Choose your service account:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ15.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Click <span style="color: #f79646;"><strong>Finish</strong></span><br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ16.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">Click <span style="color: #f79646;"><strong>Close</strong></span>, if no errors are mentioned:<br />
</span></p>
<p><img alt="" src="http://cdn.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ17.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;"><br />
Now click <span style="color: #f79646;"><strong>Start Mirroring</strong></span><br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ18.png"><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ18.png" width="487" height="199" /></a><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">If all was successful, then you will see this <span style="color: #f79646;"><strong>status</strong><br />
</span>listed (<span style="color: #f79646;"><strong>below</strong></span>) next to the database:<br />
</span></p>
<p><img alt="" src="http://cdn2.smattie.com/wp-content/uploads/2013/02/020613_0505_CreatingaSQ19.png" /><span style="font-family: Georgia; font-size: 12pt;"><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 12pt;">After the database is caught up and mirrored, then you can fail over the database to the new server and then break the mirror between the 2 witness servers. The next step is to add the new server to the mirror pair by removing the old witness server and then added the new witness server. All that is left at that point is to modify your database connection strings for your application(s).<br />
</span></p>
<p><span style="color: #c00000; font-family: Georgia; font-size: 12pt;"><em>That is how you can build a mirror on top of an existing mirror.</em></span></p>
<div class="shr-publisher-2072"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/02/06/creating-a-sql-server-mirror-on-an-existing-mirror/' data-shr_title='Creating+a+SQL+Server+mirror+on+an+existing+mirror'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/02/06/creating-a-sql-server-mirror-on-an-existing-mirror/' data-shr_title='Creating+a+SQL+Server+mirror+on+an+existing+mirror'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/02/06/creating-a-sql-server-mirror-on-an-existing-mirror/' data-shr_title='Creating+a+SQL+Server+mirror+on+an+existing+mirror'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/02/06/creating-a-sql-server-mirror-on-an-existing-mirror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Access Data Types</title>
		<link>http://www.smattie.com/2013/01/16/microsoft-access-data-types/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=microsoft-access-data-types</link>
		<comments>http://www.smattie.com/2013/01/16/microsoft-access-data-types/#comments</comments>
		<pubDate>Wed, 16 Jan 2013 08:01:58 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2042</guid>
		<description><![CDATA[As stated on Monday, I have started a series on different database types for various data programs. (Microsoft SQL Server, MY SQL and Access) My goal here is to document the different data types and categories that reflect basic information about them. This is the Microsoft Access Data Types (for old school reasons) Data type [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #333333;font-family: Georgia;font-size: 10pt">As stated on <a href="http://www.smattie.com/2013/01/14/sql-server-data-types/"><strong>Monday</strong></a>, I have started a series on different database types for various data programs. (Microsoft SQL Server, MY SQL and Access) My goal here is to document the different data types and categories that reflect basic information about them.<br />
</span></p>
<p><span style="color: #333333;font-family: Georgia;font-size: 10pt">This is the <strong>Microsoft Access Data Types</strong> (for old school reasons)<br />
</span></p>
<div>
<table style="border-collapse: collapse" border="0">
<col style="width: 349px" />
<col style="width: 387px" />
<col style="width: 93px" />
<tbody valign="top">
<tr style="height: 39px;background: #e5eecc">
<td style="padding-left: 7px;padding-right: 7px;border: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Data type</strong></span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: solid #c3c3c3 1.0pt;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Description</strong></span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: solid #c3c3c3 1.0pt;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Storage</strong></span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Text</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Use for text or combinations of text and numbers. 255 characters maximum</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"> </span></td>
</tr>
<tr style="height: 58px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Memo</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Memo is used for larger amounts of text. Stores up to 65,536 characters. <strong>Note:</strong> You cannot sort a memo field. However, they are searchable</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"> </span></td>
</tr>
<tr style="height: 21px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Byte</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Allows whole numbers from 0 to 255</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">1 byte</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Integer</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Allows whole numbers between -32,768 and 32,767</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">2 bytes</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Long</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Allows whole numbers between -2,147,483,648 and 2,147,483,647</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">4 bytes</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Single</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Single precision floating-point. Will handle most decimals</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">4 bytes</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Double</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Double precision floating-point. Will handle most decimals</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">8 bytes</span></td>
</tr>
<tr style="height: 58px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Currency</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Use for currency. Holds up to 15 digits of whole dollars, plus 4 decimal places. <strong>Tip:</strong> You can choose which country&#8217;s currency to use</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">8 bytes</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">AutoNumber</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">AutoNumber fields automatically give each record its own number, usually starting at 1</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">4 bytes</span></td>
</tr>
<tr style="height: 21px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Date/Time</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Use for dates and times</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">8 bytes</span></td>
</tr>
<tr style="height: 77px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Yes/No</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A logical field can be displayed as Yes/No, True/False, or On/Off. In code, use the constants True and False (equivalent to -1 and 0). <strong>Note:</strong> Null values are not allowed in Yes/No fields</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">1 bit</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Ole Object</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Can store pictures, audio, video, or other BLOBs (Binary Large OBjects)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">up to 1GB</span></td>
</tr>
<tr style="height: 21px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Hyperlink</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Contain links to other files, including web pages</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"> </span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Lookup Wizard</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Let you type a list of options, which can then be chosen from a drop-down list</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">4 bytes</span></td>
</tr>
</tbody>
</table>
</div>
<div class="shr-publisher-2042"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/01/16/microsoft-access-data-types/' data-shr_title='Microsoft+Access+Data+Types'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/01/16/microsoft-access-data-types/' data-shr_title='Microsoft+Access+Data+Types'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/01/16/microsoft-access-data-types/' data-shr_title='Microsoft+Access+Data+Types'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/01/16/microsoft-access-data-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Data Types</title>
		<link>http://www.smattie.com/2013/01/15/mysql-data-types/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-data-types</link>
		<comments>http://www.smattie.com/2013/01/15/mysql-data-types/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 08:01:36 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Data types]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2037</guid>
		<description><![CDATA[As stated yesterday, I have started a series on different database types for various data programs. (Microsoft SQL Server, MY SQL and Access) My goal here is to document the different data types and categories that reflect basic information about them. Here are the MySQL data types and the three main types are Text, Number, [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As stated <a href="http://www.smattie.com/2013/01/14/sql-server-data-types/"><strong>yesterday</strong></a>, I have started a series on different database types for various data programs. (Microsoft SQL Server, MY SQL and Access) My goal here is to document the different data types and categories that reflect basic information about them.</p>
<p>Here are the MySQL data types and the three main types are <strong>Text, Number, </strong>and<strong> Date/Time</strong> types:</p>
<div>
<table style="border-collapse: collapse" border="0">
<col style="width: 349px" />
<col style="width: 463px" />
<tbody valign="top">
<tr style="height: 21px;background: #e5eecc">
<td style="padding-left: 7px;padding-right: 7px;border: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Text Data type</strong></span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: solid #c3c3c3 1.0pt;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Description</strong></span></td>
</tr>
<tr style="height: 58px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">CHAR(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Holds a fixed length string (can contain letters, numbers, and special characters). The fixed size is specified in parenthesis. Can store up to 255 characters</span></td>
</tr>
<tr style="height: 96px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">VARCHAR(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Holds a variable length string (can contain letters, numbers, and special characters). The maximum size is specified in parenthesis. Can store up to 255 characters. <strong>Note:</strong> If you put a greater value than 255 it will be converted to a TEXT type</span></td>
</tr>
<tr style="height: 21px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">TINYTEXT</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Holds a string with a maximum length of 255 characters</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">TEXT</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Holds a string with a maximum length of 65,535 characters</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">BLOB</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">For BLOBs (Binary Large OBjects). Holds up to 65,535 bytes of data</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">MEDIUMTEXT</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Holds a string with a maximum length of 16,777,215 characters</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">MEDIUMBLOB</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">For BLOBs (Binary Large OBjects). Holds up to 16,777,215 bytes of data</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">LONGTEXT</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Holds a string with a maximum length of 4,294,967,295 characters</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">LONGBLOB</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">For BLOBs (Binary Large OBjects). Holds up to 4,294,967,295 bytes of data</span></td>
</tr>
<tr style="height: 57px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" rowspan="5"><span style="color: black;font-family: Verdana">ENUM(x,y,z,etc.)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Let you enter a list of possible values. You can list up to 65535 values in an ENUM list. If a value is inserted that is not in the list, a blank value will be inserted.</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana"><strong>Note:</strong> The values are sorted in the order you enter them.</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana">You enter the possible values in this format: ENUM(&#8216;X&#8217;,'Y&#8217;,'Z&#8217;)</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">SET</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Similar to ENUM except that SET may contain up to 64 list items and can store more than one choice</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Number Data type</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">Description</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">TINYINT(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">-128 to 127 normal. 0 to 255 UNSIGNED*. The maximum number of digits may be specified in parenthesis</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">SMALLINT(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">-32768 to 32767 normal. 0 to 65535 UNSIGNED*. The maximum number of digits may be specified in parenthesis</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">MEDIUMINT(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">-8388608 to 8388607 normal. 0 to 16777215 UNSIGNED*. The maximum number of digits may be specified in parenthesis</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">INT(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">-2147483648 to 2147483647 normal. 0 to 4294967295 UNSIGNED*. The maximum number of digits may be specified in parenthesis</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">BIGINT(size)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">-9223372036854775808 to 9223372036854775807 normal. 0 to 18446744073709551615 UNSIGNED*. The maximum number of digits may be specified in parenthesis</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">FLOAT(size,d)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A small number with a floating decimal point. The maximum number of digits may be specified in the size parameter. The maximum number of digits to the right of the decimal point is specified in the d parameter</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">DOUBLE(size,d)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A large number with a floating decimal point. The maximum number of digits may be specified in the size parameter. The maximum number of digits to the right of the decimal point is specified in the d parameter</span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">DECIMAL(size,d)</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A DOUBLE stored as a string , allowing for a fixed decimal point. The maximum number of digits may be specified in the size parameter. The maximum number of digits to the right of the decimal point is specified in the d parameter</span></td>
</tr>
</tbody>
</table>
</div>
<p>*The integer types have an extra option called UNSIGNED. Normally, the integer goes from a negative to positive value. Adding the UNSIGNED attribute will move that range up so it starts at zero instead of a negative number.</p>
<div>
<table style="border-collapse: collapse" border="0">
<col style="width: 349px" />
<col style="width: 463px" />
<tbody valign="top">
<tr style="height: 21px;background: #e5eecc">
<td style="padding-left: 7px;padding-right: 7px;border: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Date Data type</strong></span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: solid #c3c3c3 1.0pt;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana"><strong>Description</strong></span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" rowspan="3"><span style="color: black;font-family: Verdana">DATE()</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A date. Format: YYYY-MM-DD</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana"><strong>Note:</strong> The supported range is from &#8217;1000-01-01&#8242; to &#8217;9999-12-31&#8242;</span></td>
</tr>
<tr style="height: 38px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" rowspan="3"><span style="color: black;font-family: Verdana">DATETIME()</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">*A date and time combination. Format: YYYY-MM-DD HH:MM:SS</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana"><strong>Note:</strong> The supported range is from &#8217;1000-01-01 00:00:00&#8242; to &#8217;9999-12-31 23:59:59&#8242;</span></td>
</tr>
<tr style="height: 57px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" rowspan="3"><span style="color: black;font-family: Verdana">TIMESTAMP()</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">*A timestamp. TIMESTAMP values are stored as the number of seconds since the Unix epoch (&#8217;1970-01-01 00:00:00&#8242; UTC). Format: YYYY-MM-DD HH:MM:SS</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana"><strong>Note:</strong> The supported range is from &#8217;1970-01-01 00:00:01&#8242; UTC to &#8217;2038-01-09 03:14:07&#8242; UTC</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" rowspan="3"><span style="color: black;font-family: Verdana">TIME()</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A time. Format: HH:MM:SS</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 39px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana"><strong>Note:</strong> The supported range is from &#8216;-838:59:59&#8242; to &#8217;838:59:59&#8242;</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: solid #c3c3c3 1.0pt;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" rowspan="3"><span style="color: black;font-family: Verdana">YEAR()</span></td>
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black;font-family: Verdana">A year in two-digit or four-digit format.</span></td>
</tr>
<tr style="height: 20px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: none;border-right: solid #c3c3c3 1.0pt"><span style="color: black"> </span></td>
</tr>
<tr style="height: 58px;background: white">
<td style="padding-left: 7px;padding-right: 7px;border-top: none;border-left: none;border-bottom: solid #c3c3c3 1.0pt;border-right: solid #c3c3c3 1.0pt" valign="middle"><span style="color: black;font-family: Verdana"><strong>Note:</strong> Values allowed in four-digit format: 1901 to 2155. Values allowed in two-digit format: 70 to 69, representing years from 1970 to 2069</span></td>
</tr>
</tbody>
</table>
</div>
<p>*Even if DATETIME and TIMESTAMP return the same format, they work very differently. In an INSERT or UPDATE query, the TIMESTAMP automatically set itself to the current date and time. TIMESTAMP also accepts various formats, like YYYYMMDDHHMMSS, YYMMDDHHMMSS, YYYYMMDD, or YYMMDD.</p>
<div class="shr-publisher-2037"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/01/15/mysql-data-types/' data-shr_title='MySQL+Data+Types'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/01/15/mysql-data-types/' data-shr_title='MySQL+Data+Types'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/01/15/mysql-data-types/' data-shr_title='MySQL+Data+Types'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/01/15/mysql-data-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Data Types</title>
		<link>http://www.smattie.com/2013/01/14/sql-server-data-types/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-data-types</link>
		<comments>http://www.smattie.com/2013/01/14/sql-server-data-types/#comments</comments>
		<pubDate>Mon, 14 Jan 2013 09:17:29 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2031</guid>
		<description><![CDATA[I am going to start a series on different database types for various data programs. (Microsoft SQL Server, MY SQL and Access) My goal here is to document the different data types and categories that reflect basic information about them. For more detailed information, please see this article&#160;Data Types (Transact-SQL)&#160;&#160;and also Paul S. Randal did [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I am going to start a series on different database types for various data programs. (Microsoft SQL Server, MY SQL and Access) My goal here is to document the different data types and categories that reflect basic information about them.<br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">For more detailed information, please see this article&nbsp;<a href="http://msdn.microsoft.com/en-us/library/ms187752.aspx"><strong>Data Types (Transact-SQL)&nbsp;</strong></a><strong>&nbsp;</strong>and also Paul S. Randal did a great job as well with this article&nbsp;<a href="http://www.sqlskills.com/blogs/paul/inside-the-storage-engine-anatomy-of-a-record/"><strong>Inside the Storage Engine: Anatomy of a record</strong></a><br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">I am going to start with&nbsp;<span style="color: #c00000;"><strong>Microsoft SQL Server:</strong><span style="color: #333333;"><br />
</span></p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 291px;" />
<col style="width: 327px;" />
<col style="width: 216px;" />
<col style="width: 204px;" /></colgroup>
<tbody valign="top">
<tr style="height: 21px; background: #e5eecc;">
<td style="padding-left: 7px; padding-right: 7px; border: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Data type</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Description</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Storage</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Category</strong></span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">char(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Fixed-length character string. Maximum 8,000 characters</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">n bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Character Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">varchar(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Variable-length character string. Maximum 8,000 characters</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1 byte per character + 2 bytes overhead</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Character Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">varchar(max)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Variable-length character string. Maximum 1,073,741,824 characters</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1 byte per character + 2 bytes overhead</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Character Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>text</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Variable-length character string. Maximum 2GB of text data</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>1 byte per character + 2 bytes overhead</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Character Strings</strong></span></td>
</tr>
</tbody>
</table>
</div>
<p>Please see <span style="color: #c00000;"><strong>red&nbsp;</strong><span style="color: #333333;">below</span></span></p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 291px;" />
<col style="width: 327px;" />
<col style="width: 216px;" />
<col style="width: 204px;" /></colgroup>
<tbody valign="top">
<tr style="height: 21px; background: #e5eecc;">
<td style="padding-left: 7px; padding-right: 7px; border: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Data type</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Description</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Storage</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Category</strong></span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">nchar(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Fixed-length Unicode data. Maximum 4,000 characters</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">(2 x n bytes)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Unicode Character Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">nvarchar(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Variable-length Unicode data. Maximum 4,000 characters</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">&nbsp;</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Unicode Character Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">nvarchar(max)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Variable-length Unicode data. Maximum 536,870,912 characters</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">2x characters stored + 2 bytes overhead</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Unicode Character Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>ntext</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Variable-length Unicode data. Maximum 2GB of text data</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>&nbsp;</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Unicode Character Strings</strong></span></td>
</tr>
</tbody>
</table>
</div>
<p>Please see <span style="color: #c00000;"><strong>red&nbsp;</strong><span style="color: #333333;">below</span></span></p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 291px;" />
<col style="width: 327px;" />
<col style="width: 216px;" />
<col style="width: 204px;" /></colgroup>
<tbody valign="top">
<tr style="height: 21px; background: #e5eecc;">
<td style="padding-left: 7px; padding-right: 7px; border: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Data type</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Description</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Storage</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Category</strong></span></td>
</tr>
<tr style="height: 21px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">bit</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Allows 0, 1, or NULL</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1 byte for each 8 columns</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">binary(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Fixed-length binary data. Maximum 8,000 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">n bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Binary Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">varbinary(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Variable-length binary data. Maximum 8,000 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1 byte per character + 2 bytes overhead</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Binary Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">varbinary(max)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Variable-length binary data. Maximum 2GB</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1 byte per character + 2 bytes overhead</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Binary Strings</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>image</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Variable-length binary data. Maximum 2GB</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>&nbsp;</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Binary Strings</strong></span></td>
</tr>
</tbody>
</table>
</div>
<p><span style="color: #c00000;"><strong>Please note:&nbsp;</strong><strong>ntext , text, and image data types</strong><br />
</span>will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. <strong>Use nvarchar(max), varchar(max), and varbinary(max) instead.<br />
</strong></p>
<p>Source: <a href="http://msdn.microsoft.com/en-us/library/ms187993.aspx"><strong>SQL Server 2012 Books Online [Data Types (Transact-SQL)]</strong></a></p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 291px;" />
<col style="width: 327px;" />
<col style="width: 216px;" />
<col style="width: 204px;" /></colgroup>
<tbody valign="top">
<tr style="height: 21px; background: #e5eecc;">
<td style="padding-left: 7px; padding-right: 7px; border: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Data type</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Description</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Storage</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Category</strong></span></td>
</tr>
<tr style="height: 21px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">tinyint</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Allows whole numbers from 0 to 255</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1 byte</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">smallint</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Allows whole numbers between -32,768 and 32,767</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">2 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">int</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Allows whole numbers between -2,147,483,648 and 2,147,483,647</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">4 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 58px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">bigint</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Allows whole numbers between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">8 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="7"><span style="color: black; font-family: Verdana;">decimal(p,s)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Fixed precision and scale numbers.</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="7"><span style="color: black; font-family: Verdana;">5-17 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="7"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 38px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">Allows numbers from -10^38 +1 to 10^38 –1.</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 95px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">The p parameter indicates the maximum total number of digits that can be stored (both to the left and to the right of the decimal point). p must be a value from 1 to 38. Default is 18.</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 77px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">The s parameter indicates the maximum number of digits stored to the right of the decimal point. s must be a value from 0 to p. Default value is 0</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="7"><span style="color: black; font-family: Verdana;">numeric(p,s)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Fixed precision and scale numbers.</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="7"><span style="color: black; font-family: Verdana;">5-17 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="7"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 38px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">Allows numbers from -10^38 +1 to 10^38 –1.</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 95px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">The p parameter indicates the maximum total number of digits that can be stored (both to the left and to the right of the decimal point). p must be a value from 1 to 38. Default is 18.</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 77px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">The s parameter indicates the maximum number of digits stored to the right of the decimal point. s must be a value from 0 to p. Default value is 0</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">smallmoney</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Monetary data from -214,748.3648 to 214,748.3647</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">4 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 58px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">money</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Monetary data from -922,337,203,685,477.5808 to 922,337,203,685,477.5807</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">8 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Exact numerics</span></td>
</tr>
<tr style="height: 38px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="3"><span style="color: black; font-family: Verdana;">float(n)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Floating precision number data from -1.79E + 308 to 1.79E + 308.</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="3"><span style="color: black; font-family: Verdana;">4 or 8 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" rowspan="3"><span style="color: black; font-family: Verdana;">Approximate Numerics</span></td>
</tr>
<tr style="height: 20px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: none; border-right: solid #c3c3c3 1.0pt;"><span style="color: black;">&nbsp;</span></td>
</tr>
<tr style="height: 77px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;" valign="middle"><span style="color: black; font-family: Verdana;">The n parameter indicates whether the field should hold 4 or 8 bytes. float(24) holds a 4-byte field and float(53) holds an 8-byte field. Default value of n is 53.</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">real</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Floating precision number data from -3.40E + 38 to 3.40E + 38</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">4 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Approximate Numerics</span></td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 291px;" />
<col style="width: 327px;" />
<col style="width: 216px;" />
<col style="width: 204px;" /></colgroup>
<tbody valign="top">
<tr style="height: 21px; background: #e5eecc;">
<td style="padding-left: 7px; padding-right: 7px; border: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Data type</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Description</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Storage</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Category</strong></span></td>
</tr>
<tr style="height: 58px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">datetime</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">From January 1, 1753 to December 31, 9999 with an accuracy of 3.33 milliseconds</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">8 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Date and Time</span></td>
</tr>
<tr style="height: 58px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">datetime2</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">From January 1, 0001 to December 31, 9999 with an accuracy of 100 nanoseconds</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">6-8 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Date and Time</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">smalldatetime</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">From January 1, 1900 to June 6, 2079 with an accuracy of 1 minute</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">4 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Date and Time</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">date</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Store a date only. From January 1, 0001 to December 31, 9999</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">3 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Date and Time</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">time</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Store a time only to an accuracy of 100 nanoseconds</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">3-5 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Date and Time</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">datetimeoffset</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">The same as datetime2 with the addition of a time zone offset</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">8-10 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Date and Time</span></td>
</tr>
<tr style="height: 134px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>timestamp</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Stores a unique number that gets updated every time a row gets created or modified. The timestamp value is based upon an internal counter and does not correspond to real time. Each table may have only one timestamp variable</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>8 bytes</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: #c00000; font-family: Verdana;"><strong>Other</strong></span></td>
</tr>
</tbody>
</table>
</div>
<p><span style="color: #c00000;"><strong>Added for clarity:&nbsp;</strong></span></p>
<p>Each database has a counter that is incremented for each insert or update operation that is performed on a table that contains a timestamp column within the database. This <strong>counter&nbsp;</strong>is the database timestamp. This tracks a relative time within a database, not an actual time that can be associated with a clock</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms182776%28v=sql.90%29.aspx"><strong>SQL Server 2005 Books Online timestamp (Transact-SQL)&nbsp;</strong></a></p>
<p><strong>Please note:</strong></p>
<p>The <strong>timestamp</strong> syntax is deprecated. (It has been since SQL Server 2008 BOL) This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms182776.aspx"><strong>SQL Server 2012 Books Online (rowversion (Transact-SQL))</strong></a></p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 291px;" />
<col style="width: 327px;" />
<col style="width: 216px;" />
<col style="width: 204px;" /></colgroup>
<tbody valign="top">
<tr style="height: 21px; background: #e5eecc;">
<td style="padding-left: 7px; padding-right: 7px; border: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Data type</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Description</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Storage</strong></span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #c3c3c3 1.0pt; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;"><strong>Category</strong></span></td>
</tr>
<tr style="height: 58px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">sql_variant</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Stores up to 8,000 bytes of data of various data types, except text, ntext, and timestamp</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">8,016 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Other</span></td>
</tr>
<tr style="height: 21px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">uniqueidentifier</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Stores a globally unique identifier (GUID)</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">16 bytes</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Other</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">xml</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Stores XML formatted data. Maximum 2GB</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Up to 2 GB</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Other</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">cursor</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Stores a reference to a cursor used for database operations</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">N/A</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Other</span></td>
</tr>
<tr style="height: 58px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">table</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Stores a result-set for later processing</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Depends on number of rows stored and table definition</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Other</span></td>
</tr>
<tr style="height: 39px; background: white;">
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #c3c3c3 1.0pt; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">hierarchyid</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Stores a variable length, system data type to represent position in a hierarchy.</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">1-892 bytes + 2 bytes overhead</span></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: none; border-bottom: solid #c3c3c3 1.0pt; border-right: solid #c3c3c3 1.0pt;"><span style="color: black; font-family: Verdana;">Other</span></td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<div class="shr-publisher-2031"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/01/14/sql-server-data-types/' data-shr_title='SQL+Server+Data+Types'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/01/14/sql-server-data-types/' data-shr_title='SQL+Server+Data+Types'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/01/14/sql-server-data-types/' data-shr_title='SQL+Server+Data+Types'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/01/14/sql-server-data-types/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Go Irish!</title>
		<link>http://www.smattie.com/2013/01/07/go-irish/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=go-irish</link>
		<comments>http://www.smattie.com/2013/01/07/go-irish/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 19:11:20 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[BCS 2013]]></category>
		<category><![CDATA[Notre Dame]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2028</guid>
		<description><![CDATA[Tonight at 8:30 PM EST, the number one ranked Fighting Irish of Notre Dame take on the defending champion and number two tanked Crimson Tide of Alabama. My Irish are the underdogs by 10 points, but I believe they will win tonight. &#160; BCS Title Game Odds Favor Tide by 10. &#160;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Tonight at 8:30 PM EST, the number one ranked Fighting Irish of Notre Dame take on the defending champion and number two tanked Crimson Tide of Alabama. My Irish are the underdogs by 10 points, but I believe they will win tonight.</p>
<p>&nbsp;</p>
<p style="display: inline !important;"><a href="http://nbcsports.msnbc.com/id/50385661/ns/sports-college_football/"><strong>BCS Title Game Odds Favor Tide by 10.</strong></a></p>
<p>&nbsp;</p>
<div class="shr-publisher-2028"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2013/01/07/go-irish/' data-shr_title='Go+Irish%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2013/01/07/go-irish/' data-shr_title='Go+Irish%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2013/01/07/go-irish/' data-shr_title='Go+Irish%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2013/01/07/go-irish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preparing for interview loops</title>
		<link>http://www.smattie.com/2012/12/11/preparing-for-interview-loops/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=preparing-for-interview-loops</link>
		<comments>http://www.smattie.com/2012/12/11/preparing-for-interview-loops/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 08:01:28 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=2007</guid>
		<description><![CDATA[As usual, the views and opinions expressed in this article are mine and do not necessary state or reflect those of Microsoft. This is part two of this series and you can look at part one here to get caught up. Today, we will talk about getting ready for a hiring loop, which is basically a three-step [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #c00000; font-family: Georgia;"><strong>As usual, the views and opinions expressed in this article are mine and do not necessary state or reflect those of Microsoft.<br />
</strong></span></p>
<p><span style="font-family: Georgia;">This is <span style="color: #7030a0;"><strong>part two </strong></span>of this series and you can look at <span style="color: #7030a0;"><strong>part one</strong> </span><strong><a href="http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/">here</a> </strong>to get caught up.<br />
</span></p>
<p><span style="font-family: Georgia;">Today, we will talk about getting ready for a hiring loop, which is basically a three-step process consisting of a resume submission, a tech screen and interview.<br />
</span></p>
<p><span style="color: #c00000; font-family: Georgia;"><strong>Step 1 (Resume)<br />
</strong></span></p>
<p><span style="font-family: Georgia;">This is advice was originally intended for any company, but to allow me to be more creative, I am going to approach it as it you wanted to apply at<strong> <a href="http://www.microsoft.com">Microsoft</a> </strong>since that is a pretty recent experience in mind. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
<p><span style="font-family: Georgia;">If you are ready to apply, I strongly suggest that you consider using a Microsoft email address, such as from Outlook or Hotmail. Most companies like to see loyalty for their products, for example think of how GM would feel if you should up in a Ford or Volvo wanting to be a GM mechanic. It may not be the message that you want to send </span><strong style="font-family: Georgia;">sub-consciously</strong><span style="font-family: Georgia;">. Again, as noted yesterday,  all teams are different and some could care less, but I would play it safe so it does not even become an issue down the road to determine a tie breaker between candidates. Let&#8217;s be honest here, this whole process is about winning points for a team to make a decision on deciding the best candidate. I am sure that all of us want to be delivering a great message to help us obtain our goal.</span></p>
<p><span style="font-family: Georgia;">Before you submit your resume, take a moment to consider what you want it to say to a person evaluating where you would make a good candidate. If you are going for a contract or vendor role, then a traditional resume will work in most cases. This type of resume is where you list your jobs and a few bullet points that describe your functions. In fact most recruiters can only operate with that type of resume. </span></p>
<p><span style="font-family: Georgia;">However, if you seek a career at Microsoft, then <span style="color: #7030a0;"><strong>I recommend that you look at doing a Situation, Action and Results (SAR) type of resume </strong></span>that focuses more on your abilities with quantified results. In my opinion, this format allows you to quickly point out to a hiring decision maker that you are more than capable of their requests. A great place to start for some great interview tips is looking at this video from <a href="http://www.brentozar.com"><strong>Brent Ozar</strong></a> called <a href="6http://www.brentozar.com/archive/2012/10/resume-tune-up-video/"><strong>Resume Tune Up</strong></a>. They look at resumes from a manager&#8217;s perspective as they <span style="color: #7030a0;"><strong>glance </strong></span>at a resume to determine if a candidate should be in the hiring discussion. I like the approach that Brent and his team take to show you a before and after effect with resumes. They start off with the resume as it was submitted and then show you how they would submit it after making some changes.</span></p>
<h2>Resume Do&#8217;s and Don&#8217;ts</h2>
<p><strong><em>Do&#8230;</em></strong><strong></strong></p>
<ul>
<li>Focus on writing about your accomplishments in quantifiable terms. For example, &#8220;worked as test lead on three major product launches&#8221; or &#8220;increased sales in my division by 125% during FY98.”</li>
<li>Spend more time highlighting your relevant experience, as opposed to all previous work experience.</li>
<li>If you include an objective, make it straightforward, concise, and related to the job you are seeking.</li>
<li>Include your name, phone number, and e-mail name at the top of your resume. Managers or HR contacts may not have access to the Address Book when they need to reach you.</li>
<li>Provide a chronological view of your background, including dates and positions held. This does not necessarily have to be the primary focus, but most hiring managers prefer that this information be easily accessible.</li>
<li>List your educational background. This should be near the bottom for an experienced candidate.</li>
<li>Be concise. Keep your resume to one or two pages.</li>
<li>Use bullet points to describe your key skills, projects, and accomplishments. Ideally, keep each bullet point to one line.</li>
<li>Provide sufficient white space so that key skills, projects and accomplishments can be easily identified without having to read the entire resume.</li>
<li>Be clear as to how you used a technology if you list it. For example, &#8220;knowing VBScript&#8221; is not the same as &#8220;created a Web site using VBScript&#8221; and providing the URL.</li>
<li>Spell out acronyms and explain code names. Not everyone is aware of all projects and their components.</li>
<li>Print it out and have someone else proofread your hard-copy resume. The Spelling checker and grammar checker do not catch everything, and you see typos more readily on paper than you do on-screen.</li>
<li>Have your resume available both as a Word document and in ASCII text.</li>
<li>Please be sure to scan your resume for viruses.</li>
<li>If you are changing job functions or trying to stretch into a position that is quite different from your current role, include a summary of accomplishments at the top of your resume.  This summary should outline 5 to 10 reasons why you should be interviewed for the position. This takes time, but is an essential part of a targeted job search.</li>
<li>Indicate whether or not you are open to relocation.</li>
</ul>
<p><strong><em>Don&#8217;t&#8230;</em></strong><strong></strong></p>
<ul>
<li>Send out a resume with typos, misspellings, or grammatical errors.</li>
<li>Include salary or level information.</li>
<li>Indulge in long, detailed paragraphs.</li>
<li>Spend too much time on graphics or cool fonts.</li>
<li>Include extraneous information such as, &#8220;references provided upon request&#8221; or personal information.</li>
<li>Laundry lists of job duties, skills, or classes are not the best means to present your skills and background. Most hiring managers are not going to take the time to read through a long list of information.</li>
</ul>
<p><strong><em>SAR Resume</em></strong><strong></strong></p>
<p>The SAR resume highlights your greatest accomplishments in relation to the position you are targeting.</p>
<h5>Advantages</h5>
<ul>
<li>Immediately highlights your strengths.</li>
<li>Extremely flexible.</li>
<li>Maximizes your chances of catching a reader&#8217;s interest.</li>
<li>Easy to adapt to the targeted position without sacrificing quality.</li>
<li>Permits you to display originality in your ideas and manner of presentation.</li>
<li>Enables you to lead the reader in the direction in terms of specific skills and accomplishments.</li>
<li>Permits you to describe yourself in better marketing terms.</li>
</ul>
<h5>Disadvantages</h5>
<ul>
<li>A good SAR resume takes skill to put together.</li>
</ul>
<p><strong>This is an example of a traditional resume:</strong></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-2017" title="Traditional-deco-Large" src="http://cdn.smattie.com/wp-content/uploads/2012/12/Traditional-deco-Large.gif" alt="" width="581" height="748" /></p>
<p style="text-align: left;"><strong>This is an example of a </strong><strong>resume in the </strong><strong>SAR format :</strong></p>
<p style="text-align: center;"><strong></strong><img class="aligncenter  wp-image-2019" title="resume_SAR" src="http://cdn.smattie.com/wp-content/uploads/2012/12/resume_SAR.png" alt="" width="587" height="721" /></p>
<p style="text-align: left;"><span style="color: #c00000; font-family: Georgia;"><strong>Step 2 (Tech screen)<br />
</strong></span></p>
<p><span style="font-family: Georgia;">Look at the job description and see what skills they are looking for as an applicant. Make note of those and before you beginning preparing, look back on your career. You really do not want to come into a Microsoft interview prepared to play trivial pursuit, instead you should come in with the mindset that you are a leader who a good deal of experience. For example, if someone asks you how you does DNS work, instead of just saying it does this and it does that… take a moment to say to yourself, &#8220;It depends, what am I being asked to solve?&#8221; Then as you remember real life experiences, then you could say, that you can explain how it works in a perfect world and how it works in a real world keeping in mind how TTL&#8217;s can impact your changes. (<strong><a href="http://www.greenhills.co.uk/2011/06/22/elb-traffic-for-the-wrong-host.html">ELB traffic for the wrong host</a>)</strong><br />
</span></p>
<p><span style="font-family: Georgia;">The point that I am making is that you answer should <span style="color: #7030a0;"><strong>not </strong></span>only reflect what you know, but it should also highlight what you have learned from previous mistakes or over sights (like the different TTL&#8217;s example listed above) that will demonstrate both knowledge and experience. Another good thing to do is after you answer the question, take the extra step of talking about where you got that knowledge and point to it on your resume. For example, when I was at Amazon, I saw the TTL impact with ELB&#8217;s on a daily basis (before they made their current changes with the IP pool) and I will call that out and also some issues that I saw with this at Rackspace. This gives the interviewer a sense of where you been and what you learned, plus it gives you a both a chance to have a normal conversation. <strong>That is a key point in an interview that I feel many people miss when answering questions</strong>.<br />
</span></p>
<p><span style="font-family: Georgia;">An interview to me should feel like a good first date. I am comfortable, plus feel like I am talking and learning about the other person. I also want to know if we want the same results and would want to be together. Most of all, I just want to enjoy the moment and be entertained with the conversation. I do not want to feel intimidated, abused or any other negative feeling. I want to leave there with some desire to talk with them again.<br />
</span></p>
<p><span style="font-family: Georgia;"><strong><span style="color: #c00000;">Step 3 (In person interview)</span><br />
</strong></span></p>
<p><span style="font-family: Georgia;">Your interview should be the same message as your tech screen, but here you have more of a chance to elaborate on concepts. It is real important to pay attention to the discussion and find ways to share knowledge of past experience and exhibit your passion. I would find ways to look expand a conversation to help the interview process get a good handle on me. <span style="color: #7030a0;"><strong>For example, if they asked me what tools would I use to troubleshoot network connectivity…</strong></span> I would not just list the tools and be done with it. I would start off with a few tools, like ping/tracert, and then explain that I use them and what information it tells me. Then I explain a few scenarios where I used them in a previous position (or two) from my resume and where I ran into issues, like a network that drops ICMP traffic. (Where I had to use a TCP based version of those tools) Then I continue doing that with each tool. It tells the interviewer that I have knowledge, plus I know what to expect and that I also have regular experience with these tools. It opens the door to allow them to see how you think and what you have been doing.<br />
</span></p>
<p><span style="font-family: Georgia;">Again, the goal of any conversation to keep it interesting so both parties want to contribute, plus it takes the awkwardness off both people. It gives that opportunity to talk naturally and not focus on words on a piece of paper or stay in question mode. A normal conversation tells people so much more than a multiple choice test. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
</span></p>
<p><span style="font-family: Georgia;">I have been in interviews at many different places, where it did <strong>not</strong> go so well and I ended up spending a lot of time playing trivial pursuit or brain teaser questions. Needless to say, that did not leave either one of us in a position where we really wanted to talk with each other. It is much better at that point where both you and the hiring team are looking forward to their next interaction with you. Remember the 3 dates from my example <a href="http://http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/"><strong>yesterday</strong></a>? It is much better to leave knowing you have something to look forward too and be waiting to talk with them again.<br />
</span></p>
<p><span style="font-family: Georgia;">As usual, I hope this information helps you wherever you decide to pursue a career. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
</span></p>
<p>&nbsp;</p>
<div class="shr-publisher-2007"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/12/11/preparing-for-interview-loops/' data-shr_title='Preparing+for+interview+loops'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/12/11/preparing-for-interview-loops/' data-shr_title='Preparing+for+interview+loops'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/12/11/preparing-for-interview-loops/' data-shr_title='Preparing+for+interview+loops'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/12/11/preparing-for-interview-loops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Navigating Microsoft’s employment opportunities</title>
		<link>http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=navigating-microsofts-employment-opportunities</link>
		<comments>http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 08:01:57 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1982</guid>
		<description><![CDATA[Have you ever wanted to work at Microsoft Corporation, but was a little taken back by the process? One question that I have received a lot is what is it like to interview with Microsoft or what the environment is like or the sheer amount of contractors, etc. Some people have expressed interest in these opportunities and [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span><span style="font-family: Georgia;">Have you ever wanted to work at Microsoft Corporation, but was a little taken back by the process? One question that I have received a lot is what is it like to interview with Microsoft or what the environment is like or the sheer amount of contractors, etc. Some people have expressed interest in these opportunities and asked me on the best way to proceed. </span></span></p>
<p><span style="font-family: Georgia;"><strong><span style="color: #c00000;">Please note that the opinions and views expressed in this blog are those of the author and do not necessarily state or reflect those of Microsoft.</span><br />
</strong></span></p>
<p><span style="font-family: Georgia;">As usual, I pause <strong>before</strong> answering most questions (saying to myself &#8220;<strong><em>it depends</em></strong>&#8220;) by looking at what are you looking to achieve here? What is your background? Basically, I need to know what I am solving for you <strong>before</strong> answering that question. Dealing with those questions a few times with some friends, I thought I would give some of my experience, in case others may have a question or two. I will do a two-part series on this topic, which <strong>again</strong> is based on my <strong>personal</strong> experience and my own opinion. The first article os on what opportunities can be available, i.e. roles and the second blog will be more toward the &#8220;loop&#8221; process.<br />
</span></p>
<p><strong><span style="color: #c00000;">There are 4 types of roles offered:</span></strong></p>
<p><span style="font-family: Georgia;"><span style="color: #0070c0;"><strong>FTE</strong></span>: Full Time Employee (aka <span style="color: #0070c0;"><strong>Blue badge</strong></span>) is a vested employee who receives benefits and stock options from Microsoft. If you are seeking this avenue, you should have the focus of wanting a career and not trying to fulfill a position.<br />
</span></p>
<p><span style="font-family: Georgia;"><span style="color: #0070c0;"><strong>Intern</strong></span>: Normally for college students to allow them to get some experience and a feel for a career at Microsoft. They are <strong>not</strong> vested, but they enjoy a good number of perks like a FTE.<br />
</span></p>
<p><span style="font-family: Georgia;"><span style="color: #f79646;">A dash (aka A-): </span> Contractor who can work at Microsoft for a year (365 days) and then is terminated. They will need to take 100 days off before trying another contract position. This is a shorter window for you to leave a good impression. (Part of a measure to prevent future law suits)<br />
</span></p>
<p><span style="font-family: Georgia;"><span style="color: #f79646;"><strong>Vendor (aka V-):</strong></span> Somewhat like the contractor, (mentioned above) except you <span style="color: #c00000;"><strong>could </strong></span>work in this role for many years. It is seen as an outside company that has obtained a statement of work to perform a role or task for Microsoft.<br />
</span></p>
<p><span style="font-family: Georgia;">Both the contractor and vendor roles are also known as <span style="color: #f79646;"><strong>Contingent staff</strong></span>, which means that there is a <span style="color: #c00000;"><strong>risk </strong></span>that employment can end rather suddenly for various reasons. (Budget, fit, etc.) It should be noted that most times, Microsoft will only pay for contracts one year at a time to allow them flexibility in changing things to fit their needs. This is a very dynamic environment and you need to be able to deal with change easily to succeed here. Microsoft is not really a place where things are allowed to be static and never change. Things move at a good pace and there is tremendous opportunity to be a part of that.<br />
</span></p>
<p><span style="font-family: Georgia;">Now that we have the roles covered, let&#8217;s take briefly about the environments. I want to stress that Microsoft is very complex and has a lot of moving parts. Keep in mind that this is the company that designed <a href="http://technet.microsoft.com/en-us/library/bb727030.aspx"><strong>Active Directory</strong></a>  so it will be a very mature design. (Personally, I have yet to see another environment as massive)<br />
</span></p>
<p><span style="font-family: Georgia;">Since this is Microsoft and they have a lot of partners, you will see most, if not all, hardware manufactures represented at Microsoft. (i.e. HP, Dell, Lenovo, EMC, NetAPP, etc.) Be prepared to see a lot of servers and network devices in action in a lot of different environments. You will see production, pre-production environments (called <strong>stage</strong> in most other companies that I have been in) and many test (or dev) environments. There is a lot of things to manage and the best way I can sum it up best is to be prepared to take a few months to get to know all the moving pieces. I have been at a lot of big companies in my career. From my memory, you could take all the infrastructure of Amazon, Dell and HP/Compaq combined and it would still be small in comparison to Microsoft. It can be a bit overwhelming as you get started to develop a feel for how big environments are configured. No worries, just remember that <strong>Rome</strong> was not built in a day, so allow yourself a few weeks to learn things.<br />
</span></p>
<p><span style="font-family: Georgia;"><span style="color: #7030a0;"><strong>So, what is the point of why I called out the hardware environment?</strong><br />
</span>You should consider your background and how would your resume tell a hiring manager that you can handle these complex environments.<br />
</span></p>
<p><span style="font-family: Georgia;">Let&#8217;s talk about the other (and more important) environment at Microsoft… <span style="color: #7030a0;"><strong>the teams and people</strong></span>. A quick search on the web will show you that there are about <strong>94,000 employees</strong>. It is a large number and as expected, there will be a very diverse background and culture of people. With that being said, this is the first company that I have joined where each team has the potential to be <span style="color: #7030a0;"><strong>radically </strong></span>different. You could be in the same building and have everyone in the same department, but one side of the building will have much different personalities. Most companies of this size that I have been in (Amazon, Dell, HP, etc.) you may see different personalities, but for the most part you could generalize the type of person. For example, support personnel could be very friendly and follow very similar troubleshooting methods. Granted I am not saying everyone did the exact thing, but you could easily follow the logic. At Microsoft, it is hard to describe, but people are really different and you may be caught off guard by the way people may think about resolving issues.<br />
</span></p>
<p><span style="font-family: Georgia;">The point that I am making is that every time is very unique and has different needs, so a title of Systems Engineer will <strong>not</strong> mean the same job responsibilities for teams. Some teams may look at a Systems engineer like a Windows Admin, where another team sees it as a Project Manager or Developer Ops. This can make it a challenge when you interview, since most job postings for System Engineer will have the same words for what they are seeking. Do not be alarmed or worried, just do your best to find a position that interests you and if things change if you make it to an interview, oh well. Not all interviews will mean offerings and keep your head up that things happen for a reason, plus things have a way of straighten themselves out over time.<br />
</span></p>
<p><span style="font-family: Georgia;">A bit of advice, if you want to work at Microsoft and are having trouble getting a group&#8217;s attention or having difficulty with the tech screen or interview loop. My suggestion would be to look into going after an <span style="color: #f79646;"><strong>orange badge </strong></span>as a contractor. Yes, it is a risk and you have to respect the fact that you will be <span style="color: #f79646;"><strong>Contingent staff</strong></span>, which means that there is a <span style="color: #c00000;"><strong>risk</strong> </span>that employment can end rather suddenly for various reasons. However, it will give you an opportunity to see what the environment is like and a chance to see if you would enjoy the team. This option will also allow you a chance to determine if your skill sets are enough to do the job or if you need to grow in other areas. Most importantly, it gives you a try before you buy approach and a lot of the contractor companies do also offer regular benefits.<br />
</span></p>
<p><span style="font-family: Georgia;">If you are <strong>not</strong> able to take that route, then you should be prepared for some tough screening that will focus on <strong>both</strong> knowledge and experience. In most cases, you should count on a full day interviewing and have at least 5 different people talk with you to determine different aspects of the hiring process. During this process, they will look at basic things like fit, skill set, desire, etc. Keep in mind that all teams are different, so they will drill you in different ways, Some teams like using <a href="http://www.wikijob.co.uk/wiki/brain-teaser-questions"><strong>brain teasers</strong> </a>and some like asking real tough questions to help them evaluate you.<br />
</span></p>
<p><span style="font-family: Georgia;">Do <strong>not</strong> look at this process as having to be right or wrong in your answers, but instead pay attention to what they are asking you. A good answer in most situations is to ask a question to confirm what they are asking you to solve. You want to be able to demonstrate that you can comprehend and you get bonus points when you do the following:<br />
</span></p>
<ul>
<li><span style="font-family: Georgia;">Think on your feet to solve problems on the fly that are new to you or <strong>ambiguous</strong> in nature<br />
</span></li>
<li><span style="font-family: Georgia;">Provide answers to simple question, but also elaborate more details and point to your resume where you performed that function<br />
</span></li>
<li><span style="font-family: Georgia;">How engaged are you in the conversion and do you look for opportunities to insert yourself in the discussion<br />
</span></li>
</ul>
<p><span style="font-family: Georgia;">If you go to an interview like it is a <strong>test,</strong> that is seeking right and wrong answers, then you may want to reconsider your approach. Taking the lead in answering questions is always good, but also adding other details like what you would use certain tools and in previous experiences is huge. Ask yourself this question, which candidate would you hire?<br />
</span></p>
<ol>
<li><span style="font-family: Georgia;">Answers all questions correctly in a swift manner, but we have 10 minutes at the end where we do not speak and leave the process earlier<br />
</span></li>
<li><span style="font-family: Georgia;">Answer most questions correctly, but misses a few and we spend 10 minutes talking about other interests<br />
</span></li>
<li><span style="font-family: Georgia;">Answers every question and relates it to previous experience and takes the time to take me over his career as we discuss certain technical skills that helps me paint a picture of their growth.<br />
</span></li>
</ol>
<p><span style="font-family: Georgia;"><span style="color: #c00000;"><strong>If you have a hard time choosing candidate C, then look at it from a dating perspective as seen below:</strong><br />
</span></span></p>
<ol>
<li><span style="font-family: Georgia;">Answers all questions about themselves, but does not try to extend the conversation and seem to be more interested in the TV or menu than you<br />
</span></li>
<li><span style="font-family: Georgia;">Answers your question and says a few things that do not seem to add up, but does make an effort to keep talking with you<br />
</span></li>
<li><span style="font-family: Georgia;">Answers and stays highly engaged in your conversation and looks for a chance to start-up new topics with you<br />
</span></li>
</ol>
<p><span style="font-family: Georgia;">In the above examples, we have the first person, who is listening to you and just reacting to you, but is no making no effort to connect with you. Even though they answered all your questions does not mean they provided you with a good vibe. It would not surprise me if you had to leave early that they would not be more than willing to take that opportunity to leave and not have any plans to get back in touch with you. The second person was engaged in the conversation and tried to add to it, but it is clear that there is not a lot of common ground to keep the conversation slowing. It seems a bit awkward and not as comfortable. The last person was on the same page as us. They wanted to keep talking and had a lot of interests in us. If we had limited time to spend with only one person, most of us would pick the last person, because we felt more comfortable and we could not get enough of them. They left us wanting more, because we both had a desire to keep sharing the conversation.<br />
</span></p>
<p><span style="font-family: Georgia;">If you want the job (or the date) the best thing you can do is leave the people involved wanting more from you as you walk out the door. You want people to look forward to hearing from you and the sooner they can fulfill that desire, the better it looks for you. It is always nice when we are being actively pursued instead of waiting for them to contact us back.<br />
</span></p>
<p><span style="font-family: Georgia;">As usual, I hope this information helps you.</span></p>
<div class="shr-publisher-1982"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/' data-shr_title='Navigating+Microsoft%E2%80%99s+employment+opportunities'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/' data-shr_title='Navigating+Microsoft%E2%80%99s+employment+opportunities'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/' data-shr_title='Navigating+Microsoft%E2%80%99s+employment+opportunities'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/12/10/navigating-microsofts-employment-opportunities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1 year anniversary as a blogger</title>
		<link>http://www.smattie.com/2012/12/06/1-year-anniversary-as-a-blogger/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=1-year-anniversary-as-a-blogger</link>
		<comments>http://www.smattie.com/2012/12/06/1-year-anniversary-as-a-blogger/#comments</comments>
		<pubDate>Fri, 07 Dec 2012 05:19:56 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1975</guid>
		<description><![CDATA[Hard to imagine that a web site (this one) that I decided to put together is now 1-year-old. On December 6, 2011, I wrote my first article, which was called a Brief Introduction to Windows Azure and I was exposed to the world. After that first blog post, I continued to write many more articles with [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><em><strong>Hard to imagine that a web site (this one) that I decided to put together is now 1-year-old.</strong></em></p>
<p><span style="font-family: Georgia;">On December 6, 2011, I wrote my first article, which was called a <a href="http://www.smattie.com/2011/12/06/7/"><strong>Brief Introduction to Windows Azure</strong></a> and I was exposed to the world. After that first blog post, I continued to write many more articles with topics ranging from SQL to Windows to Cloud computing and even an article about the loss of life while celebrate the impact of a great man named <a href="http://www.smattie.com/2011/12/12/saying-farewell-to-tom-phillips-of-ec2-windows/"><strong>Tom Phillips</strong></a>.<br />
</span></p>
<p><span style="font-family: Georgia;">As I read that first article today, I am amazed at how much has changed this year. Please keep in mind that things have <strong>not</strong> changed only for me, but a lot has also happened in the computing world.<br />
</span></p>
<p><span style="font-family: Georgia;">This time last year, I was <span style="color: #7030a0;"><strong>only </strong></span>one year into the greater Seattle area <strong>and</strong> was an employee of Amazon Web Services. 4 months after my first article, I would take a <strong>risk</strong> by becoming a vendor (contractor) at Microsoft Corporation, <strong>instead</strong> of playing it safe by staying as a full-time employee with benefits. Today, I am at Microsoft as a blue badge (<strong>FTE</strong> or full-time employee) and am grateful for my past growth that has helped me get where I am today.<br />
</span></p>
<p><span style="font-family: Georgia;">Looking at my first article, I see that some of that information is out of date now, i.e. prices, offerings, etc. That is the challenge with the &#8220;cloud&#8221; or IT in general, it is always in constant change and motion. One way of doing, installing or administrating a server has now been replaced with a better and more efficient manner.<br />
</span></p>
<p><span style="font-family: Georgia;">Looking back this past year at technology, it is not hard to notice that Steve Jobs is no longer with us. I still remember some very powerful words of wisdom that he shared with Stanford graduates in 2005. It hit me when he passed away and again reminded me how precious this journey of life is meant to be fully embraced.<br />
</span></p>
<p><span style="font-family: Georgia;">Here are his words that have been burned into my brain:<br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><em>No one wants to die. Even people who want to go to heaven don&#8217;t want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life&#8217;s change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.<br />
</em></span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><em>Your time is limited, so don&#8217;t waste it living someone else&#8217;s life. Don&#8217;t be trapped by dogma — which is living with the results of other people&#8217;s thinking. Don&#8217;t let the noise of others&#8217; opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.<br />
</em></span></p>
<p><span style="color: #7030a0; font-family: Georgia;"><em>Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.<br />
</em></span></p>
<p><span style="font-family: Georgia;">For more information on the full speech, please read the following <a href="http://news.stanford.edu/news/2005/june15/jobs-061505.html"><strong>article</strong></a>.<br />
</span></p>
<p><span style="font-family: Georgia;">Most of the things in life that I have paid attention to this past year… has been all about change. Amazon&#8217;s offering in the cloud has changed to include dropping prices to help companies make a better investment to offering many more products or improving products to have more functionality. Again, nothing remain the way it was a year ago.<br />
</span></p>
<p><span style="font-family: Georgia;">It is really encouraging to see things get better and be a part of this change to make a difference. It is amazing to see how no job or product is really ever done. I used to think that we could get one thing done and keep it that way to improve it, but that is not the case today. Today, we are seeing more people replace hardware out in 3-4 years, instead of 5-6. Software upgrades are way more common. Past 4 years has seen 3 versions of SQL Server, from 2008 to 2008 R2 to 2012. <a href="http://technet.microsoft.com/en-us/library/cc917680.aspx"><strong>Database mirroring</strong></a>, which was introduced in SQL Server 2005 SP1, is now on the deprecation feature list to be replaced by a new feature in SQL Server 2012 called <a href="http://msdn.microsoft.com/en-us/library/ff877884.aspx"><strong>AlwaysOn</strong></a>!<br />
</span></p>
<p><span style="font-family: Georgia;"><em><strong>So what in the world am I talking about it?</strong> </em>Nothing really, I am just rambling and reflecting on how fast this past year went by, while also trying to figure out where the time went! <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
</span></p>
<p><span style="font-family: Georgia;">As I wind down my thoughts, I want to say how grateful for all of you that are either following my blog or used it to fix an issue. I want to say thank you for allowing me to <strong>give back</strong> to you as many others have given to me.<br />
</span></p>
<p><span style="font-family: Georgia;">As the years come to a close, I wish all of us a great year in 2013!<br />
</span></p>
<div class="shr-publisher-1975"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/12/06/1-year-anniversary-as-a-blogger/' data-shr_title='1+year+anniversary+as+a+blogger'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/12/06/1-year-anniversary-as-a-blogger/' data-shr_title='1+year+anniversary+as+a+blogger'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/12/06/1-year-anniversary-as-a-blogger/' data-shr_title='1+year+anniversary+as+a+blogger'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/12/06/1-year-anniversary-as-a-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorry for the silence&#8230;</title>
		<link>http://www.smattie.com/2012/12/04/sorry-for-the-silence/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sorry-for-the-silence</link>
		<comments>http://www.smattie.com/2012/12/04/sorry-for-the-silence/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 08:32:20 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1968</guid>
		<description><![CDATA[Hello everyone and I hope all is going well with you. Some of you may have been wondering where I went or trying to figure out the reason for my MIA status during the past month and a half.  This article will solve some of that mystery. A month ago I took a new job with [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hello everyone and I hope all is going well with you. Some of you may have been wondering where I went or trying to figure out the reason for my MIA status during the past month and a half.  This article will solve some of that mystery. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A month ago I took a new job with Microsoft. I went from a vendor role that was more hands on with servers and SQL to a Microsoft blue badge or <strong>Full Time Employee (FTE)</strong> role as a Crisis Manager dealing with service outages. There were various reasons for doing so, but most of all it was a good fit and an exciting opportunity with an excellent team to be a<strong> Service Engineer.</strong></p>
<p>I have really enjoyed being a part of the SQL community and contributing my little part. I still plan to blog about SQL Server and virtualization.</p>
<p>On another note&#8230; <strong>Go Irish!</strong> (College football BCS championship is 7 Jan 2013)</p>
<div class="shr-publisher-1968"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/12/04/sorry-for-the-silence/' data-shr_title='Sorry+for+the+silence...'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/12/04/sorry-for-the-silence/' data-shr_title='Sorry+for+the+silence...'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/12/04/sorry-for-the-silence/' data-shr_title='Sorry+for+the+silence...'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/12/04/sorry-for-the-silence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Upgrade SQL Server 2012 (RC) to Release (RTM)</title>
		<link>http://www.smattie.com/2012/10/12/how-to-upgrade-sql-server-2012-rc-to-release-rtm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-upgrade-sql-server-2012-rc-to-release-rtm</link>
		<comments>http://www.smattie.com/2012/10/12/how-to-upgrade-sql-server-2012-rc-to-release-rtm/#comments</comments>
		<pubDate>Fri, 12 Oct 2012 07:34:24 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1959</guid>
		<description><![CDATA[If you&#8217;ve been working with the Release Candidate (RC) version of SQL Server 2012 (formerly code-named &#8220;Denali&#8220;), you are likely aware that the final release is now available as an evaluation download here, or from MSDN with in the Standard, Business Intelligence, and Enterprise editions. If you want to perform a straight upgrade from the [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-size: 12pt;">If you&#8217;ve been working with the Release Candidate (RC) version of SQL Server 2012 (formerly code-named &#8220;<span style="color: red;"><strong>Denali</strong></span>&#8220;), you are likely aware that the final release is now available as an <a href="http://www.microsoft.com/download/en/details.aspx?id=29066"><span style="color: blue; text-decoration: underline;">evaluation download here</span></a>, or from <strong>MSDN</strong> with in the Standard, Business Intelligence, and Enterprise editions. If you want to perform a straight upgrade from the evaluation edition, it&#8217;s a relatively simple process. From the installation screen, select the <strong>Upgrade</strong> from a previous version of SQL Server option (even though it doesn&#8217;t list RC0, it is the same process as from say SQL 2008).<br />
</span></p>
<p><span style="font-size: 12pt;">The reason, which I bring up this issue, is that I had a set of VM&#8217;s that were configured with <strong>AlwaysOn</strong> running the RC version and the version was expired and gave the error message below:<br />
</span></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad1.png" alt="" /><span style="font-size: 12pt;"><br />
</span></p>
<p><span style="font-size: 12pt;"><strong>The reason for that error is that per the license agreement that you agreed to as part of the installation, the beta and RC time is limited to 180 days.<br />
</strong></span></p>
<p><span style="font-size: 12pt;">The good news is that you can get around it pretty easily. Run setup from your RTM version of SQL and then click the <span style="color: red;"><strong>installation </strong></span>tab on the left and select the <span style="color: red;"><strong>Upgrade </strong></span>option as seen below:<br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad2.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad2.png" alt="" width="561" height="421" /></a><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="font-size: 12pt;">Select all of the appropriate options for your installation, and your server will be upgraded pretty much like you would say during a service pack. </span></p>
<p><span><strong style="font-size: 12pt;">Please note:</strong> <em><span style="font-size: medium;">However, if you want to move from the release candidate or beta version (RC) to one of the licensed editions, you could run into trouble. In my testing, what has happened is that parts of the installation will upgrade properly, but others will fail. This can be seen from the instances screen when upgrade is run for a second time.</span></em><span style="font-family: Times New Roman;"><br />
</span></span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad3.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad3.png" alt="" width="571" height="428" /></a></p>
<p><span style="font-size: 12pt;">Unfortunately, the &#8220;left behind&#8221; instance will not be upgraded with the other components, and now that this has been run, the Edition upgrade function will fail to work as well. In one of my cases, I needed to do a complete SQL uninstall and then perform a reinstall. (Which is always fun) The <span style="color: red;"><strong>really </strong></span>good news is that the reinstall did work and the way to avoid this is to do the <span style="color: red;"><strong>Edition upgrade </strong></span>first. If you&#8217;re unfamiliar with this, you can find it on the <span style="color: red;"><strong>Maintenance </strong></span>tab of the SQL Server installation Center (as seen below)<br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad4.png"><img style="border: 0px;" src="http://cdn2.smattie.com/wp-content/uploads/2012/10/101212_0734_HowToUpgrad4.png" alt="" width="561" height="421" border="0" /></a><span style="font-size: 12pt;"><br />
</span></p>
<p><span style="font-size: 12pt;">Once you complete the edition upgrade, you can now go ahead and perform the standard upgrade as you would with the evaluation version.<br />
</span></p>
<div class="shr-publisher-1959"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/10/12/how-to-upgrade-sql-server-2012-rc-to-release-rtm/' data-shr_title='How+To%3A+Upgrade+SQL+Server+2012+%28RC%29+to+Release+%28RTM%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/10/12/how-to-upgrade-sql-server-2012-rc-to-release-rtm/' data-shr_title='How+To%3A+Upgrade+SQL+Server+2012+%28RC%29+to+Release+%28RTM%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/10/12/how-to-upgrade-sql-server-2012-rc-to-release-rtm/' data-shr_title='How+To%3A+Upgrade+SQL+Server+2012+%28RC%29+to+Release+%28RTM%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/10/12/how-to-upgrade-sql-server-2012-rc-to-release-rtm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VIDEO: VPC to VPC with OpenSWAN</title>
		<link>http://www.smattie.com/2012/10/08/video-vpc-to-vpc-with-openswan/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-vpc-to-vpc-with-openswan</link>
		<comments>http://www.smattie.com/2012/10/08/video-vpc-to-vpc-with-openswan/#comments</comments>
		<pubDate>Mon, 08 Oct 2012 07:01:27 +0000</pubDate>
		<dc:creator>Lance Byrd</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Lance]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[Lance Byrd]]></category>
		<category><![CDATA[OpenSWAN]]></category>
		<category><![CDATA[VPC]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1950</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Notes for VPC-to-VPC-with-OpenSWAN: yum install openswan chkconfig ipsec on *********************************************************** Singapore Setup [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">// <![CDATA[
jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "vpc-to-vpc-with-openswan-h264.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s21rf8q04m46kv.cloudfront.net/cfx/st",
        width: 480
    });
// ]]&gt;</script><br />
<strong>Notes for VPC-to-VPC-with-OpenSWAN:</strong><br />
yum install openswan<br />
chkconfig ipsec on</p>
<p>***********************************************************</p>
<p>Singapore Setup</p>
<p>Singapore OpenSWAN config:</p>
<p># /etc/ipsec.conf &#8211; Openswan IPsec configuration file<br />
#<br />
# Manual:     ipsec.conf.5<br />
#<br />
# Please place your own config files in /etc/ipsec.d/ ending in .conf</p>
<p>version 2.0     # conforms to second version of ipsec.conf specification</p>
<p>config setup<br />
     nat_traversal=yes<br />
     # we should exclude ourselves, but that&#8217;s dynamic.<br />
     # The other end should not be behind NAT anyway. If it is via port forward, avoid 10/8 that Amazon uses<br />
     virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/16<br />
     # amazon kernels have no KLIPS support<br />
     protostack=netkey</p>
<p>conn singapore-tokyo<br />
   authby=secret<br />
   auto=start<br />
   type=tunnel<br />
   left=172.16.0.100<br />
   leftid=x.x.x.x(EIP singapore)<br />
   leftsubnet=172.16.0.0/16<br />
   right=y.y.y.y (EIP Tokyo)<br />
   rightsubnet=10.0.0.0/16<br />
   ike=aes256-sha1;modp2048<br />
   phase2=esp<br />
   phase2alg=aes256-sha1;modp2048</p>
<p>&#8212;&#8212;&#8212;&#8212;-/etc/ipsec.secrets</p>
<p>#include /etc/ipsec.d/*.secrets<br />
x.x.x.x y.y.y.y: PSK &#8220;mysecret488&#8243;</p>
<p>*********************************************</p>
<p>Tokyo Setup</p>
<p># /etc/ipsec.conf &#8211; Openswan IPsec configuration file<br />
#<br />
# Manual:     ipsec.conf.5<br />
#<br />
# Please place your own config files in /etc/ipsec.d/ ending in .conf</p>
<p>version 2.0     # conforms to second version of ipsec.conf specification</p>
<p>config setup<br />
     nat_traversal=yes<br />
     # we should exclude ourselves, but that&#8217;s dynamic.<br />
     # The other end should not be behind NAT anyway. If it is via port forward, avoid 10/8 that Amazon uses<br />
     virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/16<br />
     # amazon kernels have no KLIPS support<br />
     protostack=netkey</p>
<p>conn singapore-tokyo<br />
   authby=secret<br />
   auto=start<br />
   type=tunnel<br />
   left=10.0.0.100<br />
   leftid=y.y.y.y (EIP Tokyo)<br />
   leftsubnet=10.0.0.0/16<br />
   right=x.x.x.x (EIP Singapore)<br />
   rightsubnet=172.16.0.0/16<br />
   ike=aes256-sha1;modp2048<br />
   phase2=esp<br />
   phase2alg=aes256-sha1;modp2048</p>
<p>&#8212;- /etc/ipsec.secrets</p>
<p>#include /etc/ipsec.d/*.secrets<br />
y.y.y.y  x.x.x.x: PSK &#8220;mysecret488&#8243;</p>
<p>****************************************************</p>
<p>service ipsec start</p>
<p>echo 1 > /proc/sys/net/ipv4/ip_forward (add to /etc/rc.local)<br />
iptables  &#8211;table nat &#8211;append POSTROUTING -s 172.16.0.0/16 &#8211;out-interface eth0 -j MASQUERADE (add to /etc/rc.local)<br />
(For Singapore 172.16.0.100 is you want this to be a NAT instance for access to the internet.)</p>
<p>iptables  &#8211;table nat &#8211;append POSTROUTING -s 10.0.0.0/16 &#8211;out-interface eth0 -j MASQUERADE<br />
(For Tokyo 10.16.0.100 is you want this to be a NAT instance for access to the internet.)</p>
<p>route add -net 10.0.0.0 netmask 255.255.0.0 gw 172.16.0.100 (For Tokyo instance in the same subnet as OpenSWAN instance)</p>
<p>Be sure to set SRC/DST to disabled on OpenSWAN instance. otherwise no forwarding to backend instances. To do this, right click on instance and select &#8220;Change Source/Dest Check&#8221;.</p>
<p>https://smattie-download.s3.amazonaws.com/OpenSWAN-Notes.txt</p>
<p>https://smattie-download.s3.amazonaws.com/VPC-to-VPC-via-OpenSWAN.png</p>
<div class="shr-publisher-1950"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/10/08/video-vpc-to-vpc-with-openswan/' data-shr_title='VIDEO%3A+VPC+to+VPC+with+OpenSWAN'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/10/08/video-vpc-to-vpc-with-openswan/' data-shr_title='VIDEO%3A+VPC+to+VPC+with+OpenSWAN'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/10/08/video-vpc-to-vpc-with-openswan/' data-shr_title='VIDEO%3A+VPC+to+VPC+with+OpenSWAN'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/10/08/video-vpc-to-vpc-with-openswan/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Extend Windows 2008 R2  &#8220;activation grace&#8221; period</title>
		<link>http://www.smattie.com/2012/10/04/extend-windows-2008-r2-activation-grace-period/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=extend-windows-2008-r2-activation-grace-period</link>
		<comments>http://www.smattie.com/2012/10/04/extend-windows-2008-r2-activation-grace-period/#comments</comments>
		<pubDate>Thu, 04 Oct 2012 07:01:02 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[activate]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[rearm]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1932</guid>
		<description><![CDATA[If you are like me, you might be testing new machines in a lab environment or making videos or blogs about new features. Virtualization has helped in numerous ways to facilitate this new learning. It helps to spin up new machines to test or validate these many different configurations. You also might be like me [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">If you are like me, you might be testing new machines in a lab environment or making videos or blogs about new features. Virtualization has helped in numerous ways to facilitate this new learning. It helps to spin up new machines to test or validate these many different configurations. You also might be like me in that you are <span style="color: #7030a0;"><strong>limited </strong><span style="color: #333333;">by the amount of software keys that you have access to activate Windows. Well, this post should help you moving forward.<br />
</span></span></span><br />
<span style="color: #333333; font-family: Georgia;"><span style="font-size: 10pt;">By default, Windows Server 2008 R2 does <span style="color: #7030a0;"><strong>not </strong><span style="color: #333333;">ask for a product key during setup and it will allow you to run <span style="color: #7030a0;"><strong>30 days for free </strong><span style="color: #333333;">before needing to be activated. However, you can continue to use it after a 30 day trial, but past that time, the system will eventually start to reboot every 2 hours or run with reduced functionalities the longer it runs <span style="color: #7030a0;"><strong>without </strong><span style="color: #333333;">being activated. If you want to extend that trial period, there are currently two workarounds that will <span style="color: #7030a0;">not <span style="color: #333333;">require you to implement a valid product key.</span></span></span></span></span></span></span></span></span><span style="font-size: 14pt;"><br />
</span></span></p>
<h3><span style="font-family: Georgia; font-size: 14pt;">&#8220;Rearm&#8221; Windows<br />
</span></h3>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">This first method will allow you to extend the &#8220;evaluation&#8221; period by. The evaluation period is also known as the &#8220;activation grace&#8221; period. Type in the following from an <span style="color: #7030a0;"><strong>elevated</strong><br />
<span style="color: #333333;">command prompt:<br />
</span></span></span></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/10/100412_0537_ExtendtheWi11.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/10/100412_0537_ExtendtheWi11.png" alt="" width="601" height="77" /></a><span style="color: #333333; font-family: Georgia; font-size: 10pt;"><br />
</span></p>
<p><span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"><strong><em>slmgr.vbs –rearm</em></strong><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;">This will <span style="color: #7030a0;"><strong><em>reset </em></strong></span>the activation expiration and the machine is good for <span style="color: #7030a0;"><strong>another </strong></span>30 days. You can do this <span style="color: #7030a0;"><strong>up to 3 times </strong></span>and get 120 days free trial in total. For more information about this command, please see this article: <a href="http://technet.microsoft.com/en-us/library/ff793433.aspx"><strong>Slmgr.vbs Options</strong></a><br />
</span></p>
<p><span style="font-family: Georgia; font-size: 10pt;"><strong>NOTE:</strong> If you are using <span style="color: #7030a0;"><strong>sysprep </strong></span>a lot with a base image and want to avoid this issue, please see this blog<span style="color: #c00000;"><strong>: <a href="http://blogs.technet.com/b/askcore/archive/2011/05/11/sysprep-skiprearm-and-image-build-best-practices.aspx">Sysprep, SkipRearm, and Image Build Best Practices</a></strong></span><br />
</span></p>
<h3><span style="font-family: Georgia; font-size: 14pt;">Windows Server 2008 R2 Editions 180 day Evaluation Keys<br />
</span></h3>
<p><span style="font-family: Georgia; font-size: 10pt;">The last option, which allows you with more flexibility, which I believe is the best way to proceed, is to enter a product key that will allow you to &#8220;<strong><em>evaluate</em></strong>&#8221; Windows 2008 R2 for 180 days. Here are the keys needed to allow you to run for free for 6 months:<br />
</span></p>
<h3><span style="font-family: Georgia; font-size: 10pt;">Windows Server 2008 R2 <span style="color: #c00000;">Web = <span style="color: #7030a0;">KBV3Q-DJ8W7-VPB64-V88KG-82C49</span></span></span></h3>
<h3>Windows Server 2008 R2 <span style="color: #c00000; font-family: Georgia; font-size: 10pt;">Standard = </span><span style="color: #7030a0;">4GGC4-9947F-FWFP3-78P6F-J9HDR</span></h3>
<h3>Windows Server 2008 R2<span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"> </span><span style="color: #c00000;">Enterprise = <span style="color: #7030a0;">7PJBC-63K3J-62TTK-XF46D-W3WMD</span></span></h3>
<h3>Windows Server 2008 R2<span style="color: #7030a0; font-family: Georgia; font-size: 10pt;"> </span><span style="color: #c00000;">Datacenter = <span style="color: #7030a0;">QX7TD-2CMJR-D7WWY-KVCYC-6D2YT </span></span></h3>
<p>When you are done, it will look like the following:<strong><br />
</strong></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/10/100412_0537_ExtendtheWi2.png" alt="" /></p>
<div class="shr-publisher-1932"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/10/04/extend-windows-2008-r2-activation-grace-period/' data-shr_title='Extend+Windows+2008+R2++%22activation+grace%22+period'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/10/04/extend-windows-2008-r2-activation-grace-period/' data-shr_title='Extend+Windows+2008+R2++%22activation+grace%22+period'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/10/04/extend-windows-2008-r2-activation-grace-period/' data-shr_title='Extend+Windows+2008+R2++%22activation+grace%22+period'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/10/04/extend-windows-2008-r2-activation-grace-period/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Update to an earlier article&#8230; Ola Recommendations for his script</title>
		<link>http://www.smattie.com/2012/09/26/update-to-an-earlier-article-ola-recommendations-for-his-script/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-to-an-earlier-article-ola-recommendations-for-his-script</link>
		<comments>http://www.smattie.com/2012/09/26/update-to-an-earlier-article-ola-recommendations-for-his-script/#comments</comments>
		<pubDate>Wed, 26 Sep 2012 08:19:37 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1900</guid>
		<description><![CDATA[Hey everyone, sorry for the delay in writing new content, but a lot of stuff has been going on for me. For the meantime, I will just say that the change of everyday life and the challenges (or opportunities depending on your point of view) that it will present you as we do our best to get [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">Hey everyone, sorry for the delay in writing new content, but a lot of stuff has been going on for me. For the meantime, I will just say that the change of everyday life and the challenges (or opportunities depending on your point of view) that it will present you as we do our best to get through it. Sometimes we are not prepared for them and it may overwhelm us at first.<br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">With that being said, it is good to be back and I am excited to provide an update about this great script.<br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">Today, I want to do 2 things&#8230; I would like to say thank you to <a href="http://ola.hallengren.com/"><span style="color: blue; text-decoration: underline;"><strong>Ola Hallengren</strong></span></a> for reaching out to me shortly after I wrote this <a href="http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/"><span style="color: blue; text-decoration: underline;"><strong>article</strong></span></a>. He was very pleasant and polite as he asked a very simple question that started our dialogue:<br />
</span></p>
<p><span style="color: red; font-family: Georgia; font-size: 10pt;"><span style="background-color: yellow;"><em>Could I just ask one thing. Why is it that you prefer <strong>not</strong> to verify the backup files?</em></span><br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;"> Once he said that I kind of already knew where he was going and over the course of a few emails he got me back on track. Which now leads me to my second point and I am going to correct that earlier information and share with you what I learned. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</span></p>
<p><span style="color: #333333; font-family: Georgia; font-size: 10pt;">First and foremost, it is highly recommended that you do a <a href="http://msdn.microsoft.com/en-us/library/ms189055.aspx"><span style="color: blue; text-decoration: underline;"><strong>checksum</strong> </span></a>on your backup as pointed out <a href="http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/"><span style="color: blue; text-decoration: underline;"><strong>here</strong></span></a>. It is also recommended that you do a <a href="http://msdn.microsoft.com/en-us/library/ms188902.aspx"><span style="color: blue; text-decoration: underline;"><strong>verify</strong> </span></a>as well and that is what I am going to correct in this article. With that being said I am going to create a do over with this topic and will highlight the new recommendations.<br />
</span></p>
<p>As with the same with the last time, I want to talk a little bit more about configuring his script in hopes that <strong><em>you don&#8217;t just download it</em></strong> and click execute <span style="color: #c00000;"><strong>without </strong></span>making some changes.</p>
<p><strong>Before even think about executing Ola&#8217;s maintenance script, I like to configure SQL server to turn on backup compression by default. </strong>This step is done to save disk space and I also turn on the <span style="color: #c00000;"><strong>advanced </strong></span>options of <span style="color: maroon; font-family: Courier New; font-size: 10pt;">sp_configure: </span>(Steps below)<strong><br />
</strong></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211; Change backup compression to be on<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: maroon;">sp_configure </span><span style="color: red;">&#8216;backup compression default&#8217;<span style="color: gray;">,</span> 1 <span style="color: blue;">reconfigure</span></span></span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Show advanced options </span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">EXEC </span><span style="color: maroon;">sp_configure <span style="color: blue;"><span style="color: red;">&#8216;show advanced option&#8217;<span style="color: gray;">,</span> &#8217;1&#8242;<br />
</span></span></span></span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">RECONFIGURE<br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO </span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211; Check settings<br />
</span></p>
<p><span style="color: maroon; font-family: Courier New; font-size: 10pt;">sp_configure<br />
</span></p>
<p><strong>It will return these results (<span style="color: red;">backup compression default</span>) when you are done: </strong>(1 is on and 0 is off)<span style="color: maroon; font-family: Courier New; font-size: 10pt;"><br />
</span></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane1.png" alt="" /></p>
<p>Before you begin modifying Ola&#8217;s scripts, I would suggest that you the <strong>SQL Server backup</strong> and <strong>Frequently Asked Questions</strong> sections. It will help you determine what to configure for your business needs. It is important to point out that the <strong>recommended</strong> order of the jobs is to do the <strong><em>index maintenance, then integrity check, and finally the backups</em></strong>. (I will point these out again)</p>
<p>So right off the bat, let&#8217;s look at the <strong>first</strong> area where we need to change in the script. The location of the backups and here is the default location: (<strong>Click on the image for a larger view</strong>)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane2.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane2.png" alt="" width="606" height="37" /></a></p>
<p>I changed mine to reflect where I wanted to back up to a Z drive and you will need to <strong>ensure</strong> the modified path exists: (<strong>Click on the image for a larger view</strong>)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane3.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane3.png" alt="" width="602" height="35" /></a></p>
<p>Then the next thing, I looked for was the retention period of backups and make sure that you meet your requirements. I noticed this comment in the SQL Server backup section &#8220;<em>Specify the time, in hours, after which the backup files are deleted. If no time is specified, then no backup files are deleted. Backup files are deleted after each database is backed up and verified. Backup files are deleted only if the backup and verification of the database were successful.</em>&#8221;</p>
<div>Please note that the stored procedure keeps the backups for the number of hours in the @CleanupTime parameter, regardless of the @Verify parameter. The only thing to note here is that if a backup or verify (if selected) fails, then no backup files are deleted.</div>
<p><strong>Here are the default settings: </strong>(Just search for checksum)</p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane4.png" alt="" /></p>
<p>These settings are left alone and <strong>no</strong> changes are needed. (<span style="color: red;"><strong>Different from original post</strong></span>)</p>
<p><strong>The last thing I do is order the steps. </strong> Stated earlier, the <strong>recommended</strong> order of the jobs is to do the <strong><em>index maintenance, then integrity check, and finally the backups</em></strong>.</p>
<p>The default settings are seen here:</p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane5.png" alt="" /></p>
<p><strong>To change them follow these steps:<br />
</strong></p>
<ul>
<li>
<div><strong>Search (</strong>Control –F)<strong> for <span style="color: #c00000;">DatabaseBackup &#8211; SYSTEM_DATABASES – FULL </span><br />
</strong></div>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane6.png" alt="" /><strong><br />
</strong></li>
<li><strong>Label the Index Job step 1<br />
</strong></li>
<li><strong>Label your Integrity checks as the next 2 steps<br />
</strong></li>
<li><strong>Label the other jobs accordingly<br />
</strong></li>
</ul>
<p><strong>When you are done following his recommendations then it should look like this:<br />
</strong></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane7.png" alt="" align="left" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><em><strong>NOTE: </strong>The above 3 steps are done to help you configure the scheduling easier in SQL Agent jobs.</em></p>
<p><strong>Please note that Ola makes these recommendations for frequency of running the jobs:<br />
</strong></p>
<p><span style="color: #c00000;"><strong>User databases:<br />
</strong></span></p>
<ul>
<li>Full backup one day per week</li>
<li>Differential backup all other days of the week</li>
<li>Transaction log backup every hour</li>
<li>Integrity check one day per week</li>
<li>Index maintenance one day per week</li>
</ul>
<p><span style="color: #c00000;"><strong>System databases:<br />
</strong></span></p>
<ul>
<li>Full backup every day</li>
<li>Integrity check one day a week</li>
</ul>
<p><span style="color: #c00000;"><strong>Cleanup:<br />
</strong></span></p>
<ul>
<li>sp_delete_backuphistory one day a week</li>
<li>sp_purge_jobhistory one day a week</li>
<li>CommandLog Cleanup one day a week</li>
<li>Output File Cleanup one day a week</li>
</ul>
<p>When you execute the script, it will create the jobs and as you will see later on, the numbering did in fact help us when we schedule the jobs, since it will be in the correct order:</p>
<p><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane8.png" alt="" /></p>
<p>Please note that all of these jobs are configured with <strong>no</strong> schedules, so you will need to create them. Here is how the jobs look:</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane9.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane9.png" alt="" width="562" height="129" /></a></p>
<p>The last step is to configure the jobs to run with either his recommendations or modifying those recommendations to fit your needs. I have swapped out all of my old scripts in favor of his scripts and I have been really impressed with the results.</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane10.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane10.png" alt="" width="562" height="491" /></a></p>
<p><strong>The last thing to do is configure your backup retention for your current polices. <span style="color: red;">Here is the default setting:</span><br />
</strong></p>
<p><em>sqlcmd -E -S $(ESCAPE_SQUOTE(SRVR)) -d master -Q &#8220;EXECUTE [dbo].[DatabaseBackup] @Databases = &#8216;SYSTEM_DATABASES&#8217;, @Directory = N&#8217;Z:\Backups&#8217;, @BackupType = &#8216;FULL&#8217;, @Verify = &#8216;Y&#8217;, @CleanupTime = 24, @CheckSum = &#8216;Y&#8217;, @LogToTable = &#8216;Y&#8217;&#8221; -b<br />
</em></p>
<p>For a <strong>one week</strong> retention period, you will need to use <span style="color: red;"><strong>168</strong></span>, which is <span style="color: red;"><strong>7 *24</strong></span>.</p>
<p><em>sqlcmd -E -S $(ESCAPE_SQUOTE(SRVR)) -d master -Q &#8220;EXECUTE [dbo].[DatabaseBackup] @Databases = &#8216;SYSTEM_DATABASES&#8217;, @Directory = N&#8217;Z:\Backups&#8217;, @BackupType = &#8216;FULL&#8217;, @Verify = &#8216;Y&#8217;, @CleanupTime = <span style="color: red;"><strong>168</strong></span>, @CheckSum = &#8216;Y&#8217;, @LogToTable = &#8216;Y&#8217;&#8221; -b<br />
</em></p>
<p><strong>That is all you need to do here to keep you 1 week worth of data and now you also get a verify of your backup as well. </strong>The mistake that I made earlier was reading this information and coming away with a different understanding: (<strong>Click on the image for a larger view</strong>)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane11.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_Updatetoane11.png" alt="" width="805" height="80" /></a></p>
<p>I thought that meant that as long as you are not verifying the backup then it will not remove files, since it needed to do <strong>both</strong> a backup and verification. It was much simpler than that… all you need to do was modify the job and then set the cleanup time as desired. Lucky for me, Ola caught this and shared this bit of wisdom.</p>
<p><span style="color: black; font-size: 11pt; background-color: white;"><em>In general you should modify/add parameters in the jobs. You should not change the default values in the stored procedures.</em>- <strong>Ola Hallengren</strong></span></p>
<div class="shr-publisher-1900"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/09/26/update-to-an-earlier-article-ola-recommendations-for-his-script/' data-shr_title='Update+to+an+earlier+article...+Ola+Recommendations+for+his+script'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/09/26/update-to-an-earlier-article-ola-recommendations-for-his-script/' data-shr_title='Update+to+an+earlier+article...+Ola+Recommendations+for+his+script'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/09/26/update-to-an-earlier-article-ola-recommendations-for-his-script/' data-shr_title='Update+to+an+earlier+article...+Ola+Recommendations+for+his+script'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/09/26/update-to-an-earlier-article-ola-recommendations-for-his-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introduction to SQL Server Recovery Advisor</title>
		<link>http://www.smattie.com/2012/09/06/introduction-to-sql-server-recovery-advisor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=introduction-to-sql-server-recovery-advisor</link>
		<comments>http://www.smattie.com/2012/09/06/introduction-to-sql-server-recovery-advisor/#comments</comments>
		<pubDate>Thu, 06 Sep 2012 07:01:21 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1801</guid>
		<description><![CDATA[Backup and more importantly Restore operations are essential database maintenance tasks. I think Buck Woody said it best; we do not have a backup strategy as much as a restore strategy that defines our worth to an organization. You can watch his comment here Session1: Blitz! SQL Server Takeovers Having a good backup and restore plan in [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia;">Backup and <strong>more</strong> importantly <span style="color: #c00000;"><strong>Restore </strong></span>operations are essential database maintenance tasks. I think Buck Woody said it best; we do <strong>not</strong> have a backup strategy as much as a <span style="color: #c00000;"><strong>restore </strong></span>strategy that defines our worth to an organization. You can watch his comment here <a href="http://sqlserverpedia.com/wiki/SQL_Server_Training">Session1: Blitz! SQL Server Takeovers</a><br />
</span></p>
<p><span style="font-family: Georgia;">Having a good backup and restore plan in place helps Database professionals to restore from <span style="text-decoration: underline;"><strong>any failure</strong></span> in a very efficient way. In order to recover from a failure, you will need to restore a set of backups in a logically correct and meaningful sequence. (I will also state an old wise tale… <strong><em>practice makes perfect</em></strong>, so it is recommended that you test your restore strategy as much as possible) SQL server provides a bunch of backup types (<strong>Full, Differential, Copy only</strong>, etc.), creating a correct recovery sequence for a given point in time can be a tricky task depending on your level of <strong>alertness</strong>. (i.e. Being woke up at 2 or 3 AM with the database on fire is <strong>not</strong> a very pleasant experience) Add to this the complexity of having multiple fork scenarios or the fact that there can be multiple correct recovery plans with vastly different runtime costs. The task of creating an optimal and correct recovery sequence can get very complicated real fast.<br />
</span></p>
<p><span style="font-family: Georgia;">In order to address this problem, SQL Server Management Studio (SSMS) in <strong>SQL 2012</strong> has designed a tool called the &#8220;<span style="color: #c00000;"><strong>Recovery Advisor</strong></span>&#8220;. Recovery Advisor helps in creating a correct and optimal restore sequence. I will highlight the features of recovery advisor that are going to make life easier during database restores.<br />
</span></p>
<p><span style="font-family: Georgia;">In order to play around with recovery advisor, let us first create a database and then take some backups of this new database. The following script creates a database and then takes a full back up, then a differential backup and then a transaction log backup. It then <strong>restores</strong> the database to differential backup and then takes a transaction log back up again.<br />
</span></p>
<p><span style="color: green; font-family: Consolas; font-size: 9pt;">&#8211;Create Database</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">create </span><span style="color: blue;">database </span><span style="color: teal;">test_recovery_fork </span></span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">GO</span></p>
<p><span style="color: green; font-family: Consolas; font-size: 9pt;">&#8211;Create a Table in the Database</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">use </span><span style="color: teal;">test_recovery_fork </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO</span><br />
</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">create </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">table </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">t </span><span style="color: gray; font-family: Consolas; font-size: 9pt;">(</span><span style="color: teal;">c </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">int</span><span style="color: gray;">) </span></p>
<p><span style="color: #0000ff; font-family: Consolas; font-size: 12px;">GO</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Back up Database (dif)</span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">BACKUP </span><span style="color: blue;">DATABASE </span><span style="color: teal;">[test_recovery_fork] </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">TO </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;C:\Backup\Test_recovery_fork\test_recovery_fork.bak&#8217;</span><br />
</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">WITH </span><span style="color: blue;">NOFORMAT<span style="color: gray;">, </span><span style="color: teal;">NAME </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;test_recovery_fork-Full Database Backup&#8217;<span style="color: gray;">, </span><br />
<span style="color: blue;">SKIP<span style="color: gray;">,</span> NOREWIND<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10 </span></span></span></span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">GO</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Insert changes</span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">insert </span><span style="color: blue;">into </span><span style="color: teal;">t </span><span style="color: blue;">values <span style="color: gray;">(</span>1<span style="color: gray;">) </span></span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Back up Database </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">BACKUP </span><span style="color: blue;">DATABASE </span><span style="color: teal;">[test_recovery_fork] </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">TO </span><span style="color: blue;">DISK </span><span style="color: gray;">=</span> <span style="color: red;">N&#8217;C:\Backup\Test_recovery_fork\test_recovery_fork.dif&#8217;</span><br />
</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">WITH </span><span style="color: blue;">DIFFERENTIAL</span><span style="color: gray;">, </span><span style="color: blue;">NOFORMAT<span style="color: gray;">, </span><span style="color: teal;">NAME </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;test_recovery_fork-Differential Database Backup&#8217;<span style="color: gray;">,</span><br />
<span style="color: blue;">SKIP<span style="color: gray;">,</span> NOREWIND<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10 </span></span></span></span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">GO </span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Insert more changes </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">insert </span><span style="color: blue;">into </span><span style="color: teal;">t </span><span style="color: blue;">values <span style="color: gray;">(</span>2<span style="color: gray;">) </span></span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Wait for a minute and then back up the log  </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">BACKUP </span><span style="color: fuchsia;">LOG </span><span style="color: teal;">[test_recovery_fork] </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">TO </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;C:\Backup\Test_recovery_fork\test_recovery_fork.trn&#8217;</span><br />
</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">WITH </span><span style="color: blue;">NOFORMAT<span style="color: gray;">, </span><span style="color: teal;">NAME </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;backup_ test_recovery_fork -Transaction Log Backup&#8217;<span style="color: gray;">,</span><br />
<span style="color: blue;">SKIP<span style="color: gray;">,</span> NOREWIND<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span></span></span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO</span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Recover to the differential backup.</span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">USE </span><span style="color: teal;">[master]  </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">ALTER </span><span style="color: blue;">DATABASE </span><span style="color: teal;">[test_recovery_fork] </span><span style="color: blue;">SET </span><span style="color: blue;">SINGLE_USER </span><span style="color: blue;">WITH </span><span style="color: blue;">ROLLBACK </span><span style="color: blue;">IMMEDIATE </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO</span><br />
</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">RESTORE </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">DATABASE </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">[test_recovery_fork] </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">FROM </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">DISK </span><span style="color: gray; font-family: Consolas; font-size: 9pt;">= </span><span style="color: red; font-family: Consolas; font-size: 9pt;">N&#8217;C:\Backup\Test_recovery_fork\test_recovery_fork.bak&#8217;</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 5 </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO</span><br />
</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">RESTORE </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">DATABASE </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">[test_recovery_fork] </span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">FROM </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">DISK </span><span style="color: gray; font-family: Consolas; font-size: 9pt;">= </span><span style="color: red; font-family: Consolas; font-size: 9pt;">N&#8217;C:\Backup\Test_recovery_fork\test_recovery_fork_dif.bak&#8217;</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">,</span> <span style="color: blue;">NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 5  </span></span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">GO</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;"><br />
</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">ALTER </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">DATABASE </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">[test_recovery_fork] </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">SET </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">MULTI_USER</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: green;">&#8211;Insert more changes</span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">use </span><span style="color: teal;">test_recovery_fork  </span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO</span><br />
</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">insert </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">into </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">t </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">values </span><span style="color: gray;">(</span><span style="color: blue; font-family: Consolas; font-size: 9pt;">3</span><span style="color: gray;">)</span></p>
<p><span style="color: green; font-family: Consolas; font-size: 9pt;">&#8211;Backup Log with new changes</span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">BACKUP </span><span style="color: fuchsia; font-family: Consolas; font-size: 9pt;">LOG </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">[test_recovery_fork] </span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">TO </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">DISK </span><span style="color: gray; font-family: Consolas; font-size: 9pt;">= </span><span style="color: red; font-family: Consolas; font-size: 9pt;">N&#8217;C:\Backup\Test_recovery_fork\test_recovery_fork2.trn&#8217; </span></p>
<p><span style="color: blue; font-family: Consolas; font-size: 9pt;">WITH </span><span style="color: blue; font-family: Consolas; font-size: 9pt;">NOFORMAT</span><span style="color: gray;">,</span><span style="color: blue; font-family: Consolas; font-size: 9pt;"> NOINIT</span><span style="color: gray;">, </span><span style="color: teal; font-family: Consolas; font-size: 9pt;">NAME </span><span style="color: gray; font-family: Consolas; font-size: 9pt;">= </span><span style="color: red; font-family: Consolas; font-size: 9pt;">N&#8217;test_recovery_fork-Transaction Log Backup&#8217;</span><span style="color: gray;">,</span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;"><span style="color: red;"> <span style="color: blue;">SKIP<span style="color: gray;">,</span> NOREWIND<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10 </span></span></span></span></p>
<p><span style="font-family: Consolas; font-size: 9pt;"><span style="color: blue;">GO</span><br />
</span></p>
<p>At this point, we now have <strong>4 backups</strong> (1 Full, 1 Differential and 2 Log backups) for &#8220;fork scenario.&#8221; These backups form a basic fork configuration (where we have 2 possible point in time restores) as noted with the <strong>2 different .trn transaction log backups</strong>.</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio1.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio1.png" alt="" width="594" height="114" /></a></p>
<p>To open recovery advisor, go to the database node &#8220;<span style="color: teal; font-family: Consolas; font-size: 9pt;">test_recovery_fork</span>&#8221; in the Object Explorer, you can hit F7 or go to View and Select Object Explorer Details (as Seen Below)</p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio2.png" alt="" /></p>
<p>Now in Object Explorer, you can<strong> right</strong> click, then go to <strong>tasks</strong>, go to <strong>restore</strong> and click on <strong>database</strong>. (See below)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio3.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio3.png" alt="" width="603" height="192" /></a></p>
<p>This will open the <strong>Restore Database</strong> dialog:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio4.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio4.png" alt="" width="562" height="477" /></a></p>
<p>By default, the recovery advisor tries to restore the database to the last backup taken. In this case it&#8217;s the second log backup. Look closely to the restore plan generated, which is to restore the full backup then the differential backup and finally a log backup.</p>
<p>Observe that the time of log backup (as seen <strong>below</strong>) is <strong>1:41</strong>, i.e. this is the second log backup as the first log backup occurred at <strong>1:39</strong>. (Seen <strong>above</strong> with the 4 backups taken) Thus, when we want to restore &#8216;<span style="color: teal; font-family: Consolas; font-size: 9pt;">test_recovery_fork</span>&#8216; recovery advisor is (<span style="color: #c00000;"><strong>by default</strong></span>) giving us a correct restore sequence to the last backup taken (taking into consideration the restore that we had performed earlier).</p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio5.png" alt="" /></p>
<p>In most scenarios, that might be the correct plan of action, but what if we do <strong>not</strong> want to restore to the last backup, but want to do a point in time restore? Well that&#8217;s exactly what the new &#8216;<span style="color: #c00000;"><strong>Timeline</strong></span>&#8216; feature will allow you to perform.</p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio6.png" alt="" /></p>
<p>For example, let&#8217;s say that you want to restore to a specific point in time, like just after the differential backup, but before any of the log backups.</p>
<p>Click the timeline button of the restore dialog and it will open up the backup timeline dialog. The time line will show the different backups taken so far. In order to, give a specific time for database restore, check the &#8216;<span style="color: #c00000;"><strong>Specific date and time</strong></span>&#8216; radio button.</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio7.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio7.png" alt="" width="587" height="319" /></a></p>
<p>This will enable the date and time input boxes, along with the <span style="color: #c00000;"><strong>slider </strong></span>given below the timeline.</p>
<p><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio8.png" alt="" /></p>
<p>We can either directly choose the date/time that we want or we can use the slider to choose a location relative to the backups taken. Drag the slider to a point just after the differential backup (but <strong>before</strong> the first log backup).</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio9.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio9.png" alt="" width="565" height="305" /></a></p>
<p>Click <strong>OK</strong>.</p>
<p>Now we have a different restore plan that <span style="color: #c00000;"><strong>only </strong></span>involves the <span style="color: #c00000;"><strong>differential </strong></span>backup plan and nothing else. In this case, the transaction log backups were already included as a part of differential backup recovery and were ignored.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio10.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/082712_0311_Introductio10.png" alt="" width="562" height="480" /></a></p>
<p>All in all, I found that the recovery advisor is a handy tool that is able to create optimal recovery plans for a given point in time. It makes the task of restoring a database less painful.</p>
<div class="shr-publisher-1801"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/09/06/introduction-to-sql-server-recovery-advisor/' data-shr_title='Introduction+to+SQL+Server+Recovery+Advisor'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/09/06/introduction-to-sql-server-recovery-advisor/' data-shr_title='Introduction+to+SQL+Server+Recovery+Advisor'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/09/06/introduction-to-sql-server-recovery-advisor/' data-shr_title='Introduction+to+SQL+Server+Recovery+Advisor'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/09/06/introduction-to-sql-server-recovery-advisor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OLA Recommendations for his script</title>
		<link>http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ola-recommendations-for-his-script</link>
		<comments>http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/#comments</comments>
		<pubDate>Tue, 04 Sep 2012 07:01:20 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1843</guid>
		<description><![CDATA[In an earlier article, I spoke about Ola Hallengren&#8217;s highly recommended database maintenance scripts. Today, I want to talk a little bit more about configuring his script in hopes that you don&#8217;t just download it and click execute without making some changes. Before I even think about executing Ola&#8217;s maintenance script, I configure SQL server to [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In an earlier <a href="http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren"><strong>article</strong></a>, I spoke about Ola Hallengren&#8217;s highly recommended database maintenance scripts. Today, I want to talk a little bit more about configuring his script in hopes that <strong><em>you don&#8217;t just download it</em></strong> and click execute <span style="color: #c00000;"><strong>without </strong></span>making some changes.</p>
<p><strong>Before I even think about executing Ola&#8217;s maintenance script, I configure SQL server to turn on backup compression by default. </strong>This step is done to save disk space and I also turn on the <span style="color: #c00000;"><strong>advanced </strong></span>options of <span style="color: maroon; font-family: Courier New; font-size: 10pt;">sp_configure: </span>(Steps below)<strong><br />
</strong></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211; Change backup compression to be on<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: maroon;">sp_configure </span><span style="color: red;">&#8216;backup compression default&#8217;<span style="color: gray;">,</span> 1 <span style="color: blue;">reconfigure</span></span></span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211;Show advanced options </span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">EXEC </span><span style="color: maroon;">sp_configure <span style="color: blue;"><span style="color: red;">&#8216;show advanced option&#8217;<span style="color: gray;">,</span> &#8217;1&#8242;<br />
</span></span></span></span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">RECONFIGURE<br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO</span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211; Check settings<br />
</span></p>
<p><span style="color: maroon; font-family: Courier New; font-size: 10pt;">sp_configure<br />
</span></p>
<p><strong>It will return these results when you are done: </strong>(1 is on and 0 is off)<span style="color: maroon; font-family: Courier New; font-size: 10pt;"><br />
</span></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen12.png" alt="" /></p>
<p>Before you <strong>begin</strong> modifying Ola&#8217;s scripts, I would suggest that you read the <a href="http://ola.hallengren.com/sql-server-backup.html"><strong>SQL Server backup</strong></a> and <a href="http://ola.hallengren.com/frequently-asked-questions.html"><strong>Frequently Asked Questions</strong></a> sections. It will help you determine what to configure for your business needs. It is important to point out that the <strong>recommended</strong> order of the jobs is to do the <strong><em>index maintenance, then integrity check, and finally the backups</em></strong>. (I will point these out again)</p>
<p>So right off the bat, let&#8217;s look at the <strong>first</strong> area where we need to make changes in the script. The location of the backups and here is the default location: <strong>(Click on image for larger view)</strong></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen21.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen21.png" alt="" width="606" height="37" /></a></p>
<p>I changed mine to reflect where I wanted to back up to a Z drive and you will need to <strong>ensure</strong> the modified path exists: <strong>(Click on image for larger view)</strong></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen31.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen31.png" alt="" width="602" height="35" /></a></p>
<p>Then the next thing, I looked for was the retention period of backups and make sure that you meet your requirements. I noticed this comment in the <a href="http://ola.hallengren.com/sql-server-backup.html"><strong>SQL Server backup</strong></a> section</p>
<blockquote><p>&#8220;<strong><em>Specify the time, in hours, after which the backup files are deleted. If no time is specified, then no backup files are deleted. Backup files are deleted after each database is backed up and verified. Backup files are deleted only if the backup and verification of the database were successful.</em></strong>&#8220;</p></blockquote>
<p><strong>Here are the default settings: </strong>(Just search for &#8220;checksum&#8221; using CONTROL-F)</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1866" title="CHECKSUM" src="http://cdn2.smattie.com/wp-content/uploads/2012/09/CHECKSUM.png" alt="" width="393" height="198" /></p>
<p><img class="aligncenter" src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen41.png" alt="" /></p>
<p><strong>I made changes to the backup cleanup time and I turned <span style="color: #c00000;">off </span>the verify command:</strong> (Keep in mind what was said earlier which can impact your retention period: <a href="http://ola.hallengren.com/sql-server-backup.html">&#8220;<em>Backup files are <strong>deleted</strong> after each database is backed up and verified.</em>&#8220;</a>)</p>
<p>In this scenario, we can allow for a backup to be alive for a certain amount of time in hours and as long as we are <strong>not</strong> verifying the backup. For example, we can specify that we want a week for our retention period by selecting the Cleanup Time to be <strong>168</strong> hours (24 x 7) and then leaving Verify set to <strong>N</strong>. (<strong>As seen below</strong>)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen51.png"><img class="aligncenter" src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen51.png" alt="" width="581" height="373" /></a></p>
<p><strong>The last thing I do is order the steps. </strong> As stated earlier, the <strong>recommended</strong> order of the jobs is to do the <strong><em>index maintenance, then integrity check, and finally the backups</em></strong>.</p>
<p>The default settings are seen here:</p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen61.png" alt="" /></p>
<p><strong>To change them follow these steps:<br />
</strong></p>
<ul>
<li>
<div><strong>Search (</strong>Control –F)<strong> for <span style="color: #c00000;">DatabaseBackup &#8211; SYSTEM_DATABASES – FULL </span><br />
</strong></div>
<p><img src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen71.png" alt="" /><strong><br />
</strong></li>
<li><strong>Label the Index Job step 1<br />
</strong></li>
<li><strong>Label your Integrity checks as the next 2 steps<br />
</strong></li>
<li><strong>Label the other jobs accordingly<br />
</strong></li>
</ul>
<p><em><strong>NOTE: </strong>The above 3 steps are done to help you configure the scheduling easier in SQL Agent jobs.</em></p>
<p><strong>Please note that Ola makes these recommendations for frequency of running the jobs:<br />
</strong></p>
<p><strong>User databases:<br />
</strong></p>
<ul>
<li>Full backup one day per week</li>
<li>Differential backup all other days of the week</li>
<li>Transaction log backup every hour</li>
<li>Integrity check one day per week</li>
<li>Index maintenance one day per week</li>
</ul>
<p><strong>System databases:<br />
</strong></p>
<ul>
<li>Full backup every day</li>
<li>Integrity check one day a week</li>
</ul>
<p><strong>Cleanup:<br />
</strong></p>
<ul>
<li>sp_delete_backuphistory one day a week</li>
<li>sp_purge_jobhistory one day a week</li>
<li>CommandLog Cleanup one day a week</li>
<li>Output File Cleanup one day a week</li>
</ul>
<p><strong>When you are done following his recommendations and my suggestions to number the steps, then it should look like this:<br />
</strong></p>
<p><img class="alignnone" src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen81.png" alt="" align="left" /></p>
<p><em><br />
</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>When you execute the script, it will create the jobs and as you will see later on, the numbering will help us in scheduling the jobs:</p>
<p><img class="aligncenter" src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen91.png" alt="" /></p>
<p>Please note that all of these jobs are configured with <strong>no</strong> schedules, so you will need to create one for them. Here is how the jobs look by default under schedules:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen101.png"><img class="aligncenter" src="http://cdn2.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen101.png" alt="" width="562" height="129" /></a></p>
<p>The last step is to configure the jobs to run with either his recommendations or modifying those recommendations to fit your needs. I have swapped out all of my old scripts in favor of his scripts and I have been really impressed with the results.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen111.png"><img class="aligncenter" src="http://cdn.smattie.com/wp-content/uploads/2012/09/090312_0754_OLARecommen111.png" alt="" width="562" height="491" /></a></p>
<p>As usual, I hope this information helps you.</p>
<div class="shr-publisher-1843"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/' data-shr_title='OLA+Recommendations+for+his+script'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/' data-shr_title='OLA+Recommendations+for+his+script'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/' data-shr_title='OLA+Recommendations+for+his+script'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/09/04/ola-recommendations-for-his-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO FIX: RESTORE cannot operate on database because it is configured for database mirroring.</title>
		<link>http://www.smattie.com/2012/08/30/how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring</link>
		<comments>http://www.smattie.com/2012/08/30/how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring/#comments</comments>
		<pubDate>Thu, 30 Aug 2012 07:01:37 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1821</guid>
		<description><![CDATA[Recently a friend of mine asked me for help when he was not able to get a database out of restoring mode. When he tried to restore the database to the latest backup, he got this error message below: Msg 3104, Level 16, State 1, Line 1 RESTORE cannot operate on database &#8216;VirtualManagerDB&#8217; because it [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia;">Recently a friend of mine asked me for help when he was <strong>not</strong> able to get a database out of restoring mode. When he tried to restore the database to the latest backup, he got this error message below:<br />
</span></p>
<p><span style="color: #c00000; font-family: Courier New; font-size: 10pt;">Msg 3104, Level 16, State 1, Line 1<br />
</span></p>
<p><span style="color: #c00000; font-family: Courier New; font-size: 10pt;">RESTORE cannot operate on database &#8216;VirtualManagerDB&#8217; because it is configured for database mirroring. Use ALTER DATABASE to remove mirroring if you intend to restore the database.<br />
</span></p>
<p><span style="color: #c00000; font-family: Courier New; font-size: 10pt;">Msg 3013, Level 16, State 1, Line 1<br />
</span></p>
<p><span style="color: #c00000; font-family: Courier New; font-size: 10pt;">RESTORE DATABASE is terminating abnormally.<br />
</span></p>
<p><span style="font-family: Georgia;">He even took a screenshot of this error when he tried using the GUI to recover from this error message. (</span><strong style="font-family: Georgia;">This is the same error message as the text above</strong><span style="font-family: Georgia;">)</span></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/083012_0331_HOWTOFIXRES1.png" alt="" /></p>
<p><span style="font-family: Georgia;">As you can tell here, he was in a bit of a trouble here. He had a database that was not sync and therefore was not available to fulfill requests for data, since it is <span style="color: red;"><strong>offline</strong></span>. To make matters worse, he decided to break the mirror and re-setup mirror, but that did <strong>not</strong> help either. Again, this issue remains, because the database was in need of recovering data from a backup and you need to resolve that issue <strong>before</strong> moving on to the next problem.<br />
</span></p>
<p><span style="font-family: Georgia;"><span style="color: #c00000;"><strong>Side note: </strong></span>I recently learned this lesson and wanted to pass it along.<br />
</span></p>
<blockquote><p><span style="color: #383738;"><span style="font-family: Verdana; font-size: 10pt;">Before we start, I want to digress for a little vocabulary lesson. &#8220;Backup&#8221; is a noun. &#8220;Back up&#8221; is a verb. You don&#8217;t &#8220;backup a database.&#8221; You &#8220;back up a database&#8221;. When you &#8220;back up&#8221; a database, it creates a &#8220;backup&#8221; of the database -</span><span style="color: #f79646;"><span style="font-family: Georgia;"><strong>Robert L. Davis</strong> (<a href="http://www.sqlsoldier.com/wp">Blog</a> | <a href="https://twitter.com/">Twitter</a>)</span><br />
</span></span></p></blockquote>
<p><span style="font-family: Georgia;"><strong>So, I advised my co-worker to perform the following steps to resolve this issue on the <span style="color: #c00000;">principal </span>partner:<br />
</strong></span></p>
<ul>
<li>
<div><span style="font-family: Georgia;">Break the mirror by typing:<br />
</span></div>
<p><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">ALTER </span><span style="color: blue;">DATABASE</span><span style="font-family: 'Courier New'; font-size: 10pt;"> [VirtualManagerDB] </span><span style="color: blue;">SET </span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">PARTNER </span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">OFF</span></li>
<li><span style="font-family: Georgia;">Restore your Database from your latest <span style="color: red;"><strong>full </strong></span>backup by typing: </span></li>
</ul>
<p style="margin-left: 36pt;"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: blue;">DATABASE</span> [VirtualManagerDB] <span style="color: blue;">FROM</span><br />
<span style="color: blue;">DISK</span> <span style="color: gray;">= </span><span style="color: red;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtualmanagerdb.bak&#8217;<br />
</span></span></p>
<p style="margin-left: 36pt;"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p style="margin-left: 36pt;"><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO</span></p>
<ul>
<li>
<div><span style="font-family: Georgia;">Restore your Database from your latest <span style="color: red;"><strong>differential </strong></span>backup by typing:<br />
</span></div>
<p><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">RESTORE </span><span style="color: blue;">DATABASE</span><span style="font-family: 'Courier New'; font-size: 10pt;"> [VirtualManagerDB] </span><span style="color: blue;">FROM </span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">DISK </span><span style="color: gray; font-family: 'Courier New'; font-size: 10pt;">= </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtualmanagerdb.dif&#8217;</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO </span></li>
<li>
<div><span style="font-family: Georgia;">Restore your <span style="color: red;"><strong>transaction </strong></span>logs from your latest backups using <span style="color: red;"><strong>norecovery </strong></span>by typing: (More than likely you will be playing back a multiple set of logs)<br />
</span></div>
<p><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">RESTORE </span><span style="color: fuchsia;">LOG</span><span style="font-family: 'Courier New'; font-size: 10pt;"> [VirtualManagerDB] </span><span style="color: blue;">FROM </span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">DISK </span><span style="color: gray; font-family: 'Courier New'; font-size: 10pt;">= </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtman_2012-08-28-23TO70001.trn&#8217;</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO </span></li>
<li>
<div><span style="font-family: Georgia;">Recover the database to bring it online by typing: </span></div>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: blue;">DATABASE</span> [VirtualManagerDB] <span style="color: blue;">WITH </span><span style="color: blue;">RECOVERY</span>;<br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO</span></li>
</ul>
<p><span style="font-family: Georgia;">At this point, the database should be fully restored and back online, but you will still need to re-create the mirror to get your high availability back. <strong>You will need to perform these tasks on the <span style="color: #c00000;">mirror </span>partner:<br />
</strong></span></p>
<ul>
<li><span style="font-family: Georgia;">Copy all of the backups (you just restored, full, dif, logs, etc) from the principal server to the mirror server<br />
</span></li>
<li><span style="font-family: Georgia;">Open SQL Server Management Studio (SSMS) and you will see mirror database is disconnected.<br />
</span></li>
<li><span style="font-family: Georgia;">Verify your current backup does restore your database properly by testing it on another system. (Very important to <span style="color: #c00000;"><strong>NOT </strong></span>assume it is working)<br />
</span></li>
<li><span style="font-family: Georgia;"><span style="color: #c00000;"><strong>Before </strong></span>proceeding to the next step, I would take a minute to review this blog from <span style="color: #f79646;"><strong>Robert L. Davis </strong></span>(<a href="http://www.sqlsoldier.com/wp">Blog</a> | <a href="https://twitter.com/">Twitter</a>) on <a href="http://www.sqlsoldier.com/wp/sqlserver/sqludbaweekrecoveringlostdata">SQLU DBA Week – Recovering Lost Data</a><br />
</span></li>
<li><span style="font-family: Georgia;">Robert talks about the ability to verify that your database restores properly and how it can be queried before you enable it for mirroring.<br />
</span></li>
<li><span style="font-family: Georgia;">Restore your Database from your latest full backup by typing:</span></li>
</ul>
<p style="margin-left: 36pt;"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: blue;">DATABASE</span> [VirtualManagerDB] <span style="color: blue;">FROM </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtualmanagerdb.bak&#8217;<br />
</span></span></p>
<p style="margin-left: 36pt;"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p style="margin-left: 36pt;"><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO</span></p>
<ul>
<li>
<div><span style="font-family: Georgia;">Restore your Database from your latest differential backup by typing: </span></div>
<div><span style="font-family: Georgia;"><br />
</span></div>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: blue;">DATABASE</span> [VirtualManagerDB] <span style="color: blue;">FROM </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtualmanagerdb.dif&#8217;<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO </span></li>
<li>
<div><span style="font-family: Georgia;">Restore your <span style="color: red;"><strong>transaction </strong></span>logs from your latest backups using <span style="color: red;"><strong>norecovery </strong></span>by typing: (More than likely you will be playing back a multiple set of logs) </span></div>
<div><span style="font-family: Georgia;"><br />
</span></div>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: fuchsia;">LOG</span> [VirtualManagerDB] <span style="color: blue;">FROM </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtman_2012-08-28-23TO70001.trn&#8217;<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO<br />
</span></li>
<li>
<div><span style="font-family: Georgia;">Restore the final log file in &#8220;</span><span style="color: blue; font-family: Courier New; font-size: 10pt;">STANDBY</span><span style="font-family: Georgia;"> mode&#8221; instead of specifying </span><span style="color: blue; font-family: Courier New; font-size: 10pt;">RECOVERY</span><span style="font-family: Georgia;"> or </span><span style="color: blue; font-family: Courier New; font-size: 10pt;">NORECOVERY</span><span style="font-family: Georgia;">. (<strong>Example below</strong>)</span></div>
<div><span style="font-family: Georgia;"><br />
</span></div>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: fuchsia;">LOG</span> [VirtualManagerDB] <span style="color: blue;">FROM </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtman_2012-08-28-23TO70001.trn&#8217;<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE</span> <span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">STANDBY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO</span></li>
<li><span style="font-family: Georgia;">This makes the database go into a read-only mode and you can query against it for testing.<br />
</span></li>
<li>
<div><span style="font-family: Georgia;">If all went well with your testing, then re-run that final log restore again with the </span><span style="color: blue; font-family: Courier New; font-size: 10pt;">NORECOVERY</span><span style="font-family: Georgia;"> flag instead of the </span><span style="color: blue; font-family: Courier New; font-size: 10pt;">STANDBY</span><span style="font-family: Georgia;"> flag to configure it for mirroring. </span></div>
<div><span style="font-family: Georgia;"><br />
</span></div>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">RESTORE </span><span style="color: fuchsia;">LOG</span> [VirtualManagerDB] <span style="color: blue;">FROM </span><span style="color: blue;">DISK </span><span style="color: gray;">= </span><span style="color: red;">N&#8217;E:\MSSQL10.MSSQLSERVER\MSSQL\BAK\virtman_2012-08-28-23TO70001.trn&#8217;<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">FILE </span><span style="color: gray;">=</span> 1<span style="color: gray;">, </span><span style="color: blue;">NORECOVERY<span style="color: gray;">,</span> NOUNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10</span><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO</span></li>
</ul>
<p><span style="font-family: Georgia;">Now you are ready to re-create the mirror and get your system back online.</span></p>
<div class="shr-publisher-1821"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/30/how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring/' data-shr_title='HOW+TO+FIX%3A+RESTORE+cannot+operate+on+database+because+it+is+configured+for+database+mirroring.'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/30/how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring/' data-shr_title='HOW+TO+FIX%3A+RESTORE+cannot+operate+on+database+because+it+is+configured+for+database+mirroring.'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/30/how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring/' data-shr_title='HOW+TO+FIX%3A+RESTORE+cannot+operate+on+database+because+it+is+configured+for+database+mirroring.'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/30/how-to-fix-restore-cannot-operate-on-database-because-it-is-configured-for-database-mirroring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Default Database Backup Syntax Values</title>
		<link>http://www.smattie.com/2012/08/27/sql-server-default-database-backup-syntax-values/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-default-database-backup-syntax-values</link>
		<comments>http://www.smattie.com/2012/08/27/sql-server-default-database-backup-syntax-values/#comments</comments>
		<pubDate>Mon, 27 Aug 2012 07:01:11 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1815</guid>
		<description><![CDATA[Every so often I see an article talking about TSQL Database backups and they give an example like the one below: BACKUP DATABASE [AdventureWorks]  TO DISK = N&#8217;C:\MSSQL11.MSSQLSERVER\MSSQL\Backup\AdventureWorks.bak&#8217; WITH NOFORMAT, NOINIT, NAME = N&#8217;AdventureWorks-Full Database Backup&#8217;, NOSKIP, REWIND, UNLOAD, STATS = 10  GO Or I may run into a co-worker or friend who passes along a SQL backup job and I see the [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="font-family: Georgia;">Every so often I see an article talking about TSQL Database backups and they give an example like the one <strong>below</strong>:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">BACKUP </span><span style="color: blue;">DATABASE</span> [AdventureWorks] </span></p>
<p><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">TO </span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">DISK </span><span style="color: gray; font-family: 'Courier New'; font-size: 10pt;">= </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">N&#8217;C:\MSSQL11.MSSQLSERVER\MSSQL\Backup\AdventureWorks.bak&#8217;</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WITH </span><span style="color: blue;">NOFORMAT<span style="color: gray;">,</span> NOINIT<span style="color: gray;">,</span> NAME <span style="color: gray;">= </span><span style="color: red;">N&#8217;AdventureWorks-Full Database Backup&#8217;<span style="color: gray;">,<br />
</span></span></span></span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">NOSKIP<span style="color: gray;">,</span> REWIND<span style="color: gray;">,</span> UNLOAD<span style="color: gray;">, </span><span style="color: green;">STATS </span><span style="color: gray;">=</span> 10 </span></p>
<p><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">GO</span></p>
<p><span style="font-family: Georgia;">Or I may run into a co-worker or friend who passes along a SQL backup job and I see the exact same syntax. <em><strong>Heck, even I was doing it in my older scripts as well</strong></em>, but luckily for me, <strong>Robert Davis</strong> (<a href="http://www.sqlsoldier.com/wp/"><strong>Blog</strong></a> | <a href="https://twitter.com/#!/SQLSoldier"><strong>Twitter</strong></a>) pointed the default syntax that SQL Backup uses. Of course he asked me why I was wasting lines of code, which made me scratch my head. I have confirmed this information with Books Online and today I would like to share those with you.<br />
</span></p>
<p><span style="font-family: Georgia;">First off before we get too far into this topic, let me answer the question&#8230; <strong><em>What are the default TSQL backup syntax?</em></strong>  </span></p>
<p><span style="font-family: Georgia;"><strong>They are listed here:</strong><br />
</span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">NOINIT<span style="color: gray;">,</span> NOSKIP<span style="color: gray;">,</span> NOFORMAT<span style="color: gray;">,</span> NO_CHECKSUM<span style="color: gray;">,</span> STOP_ON_ERROR<span style="color: gray;">,</span> REWIND<span style="color: gray;">,</span> UNLOAD</span></p>
<p><span style="font-family: Georgia;">As you can see from the example with backup above, I just put in all the default values. So really, I am just typing to practice and wasting time out of my day. :p </span></p>
<p><span style="font-family: Georgia;">So how can you <strong>confirm</strong> this information that I am sharing with you today? Good question and an excellent practice to make a habit. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
<p><span style="font-family: Georgia;">You can open <span style="color: #c00000;"><strong>SQL Server Books Online (BOL) </strong></span>by going to the following:<br />
</span></p>
<ul>
<li><strong><span style="font-family: Georgia;">Start<br />
</span></strong></li>
<li><strong><span style="font-family: Georgia;">All Programs<br />
</span></strong></li>
<li><strong><span style="font-family: Georgia;">Documentation and Tutorials<br />
</span></strong></li>
<li><span style="font-family: Georgia;"><strong>SQL Server Books Online</strong><br />
</span></li>
</ul>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe1.png" alt="" /></p>
<p><span style="font-family: Georgia;">When then looks like this and click on <span style="color: #c00000;"><strong>Search</strong></span>:<br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe2.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe2.png" alt="" width="591" height="512" /></a></p>
<p><span style="font-family: Georgia;">For this search, just type the word <strong>backup </strong>and select the <span style="color: #c00000;"><strong>BACKUP (Transact-SQL)</strong></span><br />
</span></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe3.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe3.png" alt="" width="562" height="313" /></a></p>
<p><span style="font-family: Georgia;">Now Scroll down to <span style="color: #c00000;"><strong>Media Set Options </strong></span>and take note of the <span style="text-decoration: underline;"><strong>underlined</strong></span> syntax (as highlighted in <span style="color: #7030a0;"><strong><em>purple </em></strong></span>boxes) These are your default syntax levels.<br />
</span></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe4.png" alt="" /></p>
<p><span style="font-family: Georgia;">Want more proof? Click (at the <strong>top</strong> of the article in <strong>BOL</strong>) on <span style="text-decoration: underline;"><strong>Transact-SQL Syntax Conventions<br />
</strong></span></span><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe5.png" alt="" /></p>
<p><span style="font-family: Georgia;"><strong>Take note of this legend:</strong><br />
</span></p>
<p><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/082712_0519_SQLServerDe6.png" alt="" /><span style="font-family: Georgia;"><br />
</span></p>
<p><span style="font-family: Georgia;">So, please pass along the word and let others know to stop typing a syntax that are already configured to be a default level. I am sure they would appreciate not having to double their efforts. </span><span style="font-family: Wingdings;">J</span></p>
<div class="shr-publisher-1815"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/27/sql-server-default-database-backup-syntax-values/' data-shr_title='SQL+Server+Default+Database+Backup+Syntax+Values'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/27/sql-server-default-database-backup-syntax-values/' data-shr_title='SQL+Server+Default+Database+Backup+Syntax+Values'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/27/sql-server-default-database-backup-syntax-values/' data-shr_title='SQL+Server+Default+Database+Backup+Syntax+Values'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/27/sql-server-default-database-backup-syntax-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Tool: Microsoft® SQL Server® 2012 Performance Dashboard Reports</title>
		<link>http://www.smattie.com/2012/08/26/new-tool-microsoft-sql-server-2012-performance-dashboard-reports/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-tool-microsoft-sql-server-2012-performance-dashboard-reports</link>
		<comments>http://www.smattie.com/2012/08/26/new-tool-microsoft-sql-server-2012-performance-dashboard-reports/#comments</comments>
		<pubDate>Sun, 26 Aug 2012 07:01:50 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1773</guid>
		<description><![CDATA[I been meaning to blog about this great feature for some time. It was released earlier this year, like way back in March of 2012. It is a report of your SQL server&#8217;s health in a very quick method and it is very simple, plus easy to install. Overview The SQL Server 2012 Performance Dashboard [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I been meaning to blog about this great feature for some time. It was released earlier this year, like way back in March of 2012. It is a report of your SQL server&#8217;s health in a very quick method and it is very simple, plus easy to install.</p>
<h2 id="overview">Overview</h2>
<p>The SQL Server 2012 Performance Dashboard Reports are Reporting Services report files designed to be used with the Custom Reports feature of SQL Server Management Studio. The reports allow a database administrator to quickly identify whether there is a current bottleneck on their system, and if a bottleneck is present, capture additional diagnostic data that may be necessary to resolve the problem.</p>
<p><strong>Common performance problems that the dashboard reports may help to resolve include:</strong></p>
<ul>
<li>CPU bottlenecks (and what queries are consuming the most CPU)</li>
<li>IO bottlenecks (and what queries are performing the most IO)</li>
<li>Index recommendations generated by the query optimizer (missing indexes)</li>
<li>Blocking</li>
<li>Latch contention</li>
</ul>
<p>The information captured in the reports is retrieved from SQL Server&#8217;s dynamic management views. There is no additional tracing or data capture required, which means the information is always available and this is a very inexpensive means of monitoring your server.</p>
<p><em><strong>Reporting Services is not required to be installed to use the Performance Dashboard Reports.</strong></em></p>
<h2 id="overview">Installation</h2>
<p>The SQL Server 2012 Performance Dashboard Report can be obtained <a href="http://www.microsoft.com/en-us/download/details.aspx?id=29063"><strong>here</strong></a>. This is a very easy install to perform and can be handled in these steps:</p>
<p><strong>Save</strong> the file</p>
<p style="text-align: center;"> <img class="aligncenter size-full wp-image-1780" title="1-Save" src="http://cdn.smattie.com/wp-content/uploads/2012/08/1-Save.png" alt="" width="445" height="209" /></p>
<p>Click <strong>Next</strong></p>
<p><img class="aligncenter size-full wp-image-1781" title="2-Weclome" src="http://cdn.smattie.com/wp-content/uploads/2012/08/2-Weclome.png" alt="" width="504" height="379" /></p>
<p><strong>Accept</strong> the License</p>
<p><img class="aligncenter size-full wp-image-1782" title="3-Accept" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/3-Accept.png" alt="" width="503" height="379" /></p>
<p>Fill out the <strong>Registration</strong> Information</p>
<p><img class="aligncenter size-full wp-image-1783" title="4- Register" src="http://cdn.smattie.com/wp-content/uploads/2012/08/4-Register.png" alt="" width="502" height="378" /></p>
<p>Click <strong>Next</strong></p>
<p><img class="aligncenter size-full wp-image-1784" title="5-Setup" src="http://cdn.smattie.com/wp-content/uploads/2012/08/5-Setup.png" alt="" width="505" height="380" /></p>
<p>Click <strong>Install</strong></p>
<p><img class="aligncenter size-full wp-image-1785" title="6-Install" src="http://cdn.smattie.com/wp-content/uploads/2012/08/6-Install.png" alt="" width="502" height="380" /></p>
<p>It will provide a <strong>status</strong></p>
<p><img class="aligncenter size-full wp-image-1786" title="7- Status" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/7-Status.png" alt="" width="503" height="378" /></p>
<p>Click <strong>Finish</strong></p>
<p><img class="aligncenter size-full wp-image-1787" title="8-Finish" src="http://cdn.smattie.com/wp-content/uploads/2012/08/8-Finish.png" alt="" width="503" height="375" /></p>
<h2 id="overview">Configure the SQL Server Management Studio to browse this custom report</h2>
<p>You are not quiet done yet with this installation. Please read the <strong>readme</strong> text file</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/9-Readme.png"><img class="aligncenter  wp-image-1788" title="9-Readme" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/9-Readme.png" alt="" width="563" height="361" /></a></p>
<p>Open the file location of <strong>%ProgramFiles(x86)%\Microsoft SQL Server\110\Tools\Performance Dashboard</strong></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/10-Open-file.png"><img class="aligncenter  wp-image-1789" title="10- Open file" src="http://cdn.smattie.com/wp-content/uploads/2012/08/10-Open-file.png" alt="" width="582" height="301" /></a></p>
<p>Click on <strong>Setup.sql</strong></p>
<p style="text-align: center;"> <a href="http://cdn.smattie.com/wp-content/uploads/2012/08/11-Setup_sql.png"><img class="aligncenter size-full wp-image-1790" title="11- Setup_sql" src="http://cdn.smattie.com/wp-content/uploads/2012/08/11-Setup_sql.png" alt="" width="661" height="176" /></a></p>
<p><strong>Execute</strong> the query to build the report</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/12-Execute.png"><img class="aligncenter  wp-image-1791" title="12- Execute" src="http://cdn.smattie.com/wp-content/uploads/2012/08/12-Execute.png" alt="" width="609" height="350" /></a></p>
<p>Wait for the message <strong>Script completed</strong>!</p>
<p><img class="aligncenter size-full wp-image-1774" title="13-Completes" src="http://cdn.smattie.com/wp-content/uploads/2012/08/13-Completes.png" alt="" width="147" height="48" /></p>
<p><strong>Right-click</strong> on Databases, Select <strong>Reports</strong>, then <strong>Custom Reports</strong></p>
<p><img class="aligncenter size-full wp-image-1775" title="14- Custom Reports" src="http://cdn.smattie.com/wp-content/uploads/2012/08/14-Custom-Reports.png" alt="" width="424" height="188" /></p>
<p>Browse to <strong>%ProgramFiles(x86)%\Microsoft SQL Server\110\Tools\Performance Dashboard </strong>and then Select <strong>performance_dashboard_main.rdl</strong></p>
<p><img class="aligncenter size-full wp-image-1776" title="15-rdl" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/15-rdl.png" alt="" width="608" height="479" /></p>
<p><strong>Run</strong> Custom Report (Take note of the warning)</p>
<p><img class="aligncenter size-full wp-image-1777" title="16-Warning" src="http://cdn.smattie.com/wp-content/uploads/2012/08/16-Warning.png" alt="" width="405" height="199" /></p>
<p>Here is your new<strong> dashboard</strong></p>
<p style="text-align: center;"> <a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/17-Report.png"><img class="aligncenter  wp-image-1778" title="17-Report" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/17-Report.png" alt="" width="574" height="407" /></a></p>
<p>Here is where you should click to see a <strong>quick overview</strong> of your SQL Server</p>
<p><img class="aligncenter size-full wp-image-1779" title="18- Click here" src="http://cdn.smattie.com/wp-content/uploads/2012/08/18-Click-here.png" alt="" width="390" height="255" /></p>
<p>For those who are new to SQL and are not quite ready to query DMV or DMF, looking at wait stats, or gather perfmon counters then this tool can help you get a snapshot of your SQL server. It is a pretty helpful tool and can help most people who are responsible for managing a SQL server.</p>
<div class="shr-publisher-1773"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/26/new-tool-microsoft-sql-server-2012-performance-dashboard-reports/' data-shr_title='New+Tool%3A+Microsoft%C2%AE+SQL+Server%C2%AE+2012+Performance+Dashboard+Reports'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/26/new-tool-microsoft-sql-server-2012-performance-dashboard-reports/' data-shr_title='New+Tool%3A+Microsoft%C2%AE+SQL+Server%C2%AE+2012+Performance+Dashboard+Reports'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/26/new-tool-microsoft-sql-server-2012-performance-dashboard-reports/' data-shr_title='New+Tool%3A+Microsoft%C2%AE+SQL+Server%C2%AE+2012+Performance+Dashboard+Reports'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/26/new-tool-microsoft-sql-server-2012-performance-dashboard-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: Creating the Windows 8/Server 2012 Start Menu</title>
		<link>http://www.smattie.com/2012/08/22/update-creating-the-windows-8server-2012-start-menu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-creating-the-windows-8server-2012-start-menu</link>
		<comments>http://www.smattie.com/2012/08/22/update-creating-the-windows-8server-2012-start-menu/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 07:01:11 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[8]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Start Menu]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1761</guid>
		<description><![CDATA[In an earlier article, I talked about Finding and then Creating the Start Menu for both Windows Server 2012 and Windows 8. In those earlier articles, I talked about Microsoft wanting to rid themselves of the Start Menu and clearly pointed out this one from CNET news. Well, today I want to confirm that it appears that [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In an earlier article, I talked about <a href="http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/"><strong>Finding</strong></a> and then <a href="http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/"><strong>Creating</strong></a> the <strong>Start Menu</strong> for both <strong>Windows Server 2012</strong> and <strong>Windows 8</strong>. In those earlier articles, I talked about Microsoft wanting to rid themselves of the Start Menu and clearly pointed out this <strong><a href="http://news.cnet.com/8301-10805_3-57462865-75/why-microsoft-murdered-the-start-button-in-windows-8/">one</a> </strong>from <strong><a href="http://news.cnet.com/">CNET news</a></strong>.</p>
<p>Well, today I want to confirm that it appears that is not the case where Microsoft is trying to <strong>prevent</strong> people from hacking the <strong>Start Menu</strong> back in. I am using the final version of Windows 8 (from my <a href="http://technet.microsoft.com/en-us/subscriptions/ms772428.aspx"><strong>TechNet</strong> <strong>subscription</strong></a>) and I was successfully able to install the third-party software from <a href="http://www.stardock.com/"><strong>Stardock</strong></a> called <a href="http://www.stardock.com/products/start8/"><strong>Start 8</strong></a> to give me the <strong>Start Menu</strong>. As you can see here is the new logon screen with a Seattle background:</p>
<p style="text-align: center;"> <a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/u1-Screen.png"><img class="aligncenter  wp-image-1762" title="u1-Screen" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/u1-Screen.png" alt="" width="589" height="443" /></a></p>
<p>This is the build of <strong>Windows 8</strong> that I am using:</p>
<p><img class="aligncenter size-full wp-image-1763" title="u2-Winver" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/u2-Winver.png" alt="" width="471" height="309" /></p>
<p>And here is my Start Menu (well technically <strong>Windows Orb</strong>):</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/u3-Orb.png"><img class="aligncenter  wp-image-1764" title="u3-Orb" src="http://cdn.smattie.com/wp-content/uploads/2012/08/u3-Orb.png" alt="" width="591" height="442" /></a></p>
<p style="text-align: left;">Before leaving you, I do want to point out that it is very <strong>easy</strong> to navigate without installing <a href="http://www.stardock.com/products/start8/"><strong>Start8 </strong></a>using the new Metro UI in Windows 8. If you are using a Windows Keyboard and are attached directly to the computer (not remote) then you can just hit the Windows Logo (next to the space bar and by the ALT key) to pop up the new Start Menu. They have moved things around a bit, like shutting down and logging out, so I recommend that you take a look at my earlier article <a href="http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/"><strong>here</strong></a> that walks you through the new changes.</p>
<p style="text-align: left;"><strong>NOTE:</strong> <em>The only time it may be a trouble moving around the new start menu is when you need to connect to the machine remotely and you need to depend on dragging your mouse to the top right or bottom right corner to expose the new menu.</em></p>
<div class="shr-publisher-1761"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/22/update-creating-the-windows-8server-2012-start-menu/' data-shr_title='Update%3A+Creating+the+Windows+8%2FServer+2012+Start+Menu'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/22/update-creating-the-windows-8server-2012-start-menu/' data-shr_title='Update%3A+Creating+the+Windows+8%2FServer+2012+Start+Menu'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/22/update-creating-the-windows-8server-2012-start-menu/' data-shr_title='Update%3A+Creating+the+Windows+8%2FServer+2012+Start+Menu'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/22/update-creating-the-windows-8server-2012-start-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Set the Command line properties (i.e. Quick Edit) with PowerShell</title>
		<link>http://www.smattie.com/2012/08/21/set-the-command-line-properties-i-e-quick-edit-with-powershell/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=set-the-command-line-properties-i-e-quick-edit-with-powershell</link>
		<comments>http://www.smattie.com/2012/08/21/set-the-command-line-properties-i-e-quick-edit-with-powershell/#comments</comments>
		<pubDate>Tue, 21 Aug 2012 07:01:31 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1749</guid>
		<description><![CDATA[If you are like me, you get annoyed at having to do the same thing over and over&#8230; especially, if it is tedious and goes on for hours, I am sorry, but I get bored very easily in that situation. One thing I get to do a lot on a daily basis is log into many different [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you are like me, you get annoyed at having to do the same thing over and over&#8230; especially, if it is tedious and goes on for hours, I am sorry, but I get bored very easily in that situation.</p>
<p>One thing I get to do a lot on a daily basis is log into many different machines. I do this to check on things, verify backups/jobs, plus if time permits to be proactive and look at the following good advice:</p>
<ul>
<li><strong><em>Look for performance improvements because it’s the right thing to do even if there are not any performance issues</em></strong></li>
</ul>
<p><strong></strong>As you know, each machine is different and as time goes on there are certain tools you get used to having at your disposal. One of the minor things I like to use is the command prompt and I really like to be able to cut and paste out of it. By default the command line prompt is not configured to allow the <strong>QuickEdit</strong> feature.  To confirm if you can copy and paste from it, just open a command prompt and then <strong>right</strong> click at the top and select <strong>properties</strong> (Seen Below)</p>
<p style="text-align: center;"> <a href="http://cdn.smattie.com/wp-content/uploads/2012/08/1-Cmd.png"><img class="aligncenter  wp-image-1753" title="1- Cmd" src="http://cdn.smattie.com/wp-content/uploads/2012/08/1-Cmd.png" alt="" width="600" height="299" /></a></p>
<p>You will notice that <strong>QuickEdit</strong> Mode is <strong>unchecked</strong> by <strong>default</strong> and this will prevent you from copying from the command prompt. (Seen Below)</p>
<p><img class="aligncenter size-full wp-image-1750" title="2-Default" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/2-Default.png" alt="" width="373" height="458" /></p>
<p>For a one-off scenario or for a few machines, it can be ok, to just right-click the command prompt each time and enable the <strong>QuickEdit</strong> mode. However, for more than 10 servers, it gets old fast and you may catch yourself swearing lightly under your breath&#8230; <em><strong>WTF, why couldn&#8217;t they not just make this the default setting</strong></em>. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I have been searching for a few months to find an easier way to do this and in the past found a few methods, but there were not as clean as this one. Lucky for me, today I came across a method to set this feature using <strong>PowerShell </strong>(Which by default does have <strong>QuickEdit</strong> Mode enabled) by typing this command:</p>
<ul>
<li><strong><em>Set-ItemProperty -path &#8220;HKCU:\Console&#8221; -name QuickEdit -value 1</em></strong></li>
</ul>
<p style="text-align: center;"><strong><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/3-PowerShell.png"><img class="aligncenter  wp-image-1751" title="3-PowerShell" src="http://cdn.smattie.com/wp-content/uploads/2012/08/3-PowerShell.png" alt="" width="576" height="135" /></a></strong></p>
<p>That is all you need to do and now you have <strong>QuickEdit</strong> Mode enabled for your command prompt and no more double clicking to get it.</p>
<p>I do want to point out that this <strong>PowerShell </strong>command will make the following changes to your registry, so that means you will need to be an Admin of the box if you want to execute this command. Here are the changes it will make:</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/4-Regedit.png"><img class="aligncenter  wp-image-1752" title="4-Regedit" src="http://cdn.smattie.com/wp-content/uploads/2012/08/4-Regedit.png" alt="" width="617" height="650" /></a></p>
<p>Now, you can go about your business without being delayed and have your <strong>QuickEdit</strong> mode for your command prompt. <strong>Enjoy</strong>! <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="shr-publisher-1749"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/21/set-the-command-line-properties-i-e-quick-edit-with-powershell/' data-shr_title='Set+the+Command+line+properties+%28i.e.+Quick+Edit%29+with+PowerShell'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/21/set-the-command-line-properties-i-e-quick-edit-with-powershell/' data-shr_title='Set+the+Command+line+properties+%28i.e.+Quick+Edit%29+with+PowerShell'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/21/set-the-command-line-properties-i-e-quick-edit-with-powershell/' data-shr_title='Set+the+Command+line+properties+%28i.e.+Quick+Edit%29+with+PowerShell'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/21/set-the-command-line-properties-i-e-quick-edit-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Use the Database Engine Tuning Advisor in Microsoft SQL Server</title>
		<link>http://www.smattie.com/2012/08/14/how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server</link>
		<comments>http://www.smattie.com/2012/08/14/how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server/#comments</comments>
		<pubDate>Tue, 14 Aug 2012 07:01:41 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Agent]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1727</guid>
		<description><![CDATA[Before we begin, I want to provide a little background on this tool. Database Engine Tuning Advisor (DTA) is a component of SQL Server Management Studio, which is an integral part of Microsoft SQL Server, the database management application. This tool is used for improving query performances by examining the way queries are processed and [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Before we begin, I want to provide a little background on this tool.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms173494%28v=sql.105%29.aspx"><strong>Database Engine Tuning Advisor</strong></a> (DTA) is a component of SQL Server Management Studio, which is an integral part of Microsoft SQL Server, the database management application. This tool is used for improving query performances by examining the way queries are processed and recommending enhancements by specifying indexes, views and partitioning on the database. It replaced the Index Tuning Advisor in Microsoft SQL Server 2000. The Database Engine Tuning Advisor is installed along with other components of Management Studio when you install SQL Server. In case it does <strong>not</strong> get installed, you can choose to add it after running the setup again. You will need to modify <strong>the Management Tools – Complete </strong>to get this feature installed.</p>
<p>Basically, it is used to configure a database so that queries will process more efficiently. It does this task by modifying indexed views, indexes and partitions, which can make queries perform faster because you are fine-tuning the physical design of the database.</p>
<p>This tool was introduced by Microsoft with SQL 2005. DTA has made significant advancements over the predecessor and the main purpose is much the same as the Index Tuning Wizard. DTA does seem to produce more reliable results and appears to be more efficient at doing it. Unfortunately, there is still the possibility of getting some bad recommendations from this tool, so please <strong>proceed with caution</strong>. And yes, the bigger issue is that there was blanket acceptance of all indexes. You can learn more about this tool <a href="http://technet.microsoft.com/en-us/library/ms173494.aspx"><strong>here</strong></a>. This tool is available in Microsoft SQL Server 2005 and newer releases.</p>
<p>So, how do you use this tool? Good question.</p>
<p><strong>Instructions:<br />
</strong></p>
<p>Navigate to the Database Engine Tuning Advisor by clicking &#8220;<strong>Start</strong>,&#8221; &#8220;<strong>All Programs</strong>,&#8221; &#8220;<strong>Microsoft SQL Server 2008</strong>,&#8221; &#8220;<strong>Performance Tools</strong>,&#8221; then &#8220;<strong>Database Engine Tuning Advisor</strong>.&#8221;</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe1.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe1.png" alt="" width="624" height="143" /></a></p>
<p>Click &#8220;<strong>Connect</strong>&#8221; in the &#8220;<strong>Connect to Server</strong>&#8221; window.</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe2.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe2.png" alt="" width="428" height="318" /></a></p>
<ol>
<li>Open SQL Server Management Studio (SSMS) and save a query. I grabbed one from a sample off Microsoft TechNet. (As seen below)</li>
</ol>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">USE</span> AdventureWorks2008R2<span style="color: gray;">;</span></span></p>
<p><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">GO</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">SELECT</span> pp<span style="color: gray;">.</span>FirstName<span style="color: gray;">,</span> pp<span style="color: gray;">.</span>LastName<span style="color: gray;">,</span> e<span style="color: gray;">.</span>NationalIDNumber<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">FROM</span> HumanResources<span style="color: gray;">.</span>Employee <span style="color: blue;">AS</span> e <span style="color: blue;">WITH <span style="color: gray;">(<span style="color: blue;">INDEX<span style="color: gray;">(</span>AK_Employee_NationalIDNumber<span style="color: gray;">))<br />
</span></span></span></span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: gray;">JOIN</span> Person<span style="color: gray;">.</span>Person <span style="color: blue;">AS</span> pp <span style="color: blue;">on</span> e<span style="color: gray;">.</span>BusinessEntityID <span style="color: gray;">=</span> pp<span style="color: gray;">.</span>BusinessEntityID<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WHERE</span> LastName <span style="color: gray;">=</span><br />
<span style="color: red;">&#8216;Johnson&#8217;<span style="color: gray;">;<br />
</span></span></span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO </span></p>
<p><span style="color: green; font-family: Courier New; font-size: 10pt;">&#8211; Force a table scan by using INDEX = 0.<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">USE</span> AdventureWorks2008R2<span style="color: gray;">;<br />
</span></span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">SELECT</span> pp<span style="color: gray;">.</span>LastName<span style="color: gray;">,</span> pp<span style="color: gray;">.</span>FirstName<span style="color: gray;">,</span> e<span style="color: gray;">.</span>JobTitle<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">FROM</span> HumanResources<span style="color: gray;">.</span>Employee <span style="color: blue;">AS</span> e <span style="color: blue;">WITH <span style="color: gray;">(<span style="color: blue;">INDEX</span> =</span> 0<span style="color: gray;">)</span><br />
<span style="color: gray;">JOIN</span> Person<span style="color: gray;">.</span>Person AS</span> pp<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">ON</span> e<span style="color: gray;">.</span>BusinessEntityID <span style="color: gray;">=</span> pp<span style="color: gray;">.</span>BusinessEntityID<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WHERE</span> LastName <span style="color: gray;">=</span><br />
<span style="color: red;">&#8216;Johnson&#8217;<span style="color: gray;">;<br />
</span></span></span></p>
<p><span style="color: blue; font-family: Courier New; font-size: 10pt;">GO </span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><strong>NOTE:</strong> You can download the Adventureworks Sample databases from <a href="http://sqlserversamples.codeplex.com/"><strong>here</strong></a>.</span><span style="font-family: Courier New; font-size: 10pt;"><br />
</span></p>
<p><strong>Follow these simple steps to do get your query analyzed:</strong></p>
<ul>
<li>Click &#8220;Start&#8221;</li>
<li>Go to &#8220;All Programs&#8221;</li>
<li>Select &#8220;Microsoft SQL Server 2008 R2&#8243;</li>
<li>Choose &#8220;SQL Server Management Studio&#8221;</li>
<li>Click &#8220;New Query&#8221; to open the Query Editor.</li>
<li>Paste the SQL script copied from Microsoft TechNet into the Query Editor, then save as &#8220;<strong>Test_DTA.sql</strong>&#8221; in a familiar directory.</li>
</ul>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe3.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe3.png" alt="" width="624" height="397" /></a></p>
<p>There is also a <strong>short</strong> cut to this process. You can open your query in SSMS and right-click in the Window to select &#8220;<strong>Analyze Query in Database Engine Tuning Advisor</strong>&#8221; (seen below)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe4.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe4.png" alt="" width="624" height="674" /></a></p>
<p>Then it will <strong>open</strong> in DTA as seen below:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe5.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe5.png" alt="" width="553" height="487" /></a></p>
<p><strong>Please see screenshot listed below for assistance with these steps:<br />
</strong></p>
<ul>
<li>In the &#8220;<strong>Session name</strong>&#8221; field enter a unique name, such as &#8220;<strong>Session1</strong>.&#8221;</li>
<li>Choose &#8220;<strong>File</strong>&#8221; as the type of Workload and then navigate to the &#8220;<strong>Test_DTA.sql</strong>&#8221; script you saved earlier.</li>
<li>Choose &#8220;<strong>AdventureWorks 2008R2</strong>&#8221; as the &#8220;<strong>Database for Workload Analysis</strong>,</li>
<li>Select it again in &#8220;<strong>Select Databases and tables to tune</strong>.&#8221;</li>
<li>Check &#8220;<strong>Save tuning log</strong>.&#8221;</li>
<li>Click the &#8220;<strong>Tuning Options</strong>&#8221; tab to review the defaults for future reference.<strong> (This will not be used at this time.)</strong></li>
<li>Navigate to the toolbar and click &#8220;Start Analysis.&#8221;</li>
</ul>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe6.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe6.png" alt="" width="624" height="529" /></a></p>
<p>Wait for the analysis to complete, which you can observe on the &#8220;Progress&#8221; tab.</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe7.png"><img src="http://cdn2.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe7.png" alt="" width="624" height="340" /></a></p>
<p>Review the results in &#8220;<strong>Recommendations</strong>&#8221; tab to view the &#8220;<strong>Index Recommendations</strong>&#8221; and &#8220;<strong>Partition Recommendations</strong>&#8221; columns. Carefully examine those indexes or partitions that DTA recommends that should be added or deleted.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe8.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe8.png" alt="" width="624" height="616" /></a></p>
<p>Deselect any recommendations that you don&#8217;t want to keep. Click &#8220;<strong>Apply Recommendations</strong>&#8221; or &#8220;<strong>Save Recommendations</strong>&#8221; under &#8220;<strong>Actions</strong>&#8221; for changes that you want to implement.<a href="http://cdn.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe9.png"><img src="http://cdn.smattie.com/wp-content/uploads/2012/08/081312_0532_HOWTOUsethe9.png" alt="" width="416" height="198" /></a></p>
<p>Now, run the newly saved script in a <strong>test</strong> environment to verify results <strong>before</strong> running the new script in production.</p>
<p>There is also a good article on MSDN about this subject called <a href="http://msdn.microsoft.com/en-us/library/ms166575%28v=sql.105%29.aspx"><strong>Tutorial: Database Engine Tuning Advisor</strong></a></p>
<div class="shr-publisher-1727"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/14/how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server/' data-shr_title='HOW+TO%3A+Use+the+Database+Engine+Tuning+Advisor+in+Microsoft+SQL+Server'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/14/how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server/' data-shr_title='HOW+TO%3A+Use+the+Database+Engine+Tuning+Advisor+in+Microsoft+SQL+Server'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/14/how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server/' data-shr_title='HOW+TO%3A+Use+the+Database+Engine+Tuning+Advisor+in+Microsoft+SQL+Server'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/14/how-to-use-the-database-engine-tuning-advisor-in-microsoft-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hyper-V limits with Windows Server 2012 Release Candidate</title>
		<link>http://www.smattie.com/2012/08/13/hyper-v-limits-with-windows-server-2012-release-candidate/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hyper-v-limits-with-windows-server-2012-release-candidate</link>
		<comments>http://www.smattie.com/2012/08/13/hyper-v-limits-with-windows-server-2012-release-candidate/#comments</comments>
		<pubDate>Mon, 13 Aug 2012 07:01:10 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1709</guid>
		<description><![CDATA[As stated in an early article of mine, there is a great free book from Microsoft Press that talks in good depth about Windows Server 2012. Today, I wanted to share some of the information that I learned from the book. (Limits and new features) Here is a simple comparison of the different limits between Windows Server 2008 R2, Windows Server 8 [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As stated in an early <strong><a href="http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/">article</a> </strong>of mine, there is a great <strong>free</strong> book from Microsoft Press that talks in good depth about Windows Server 2012. Today, I wanted to share some of the information that I learned from the book. (Limits and new features)</p>
<p>Here is a simple comparison of the <strong>different</strong> limits between Windows Server 2008 R2, Windows Server 8 Beta and Windows Server 2012 Release Candidate 1:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/08/Limits.png"><img class="aligncenter  wp-image-1710" title="Limits" src="http://cdn.smattie.com/wp-content/uploads/2012/08/Limits.png" alt="" width="580" height="92" /></a></p>
<p style="text-align: center;"><strong>NOTE:</strong> Please click on image for a larger view.</p>
<p style="text-align: left;">Another great bit of information is the Technet article called <strong><a href="http://technet.microsoft.com/en-US/library/hh831410.aspx">What&#8217;s New in Hyper-V</a> </strong>which outlines the new changes. Cool things like the following:</p>
<p><a href="http://technet.microsoft.com/en-US/library/hh831410.aspx#BKMK_Replica"><strong>Hyper-V Replica</strong></a><br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx#BKMK_resourcemetering"><strong>Resource metering</strong></a><br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx#BKMK_storagemigration"><strong>Improved Storage migration</strong></a> (No more downtime)<br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx#BKMK_virtualFC"><strong>Virtual Fibre Channel</strong></a><br />
<a href="http://technet.microsoft.com/en-US/library/hh831410.aspx#BKMK_vNUMA"><strong>Virtual NUMA</strong></a></p>
<div class="shr-publisher-1709"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/13/hyper-v-limits-with-windows-server-2012-release-candidate/' data-shr_title='Hyper-V+limits+with+Windows+Server+2012+Release+Candidate+'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/13/hyper-v-limits-with-windows-server-2012-release-candidate/' data-shr_title='Hyper-V+limits+with+Windows+Server+2012+Release+Candidate+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/13/hyper-v-limits-with-windows-server-2012-release-candidate/' data-shr_title='Hyper-V+limits+with+Windows+Server+2012+Release+Candidate+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/13/hyper-v-limits-with-windows-server-2012-release-candidate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Maintenance Solution by Ola Hallengren</title>
		<link>http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-maintenance-solution-by-ola-hallengren</link>
		<comments>http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren/#comments</comments>
		<pubDate>Sun, 12 Aug 2012 07:01:02 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Agent]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1704</guid>
		<description><![CDATA[I have been meaning to talk about this topic for a while now and tonight I made sure that I put out the good news. Today, I want to introduce you to the SQL Server Maintenance Solution by Ola Hallengren which is a script that will create a series of scripts that will perform SQL agent jobs [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I have been meaning to talk about this topic for a while now and tonight I made sure that I put out the good news. Today, I want to introduce you to the <strong><a href="http://ola.hallengren.com/">SQL Server Maintenance Solution by Ola Hallengren</a> </strong>which is a script that will create a series of scripts that will perform SQL agent jobs to run backups for transaction logs, full and differential for both system and user databases. If that was not cool enough, it also optimize indexes and perform integrity checks on all of your databases. These are highly polished scripts that in the US Army that would be considered <a href="http://www.urbandictionary.com/define.php?term=high-speed-low-drag"><strong>high-speed, low-drag</strong></a>. (<strong>Definition #1</strong>: A high quality, efficient way to do something, performed with exceptional speed, but still simple and streamlined)</p>
<p>Designing or even maintaining scripts that you have acquired over the years can take a lot of effort. This may lead to you to have longer days as you have to update them to work with new features. I had a series of scripts and I was very happy with them, but as I grew more in my knowledge of SQL, I wanted more abilities added in my scripts. Then I started seeing more and more people I follow on blogs, tell me the same thing&#8230; use OLA&#8217;s scripts.</p>
<p>Many other people (only listing a few people here) have mentioned these scripts and also have highly recommend them:</p>
<p><a href="http://www.simple-talk.com/sql/database-administration/automate-and-improve-your-database-maintenance-using-ola-hallengrens-free-script/"><strong>SimpleTalk</strong></a><br />
<a href="http://www.bradmcgehee.com/2009/11/ola-hallengren-updates-free-database-maintenance-scripts-to-support-sqlbackup-6-3/"><strong>Brad McGehee</strong></a><br />
<strong><a href="http://www.brentozar.com/?s=Ola+Hallengren">Brent Ozar</a> </strong>(Few times here)<br />
<a href="http://sqlblog.com/blogs/greg_low/archive/2011/05/20/ola-hallengren-s-database-maintenance-scripts.aspx"><strong>Greg Low</strong></a><br />
<a href="http://blog.sqlauthority.com/2009/11/17/sql-server-2005-2008-backup-integrity-check-and-index-optimization-by-ola-hallengren/"><strong>SQL Authority</strong></a></p>
<p>I am also going to recommend the saw the same thing&#8230; Please do yourself a favor, take a minute and go to his <a href="http://ola.hallengren.com/"><strong>website</strong></a>, then download his <a href="http://ola.hallengren.com/scripts/MaintenanceSolution.sql"><strong>script</strong> </a>and test them out your self. I think you will be very impressed with how fast it installs and how fast these jobs run. He even looks for other back up programs besides using the default SQL server tool.</p>
<p>Another cool thing, these scripts support SQL 2012 and earlier versions as he documented  <a href="http://ola.hallengren.com/versions.html"><strong>here</strong></a>.</p>
<div class="shr-publisher-1704"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren/' data-shr_title='SQL+Server+Maintenance+Solution+by+Ola+Hallengren'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren/' data-shr_title='SQL+Server+Maintenance+Solution+by+Ola+Hallengren'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren/' data-shr_title='SQL+Server+Maintenance+Solution+by+Ola+Hallengren'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/12/sql-server-maintenance-solution-by-ola-hallengren/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcing Better IOPS for Amazon EBS‏ Volumes‏</title>
		<link>http://www.smattie.com/2012/08/08/ebs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ebs</link>
		<comments>http://www.smattie.com/2012/08/08/ebs/#comments</comments>
		<pubDate>Wed, 08 Aug 2012 07:01:51 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[iops]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1694</guid>
		<description><![CDATA[Provisioned IOPS are a new EBS volume type designed to deliver predictable, high performance for I/O intensive workloads, such as database applications, that rely on consistent and fast response times. One of the biggest complaints about Amazon Web Services has been disk performance. In order to get fast performance it has been necessary to use [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Provisioned IOPS are a new EBS volume type designed to deliver predictable, high performance for I/O intensive workloads, such as database applications, that rely on consistent and fast response times.</p>
<p>One of the biggest complaints about Amazon Web Services has been disk performance. In order to get fast performance it has been necessary to use RAID 0 and spread writes across multiple EBS volumes. However, there is a problem with that approach, if one of those disks is having a negative performance impact; then the whole RAID group will perform poorly. If you lose a single disk in that RAID group, then there is a good chance that you have lost the entire logical volume. Many AWS customers have balked at the idea of risking instability for performance.</p>
<p><strong>High I/O Instances</strong></p>
<p>On <strong>31 July 2012</strong>, AWS introduced <a href="http://aws.amazon.com/ec2/instance-types/">High I/O Instances</a> – these instances have two terabytes of local storage in the form of a solid state drive. (2 x SSD-based volumes each with 1024 GB of instance storage) Needless to say, these instances are fast and they have been benchmarked at up to 120,000 IOPS. However, they don’t provide quite the CPU throughput of other instance types currently provide, but the primary goal with this product is to address the perception that EBS storage isn’t fast enough in AWS.</p>
<p>There is one considerable downside, though – High I/O instances use instance store storage that’s local to each instance. This is commonly referred to as <strong>ephemeral</strong> storage and it is important to note that the storage disappears after an instance is stopped and started. There is no guarantee that your instance will start on the same server. After the instance starts back up, the local storage must be re-initialized to prevent your data being visible to another customer. High I/O instances are great for customers who need consistent, high random throughput storage access for databases that have resiliency across multiple servers. In short; high I/O instances are great for distributed databases.</p>
<p>The High I/O instances could be used with SQL Server by running an <a href="http://msdn.microsoft.com/en-us/library/ff877884.aspx"><strong>AlwaysOn Availability Group</strong></a> and creating asynchronous replicas on more durable storage using EBS volumes or by backing data up to S3 volumes. This approach carries the risk of data loss, however if you need high I/O throughput in AWS, then it’s one approach that you can take to achieve this goal.</p>
<p><strong>Provisioned IOPS and EBS-optimized instances</strong></p>
<p>Amazon released Provisioned IOPS EBS volumes, which is a more durable approach to high performance I/O storage. Regular EBS volumes can be expected to perform like a typical 7200 RPM drive: ~100 IOPS for random data access. In the past this is where RAID comes in – enterprise administrators created RAID volumes to spread I/O across multiple drives to achieve higher throughput. Unfortunately, this carries some risk of volume failure and again, one slow disk will make the entire RAID volume perform poorly.</p>
<p>Instead of resorting to RAID for performance, you can now provision drives and request to get a set performance level. Using the Provisioned IOPS feature, you can request space in AWS just like current EBS volumes, but now you can also specify guaranteed performance between 100 and up to 1000 IOPS. This volume is still over a 1Gbps ethernet connection and should be seen like network attached storage, so the total data throughput is limited, but actually you are able to get higher random I/O throughput with fewer drives. You can use this new feature on bigger instance types (m1.large, m1.xlarge, and m2.4xlarge) instances on any EBS volume, even the root volume (aka boot drives). You can launch selected Amazon EC2 instance types as “EBS-Optimized” instances. EBS-optimized instances deliver dedicated throughput between Amazon EC2 and Amazon EBS, with options between 500 Mbps and 1000 Mbps depending on the instance type used.</p>
<p><strong>Things to Consider</strong></p>
<p>You will want to know how fast your current storage performs and how much this might cost you to implement in AWS. There are a few things to measure, the first to look at is the theoretical maximum performance of your storage using <a href="http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;id=20163">SQLIO</a> This will give you a fairly accurate idea about the performance of your storage in both MB/s and IOPS. You can combine this knowledge with information from Performance Monitor to gather actual usage metrics. This will help you determine if it is feasible to move into AWS.</p>
<p>The second and an even important question for most people is how much will it cost you. Provisioned IOPS cost $0.10 per Provisioned IOP per month. Keeping that in mind that 1,000 IOPS will cost $100 per month on top of a slightly higher cost per MB. At 100GB and 1,000 IOPS, an EBS volume will cost $112.5 per month. It’s expensive, but if you need guaranteed performance, it’s worth it.</p>
<p>You can get a more reliable estimate of your bill by using the <strong><a href="http://calculator.s3.amazonaws.com/calc5.html">AWS Simple Monthly Calculator</a>.</strong></p>
<p><strong>Options</strong></p>
<p>Customers looking for fast storage now have multiple options for deploying SQL server. The less risk averse can use provisioned IOPS instances for guaranteed performance on highly durable storage. DBAs who are more open to risk can use the High I/O instances to get high throughput using local storage. As stated before, there is more risk involved, but there are solutions to help you alleviate that risk.</p>
<p>To learn more about EBS Provisioned IOPS, see the <a href="http://aws.amazon.com/ebs">Amazon EBS detail page</a>.</p>
<div class="shr-publisher-1694"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/08/ebs/' data-shr_title='Announcing+Better+IOPS+for+Amazon+EBS%E2%80%8F+Volumes%E2%80%8F'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/08/ebs/' data-shr_title='Announcing+Better+IOPS+for+Amazon+EBS%E2%80%8F+Volumes%E2%80%8F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/08/ebs/' data-shr_title='Announcing+Better+IOPS+for+Amazon+EBS%E2%80%8F+Volumes%E2%80%8F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/08/ebs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2012 Release Dates</title>
		<link>http://www.smattie.com/2012/08/06/windows-server-2012-release-dates/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows-server-2012-release-dates</link>
		<comments>http://www.smattie.com/2012/08/06/windows-server-2012-release-dates/#comments</comments>
		<pubDate>Mon, 06 Aug 2012 07:01:04 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1691</guid>
		<description><![CDATA[I got some great news for you and it is straight from a Microsoft&#8217;s blog Windows Server 2012 final release timing and that news is that they have provided release dates to Windows Server 2012. Release To Manufacturing (RTM): First week of August 2012 Release to General Public: 4 September 2012 These dates were also confirmed by another Microsoft [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I got some great news for you and it is straight from a Microsoft&#8217;s blog <a href="http://blogs.technet.com/b/windowsserver/archive/2012/07/09/windows-server-2012-final-release-timing.aspx"><strong>Windows Server 2012 final release timing</strong></a> and that news is that they have provided release dates to Windows Server 2012.</p>
<p><strong>Release To Manufacturing (RTM)</strong>: First week of August 2012</p>
<p><strong>Release to General Public:</strong> <a href="http://www.microsoft.com/en-us/server-cloud/new.aspx"><strong>4 September 2012</strong></a></p>
<p>These dates were also confirmed by another Microsoft TechNet blog<a href="http://blogs.technet.com/b/andrew/archive/2012/07/17/dell-and-hyper-v-fro-the-smaller-business.aspx"><strong> Dell and Hyper-V for the smaller business</strong></a></p>
<p>I am looking forward to this new release and it appears that many others are as well, since this product was downloaded so many times more than other release candidates in the past</p>
<div class="shr-publisher-1691"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/06/windows-server-2012-release-dates/' data-shr_title='Windows+Server+2012+Release+Dates'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/06/windows-server-2012-release-dates/' data-shr_title='Windows+Server+2012+Release+Dates'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/06/windows-server-2012-release-dates/' data-shr_title='Windows+Server+2012+Release+Dates'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/06/windows-server-2012-release-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free version of Hyper-V Server 2012: Game changer in the making</title>
		<link>http://www.smattie.com/2012/08/05/free-version-of-hyper-v-server-2012-game-changer-in-the-making/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-version-of-hyper-v-server-2012-game-changer-in-the-making</link>
		<comments>http://www.smattie.com/2012/08/05/free-version-of-hyper-v-server-2012-game-changer-in-the-making/#comments</comments>
		<pubDate>Mon, 06 Aug 2012 02:59:27 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1684</guid>
		<description><![CDATA[With Virtualization gaining more traction in all phases of business, competitors are getting better with their products. Most Virtualization vendors offer some sort of free Virtualization software today, that is capable of handling a small to medium load. With that being said, the free hypervisor space is a very important segment for IT pros getting [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>With Virtualization gaining more traction in all phases of business, competitors are getting better with their products. Most Virtualization vendors offer some sort of free Virtualization software today, that is capable of handling a small to medium load.</p>
<p>With that being said, the free hypervisor space is a very important segment for IT pros getting started with virtualization. It allows organizations to give virtualization a try without having to invest with an incredible financial obligation. Furthermore, some IT shops are just fine with only running free virtualization tools in their production environments.</p>
<p>Last month at the <a href="http://northamerica.msteched.com/#fbid=fBjb8v8NBNZ"><strong>Microsoft TechEd North America</strong></a>, details were laid out for <a href="https://profile.microsoft.com/RegSysProfileCenter/wizard.aspx?wizid=5e91c6ca-a0fe-464a-8c04-83c1336c254e"><strong>Hyper-V Server 2012</strong></a>. Please note that this is the free hypervisor and it should not be confused with Windows Server 2012 with the Hyper-V role; they are officially different products and should be seen that way. Hyper-V Server 2012 will bring incredible scale to the free virtualization space; and, in fact, no other free offering comes close.</p>
<p>This is absolutely an incredible new free version of Hyper-V and it will support up to 4 TB of RAM on the host, individual virtual machines with 1 TB of RAM, and guest vCPU assignments up to 64 cores. Amazingly, that this free hypervisor really exceeds with what many revenue offerings is mind-boggling. The release candidate for Hyper-V Server 2012 is available under certain access levels from Microsoft from resources such as a TechNet subscription. The release candidate installs just like any version of Windows or Hyper-V Server that is available today, quick and painlessly.</p>
<p>After the release candidate is installed; the menu on the host console is materially unchanged from the previous versions of the<a href="http://www.microsoft.com/en-us/server-cloud/hyper-v-server/default.aspx"> <strong>free 2008R2 Hyper-V</strong></a> as shown below:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/08/sconfig.jpg"><img class="aligncenter  wp-image-1685" title="sconfig" src="http://cdn2.smattie.com/wp-content/uploads/2012/08/sconfig.jpg" alt="" width="561" height="398" /></a></p>
<p style="text-align: left;">The capabilities and expectations of this free hypervisor are very high. Mix in those feelings with the free migration technologies that do <strong>not</strong> require shared storage, and it’s pretty clear that Microsoft is serious about its legacy in the virtualization space. My only hope is that more IT professionals take some time out of their schedules to check out these free release candidates to evaluate their future use. I am very impressed with the changes.</p>
<div class="shr-publisher-1684"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/08/05/free-version-of-hyper-v-server-2012-game-changer-in-the-making/' data-shr_title='Free+version+of+Hyper-V+Server+2012%3A+Game+changer+in+the+making+'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/08/05/free-version-of-hyper-v-server-2012-game-changer-in-the-making/' data-shr_title='Free+version+of+Hyper-V+Server+2012%3A+Game+changer+in+the+making+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/08/05/free-version-of-hyper-v-server-2012-game-changer-in-the-making/' data-shr_title='Free+version+of+Hyper-V+Server+2012%3A+Game+changer+in+the+making+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/08/05/free-version-of-hyper-v-server-2012-game-changer-in-the-making/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating the Start Menu for Windows 8 or Server 2012</title>
		<link>http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-the-start-menu-for-windows-8-or-server-2012</link>
		<comments>http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/#comments</comments>
		<pubDate>Mon, 30 Jul 2012 18:03:39 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[8]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1657</guid>
		<description><![CDATA[In my last post, I talked about finding the Start Menu in Windows Server 2012 (formerly code name Windows Server 8) since it was a very quick visual difference between previous versions of Windows. It takes some time adjusting to the new direction with the Metro UI, but it can be done. I highly recommend that you [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my last <a href="http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/"><strong>post</strong></a>, I talked about finding the Start Menu in Windows Server 2012 (formerly code name Windows Server 8) since it was a very quick visual difference between previous versions of Windows. It takes some time adjusting to the new direction with the Metro UI, but it can be done.</p>
<p>I <em><strong>highly recommend</strong></em> that you get used to the new <strong>Metro UI Start Menu</strong>, as I am hearing in numerous circles that Microsoft is determined to get people used to the new interface. The feeling is that Microsoft is currently working on removing old legacy code so that no one will even be able to program or hack the Start Menu back into the product. I am not certain if this is true, but I did want to give you ample warning that these feature may be gone forever.</p>
<p>As I previously pointed out, you can read more about this decision <a href="http://news.cnet.com/8301-10805_3-57462865-75/why-microsoft-murdered-the-start-button-in-windows-8/"><strong>here</strong></a>.</p>
<p>Here is what the new <strong>Start Menu</strong> looks like today in Windows 8/Server 2012:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/07/1-Menu.png"><img class="aligncenter  wp-image-1665" title="1-Menu" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/1-Menu.png" alt="" width="620" height="519" /></a></p>
<p>Here is what the new <strong>Desktop</strong> looks like today in Windows 8/Server 2012:</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Desktop.png"><img class="aligncenter  wp-image-1666" title="2-Desktop" src="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Desktop.png" alt="" width="613" height="462" /></a></p>
<p><strong>Notice</strong> that the infamous Windows Orb (that was first introduced in <strong><a href="http://en.wikipedia.org/wiki/Windows_Vista">Windows Vista</a>)</strong> is missing! No worries, you can still get it back using a third party software from <strong><a href="http://www.stardock.com/">Stardock</a> </strong>called <strong><a href="http://www.stardock.com/products/start8/">Start8</a>. </strong>When you click the link, you will see the page listed below:</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/07/3-Start8.png"><img class="aligncenter  wp-image-1667" title="3-Start8" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/3-Start8.png" alt="" width="566" height="460" /></a></p>
<p>Click on <strong>Download</strong> and it will ask you for an email address so it can email you the link:</p>
<p><img class="aligncenter size-full wp-image-1668" title="4-email" src="http://cdn.smattie.com/wp-content/uploads/2012/07/4-email.png" alt="" width="425" height="145" /></p>
<p>This is what your Email should look like and you will see the download link:</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/5-Download.png"><img class="aligncenter  wp-image-1669" title="5-Download" src="http://cdn.smattie.com/wp-content/uploads/2012/07/5-Download.png" alt="" width="458" height="428" /></a></p>
<p>Then you  will have around a 2 MB file to install:</p>
<p><img class="aligncenter size-full wp-image-1670" title="6-File" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/6-File.png" alt="" width="414" height="513" /></p>
<p>If you have <a href="http://technet.microsoft.com/en-us/library/cc709691%28v=ws.10%29.aspx"><strong>User Access Control</strong></a> turned off (which it is by default) then say yes</p>
<p><img class="aligncenter size-full wp-image-1658" title="7-UAC" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/7-UAC.png" alt="" width="461" height="261" /></p>
<p>Then it will launch into the installation with the Welcome screen as seen below:</p>
<p><img class="aligncenter size-full wp-image-1659" title="8-Welcome" src="http://cdn.smattie.com/wp-content/uploads/2012/07/8-Welcome.png" alt="" width="514" height="402" /></p>
<p>Accept the license agreement to continue with the installation:</p>
<p><img class="aligncenter size-full wp-image-1660" title="9-Agree" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/9-Agree.png" alt="" width="515" height="404" /></p>
<p>You can accept the default or change the installation folder:</p>
<p><img class="aligncenter size-full wp-image-1661" title="10- Location" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/10-Location.png" alt="" width="508" height="400" /></p>
<p><strong>Before</strong> you can hit finish, it will ask you if you want to login and <strong>automatically</strong> go to the Desktop. (Choose <strong>accordingly</strong> to your desires)</p>
<p><img class="aligncenter size-full wp-image-1662" title="11- Finish" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/11-Finish.png" alt="" width="510" height="396" /></p>
<p>Notice the familiar Windows Orb is back!</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/12-Orb.png"><img class="aligncenter  wp-image-1663" title="12- Orb" src="http://cdn.smattie.com/wp-content/uploads/2012/07/12-Orb.png" alt="" width="619" height="463" /></a></p>
<p>Right click on the Orb and you will bring up the options page, to include the ability to <strong>shutdown</strong> or launch the <strong>Run</strong> command.</p>
<p><img class="aligncenter size-full wp-image-1664" title="13-Options" src="http://cdn.smattie.com/wp-content/uploads/2012/07/13-Options.png" alt="" width="299" height="231" /></p>
<p>As stated earlier in this article and in yesterday&#8217;s as well, I would not count on this feature staying in and recommend that you get used to the new Metro UI instead. I really believe that Microsoft will ensure that this option will not exist.</p>
<p>&nbsp;</p>
<div class="shr-publisher-1657"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/' data-shr_title='Creating+the+Start+Menu+for+Windows+8+or+Server+2012'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/' data-shr_title='Creating+the+Start+Menu+for+Windows+8+or+Server+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/' data-shr_title='Creating+the+Start+Menu+for+Windows+8+or+Server+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/30/creating-the-start-menu-for-windows-8-or-server-2012/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Finding The Start Menu In Windows Server 2012</title>
		<link>http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=finding-the-start-menu-in-windows-server-2012</link>
		<comments>http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/#comments</comments>
		<pubDate>Sun, 29 Jul 2012 08:05:32 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1644</guid>
		<description><![CDATA[As I stated in my last post, I am going to do a series of the new features in Server 2012. Today, I am going to start with the most obvious change&#8230; the start menu that has died and is no longer present. Rumor mills have it that Microsoft is determined to leave it out, [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As I stated in my last <a href="http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/"><strong>post</strong></a>, I am going to do a series of the new features in <strong>Server 2012</strong>. Today, I am going to start with the most <strong>obvious</strong> change&#8230; the start menu that has died and is no longer present. Rumor mills have it that Microsoft is <strong>determined</strong> to leave it out, by removing all old legacy code that would allow you to even hack it back.</p>
<p>However for today, you can download a new tool called <a href="http://www.stardock.com/products/start8/"><strong>Start8</strong></a> from <a href="http://www.stardock.com"><strong>Stardock</strong> </a>that will put the Windows <strong>orb</strong> back in and allow you to have your start button back.</p>
<p>Soon after the installation of <a href="http://technet.microsoft.com/en-us/evalcenter/hh670538.aspx"><strong>Windows Server 2012 RC1</strong></a>, one thing you definitely note is the <strong>absence</strong> of the good old Start Menu that we have been using since 1995. (Release of <a href="http://www.youtube.com/watch?v=5VPFKnBYOSI"><strong>Windows 95</strong></a>)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/07/1-Start.png"><img class="aligncenter  wp-image-1645" title="1-Start" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/1-Start.png" alt="" width="601" height="518" /></a></p>
<p>To find the Start Menu with 2012, just press the <strong>Windows Key </strong>on your keyboard <strong>or</strong> move (actually <strong><em>hover</em> </strong>and it might take a few tries to catch) your mouse to the lower left corner of the screen. (As seen below)</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Hidden.png"><img class="aligncenter  wp-image-1646" title="2-Hidden" src="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Hidden.png" alt="" width="602" height="519" /></a></p>
<p>A small windows pops up and when you click that small window the Start Menu in tiles format (<a href="http://www.microsoft.com/design/toolbox/tutorials/windows-phone-7/metro/"><strong>Metro UI</strong></a>) appears. The new Start Menu looks like you see below.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/3-Metro.png"><img class="aligncenter  wp-image-1647" title="3-Metro" src="http://cdn.smattie.com/wp-content/uploads/2012/07/3-Metro.png" alt="" width="603" height="518" /></a></p>
<p>In the developer preview it <strong>was possible</strong> to switch back to the good old start menu layout by changing a group policy. Unfortunately that does not work anymore. I have not found the way yet, to get the old Start Menu back the way it appears in Windows Server 2008 R2 <strong>without</strong> installing software. For more information on why this was changed, please see this article: <a href="http://news.cnet.com/8301-10805_3-57462865-75/why-microsoft-murdered-the-start-button-in-windows-8/"><em><strong>Why Microsoft murdered the Start button in Windows 8</strong></em></a></p>
<p>To<strong> log off</strong>, simply click your account and you will be able to either log off or lock your session as seen below.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/4-Log-Off.png"><img class="aligncenter  wp-image-1648" title="4-Log Off" src="http://cdn.smattie.com/wp-content/uploads/2012/07/4-Log-Off.png" alt="" width="607" height="522" /></a></p>
<p>Although the new menu above looks fancy, I am not a big fan to have this feature on my servers and to be honest, I still prefer to have the old Start Menu, especially when going to Administrator tools.</p>
<p>Now that you have found the Start Menu, try to find the <strong>Shutdown/Restart</strong> buttons! Go ahead I dare you to find them on your own <strong>and</strong> without scratching your head. Just kidding, to find the Shutdown or Restart button move your mouse to the <strong>top</strong> right corner of the screen (or the <strong>lower</strong> right corner of the screen). Three icons on the <strong>right</strong> side of the screen pop-up as you see below.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/5-Top-Corner.png"><img class="aligncenter  wp-image-1649" title="5-Top Corner" src="http://cdn.smattie.com/wp-content/uploads/2012/07/5-Top-Corner.png" alt="" width="604" height="521" /></a></p>
<p>The <strong>top</strong> button is the Search that you can use to find applications (PowerShell, SQL, Windows Explorer, etc.)</p>
<p>The <strong>middle</strong> button also provides access to the <strong>new Metro UI Start Menu</strong></p>
<p>The <strong>bottom</strong> button is the <strong>Settings</strong> icon and that’s the one you need to do any shutdown or restarts! (You can also use command line tools)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/07/6-Settings.png"><img class="aligncenter  wp-image-1650" title="6-Settings" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/6-Settings.png" alt="" width="603" height="519" /></a></p>
<p>Click on Power and it becomes clear what you need to do to either <strong>shutdown</strong> or <strong>restart</strong>. (Plus <strong>disconnect</strong>)</p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/07/7-Power-Off.png"><img class="aligncenter  wp-image-1651" title="7-Power Off" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/7-Power-Off.png" alt="" width="603" height="519" /></a></p>
<div class="shr-publisher-1644"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/' data-shr_title='Finding+The+Start+Menu+In+Windows+Server+2012'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/' data-shr_title='Finding+The+Start+Menu+In+Windows+Server+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/' data-shr_title='Finding+The+Start+Menu+In+Windows+Server+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/29/finding-the-start-menu-in-windows-server-2012/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Technet releases new Windows Server 2012 Jump Start video series</title>
		<link>http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=technet-releases-new-windows-server-2012-jump-start-video-series</link>
		<comments>http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/#comments</comments>
		<pubDate>Tue, 24 Jul 2012 00:19:50 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows 8]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1641</guid>
		<description><![CDATA[As I stated in an earlier post here, Windows 2012 Release candidate one was released on 31 May 2012. This product is focused on being designed with cloud computing in mind and a lot of features were built with that focus. This will not be an easy upgrade where you just slip in a disc and click [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As I stated in an earlier post <a href="http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/"><strong>here</strong></a>, Windows 2012 Release candidate one was released on 31 May 2012. This product is focused on being designed with <a href="http://en.wikipedia.org/wiki/Cloud_computing"><strong>cloud computing</strong></a> in mind and a lot of features were built with that focus. This will not be an easy upgrade where you just slip in a disc and click <strong>next</strong> until you click <strong>finish</strong>. Now, this install will make you focus on your infrastructure and what are your business needs.</p>
<p>Hyper-V gets a steroid bump in performance and functionality. It now makes for a legitimate argument that can be <strong>won</strong> to deploy Windows Server 2012 as your choice for hypervisor. A lot of really well thought out features were added to help make management of the VM more obtainable to include resource management of network, memory and CPU.</p>
<p>To help you get up to speed, I highly recommend that you take a few hours to review <a href="http://technet.microsoft.com/en-us/video/windows-server-2012-jump-start-01-core-hyper-v.aspx"><strong>these videos</strong></a> as they give you an overview of the new Server OS and some demonstrations. I will be doing a series of articles on<a href="http://www.microsoft.com/en-us/server-cloud/windows-server/2012-default.aspx"><strong> Windows Server 2012</strong></a> (formerly codenamed Windows Server 8) to highlight my experience.</p>
<p>In the meantime, enjoy these videos from Microsoft.</p>
<div class="shr-publisher-1641"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/' data-shr_title='Technet+releases+new+Windows+Server+2012+Jump+Start+video+series'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/' data-shr_title='Technet+releases+new+Windows+Server+2012+Jump+Start+video+series'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/' data-shr_title='Technet+releases+new+Windows+Server+2012+Jump+Start+video+series'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/23/technet-releases-new-windows-server-2012-jump-start-video-series/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO: Create a New Partition or Volume with SQL Server in mind</title>
		<link>http://www.smattie.com/2012/07/13/how-to-create-a-new-partition-or-volume-with-sql-server-in-mind/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-a-new-partition-or-volume-with-sql-server-in-mind</link>
		<comments>http://www.smattie.com/2012/07/13/how-to-create-a-new-partition-or-volume-with-sql-server-in-mind/#comments</comments>
		<pubDate>Fri, 13 Jul 2012 16:13:16 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[diskpart]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1612</guid>
		<description><![CDATA[This article will show you how to create a new primary partition using Disk Management and Diskpart (preferred) in Windows from an empty unallocated partition or volume. This is in line with Disk Partition Alignment Best Practices for SQL Server article. Partition Alignment in Windows Operating Systems The way partition alignment works depends on the version of [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This article will show you how to create a new primary partition using Disk Management and Diskpart (<strong>preferred</strong>) in Windows from an empty unallocated partition or volume. This is in line with <strong><a href="http://msdn.microsoft.com/en-us/library/dd758814(v=SQL.100).aspx">Disk Partition Alignment Best Practices for SQL Server</a> </strong>article<strong>.</strong></p>
<blockquote><p><strong>Partition Alignment in Windows Operating Systems</strong></p>
<p>The way partition alignment works depends on the version of Windows being used and the version in which the partition alignment was created. The following sections describe how partition alignment works in Windows Server 2008, the Windows Vista® operating system, and Windows Server 2003 and earlier.</p>
<p><strong>Windows Server 2008 and Windows Vista: New Partitions</strong></p>
<p>In Windows Vista as well as Windows Server 2008, partition alignment is usually performed by default. The default for disks larger than 4 GB is 1 MB; the setting is configurable and is found in the registry at the following location:</p>
<p><strong>HKLM\SYSTEM\CurrentControlSet\Services\VDS\Alignment</strong></p>
<p>However, if OEM setups are delivered (for example, with recovery partitions), even fresh installations of Windows Server 2008 having partitions with undesirable partition starting offsets have been observed.</p>
<p>Whatever the operating system, confirm that new partitions are properly aligned.</p>
<p><strong>Windows Server 2008: Pre-existing Partitions</strong></p>
<p>New partitions on Windows Server 2008 are likely to be aligned. Yet partitions created on earlier versions of Windows and become associated with Windows Server 2008 maintain the properties under which they were created. That is, in the absence of partition alignment being explicitly performed, these partitions are not aligned.</p>
<p><strong>Windows Server 2003 and Earlier</strong></p>
<p>Partitions created on versions of Windows up to and including Windows Server 2003 by default are not aligned. Partition alignment must be explicitly performed.</p></blockquote>
<p>With that being said let&#8217;s get back on track to creating new volumes.</p>
<p>A primary partition is a type of partition created on a hard drive that can have an operating system installed on it. A primary partition functions as though it were a physically separate hard drive. By default on a basic <strong>MBR</strong> disk, you can create a <strong>maximum</strong> of 4 Primary partitions, or 3 Primary partitions and 1 Extended partition with up to 128 logical volumes in the extended partition on a single hard disk.</p>
<p><strong>NOTE:</strong> You must be logged on in an administrator account for these commands to work.</p>
<p>If you disable the Disk Defragmenter service, then you will get the error below when you try to do anything in Disk Management. If you get this error, then make sure that the <strong>Disk Defragmenter</strong> service is set to only <strong>Manual</strong>.</p>
<p><img class="aligncenter size-full wp-image-1613" title="1-Error" src="http://cdn.smattie.com/wp-content/uploads/2012/07/1-Error.jpg" alt="" width="496" height="173" /></p>
<p>To fix this issue, open <strong>services.msc</strong> and <strong>right-click</strong> on the <strong>Disk Defragmenter</strong> service to go to properties. Change the startup type and seen below:</p>
<p><img class="aligncenter size-full wp-image-1614" title="2-Manual" src="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Manual.png" alt="" width="407" height="461" /></p>
<div><strong>OPTION ONE - </strong>Using Disk Management</div>
<p>Open Server Manager, in the left pane under Storage, click on Disk Management. As you can see I have 2 disks that are not formatted or assigned a drive letter. The first step to creating a volume, you will need to <strong>initialize</strong> your disk as seen below:</p>
<p><img class="aligncenter size-full wp-image-1615" title="3- Signature" src="http://cdn.smattie.com/wp-content/uploads/2012/07/3-Signature.png" alt="" width="565" height="606" /></p>
<p>In the middle pane, <strong>right-click</strong> on the empty <strong>unallocated</strong> partition or volume and click on <strong>New Simple Volume</strong>.</p>
<p><img class="aligncenter size-full wp-image-1616" title="4-Create" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/4-Create.png" alt="" width="539" height="174" /></p>
<p>This will launch the <strong>Wizard</strong>. Click on the <strong>Next</strong> button</p>
<p><img class="aligncenter size-full wp-image-1617" title="5-Wizard" src="http://cdn.smattie.com/wp-content/uploads/2012/07/5-Wizard.png" alt="" width="501" height="381" /></p>
<p>Type in how many <strong>MB</strong> (1 GB = 1024 MB) you want to use from the unallocated partition to create the new partition with, then click on the <strong>Next</strong> button.<br />
<strong><span style="color: red;">NOTE:</span></strong> <em>If you want to use all of the unallocated partition to create the new partition with, then type all of the maximum disk space shown for the unallocated partition. If you do <strong>not</strong> use all of the maximum disk space, then you can use the left over space from the <em>unallocated </em>partition to create another partition.</em></p>
<p><img class="aligncenter size-full wp-image-1618" title="6-Size" src="http://cdn.smattie.com/wp-content/uploads/2012/07/6-Size.png" alt="" width="504" height="383" /></p>
<p>Select an available drive letter that you want to be assigned to the new partition in Computer, then click on the <strong>Next</strong> button.</p>
<p><img class="aligncenter size-full wp-image-1619" title="7-Letter" src="http://cdn.smattie.com/wp-content/uploads/2012/07/7-Letter.png" alt="" width="501" height="382" /></p>
<p>Type in a <strong>volume label</strong> name that you want for the new partition, check the <strong>Perform a quick format</strong> box, and click on the <strong>Next</strong> button.</p>
<p><img class="aligncenter size-full wp-image-1620" title="8-Format" src="http://cdn.smattie.com/wp-content/uploads/2012/07/8-Format.png" alt="" width="505" height="379" /></p>
<p>Click on the <strong>Finish </strong>button.</p>
<p><img class="aligncenter size-full wp-image-1621" title="9-Format" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/9-Format.png" alt="" width="501" height="387" /></p>
<p>The new primary partition or volume has now been created with the assigned <em>unallocated </em>partition space.</p>
<p><img class="aligncenter size-full wp-image-1622" title="10-NewVolume" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/10-NewVolume.png" alt="" width="542" height="166" /></p>
<div><strong>OPTION TWO - </strong>Using Diskpart in an Elevated Command Prompt</div>
<div></div>
<div>Open an Elevated Command Prompt by <strong>right</strong> clicking on your start menu&#8217;s command prompt:</div>
<div></div>
<div><img class="aligncenter size-full wp-image-1623" title="11-CMD_Admin" src="http://cdn.smattie.com/wp-content/uploads/2012/07/11-CMD_Admin.png" alt="" width="304" height="64" /></div>
<div></div>
<div>In the elevated command prompt, type <strong>diskpart</strong> and press <strong>Enter, </strong>type <strong><strong>list disk</strong> </strong>and press<strong> <strong>Enter</strong>. </strong></div>
<div></div>
<div><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/12-Diskpart.png"><img class="aligncenter  wp-image-1624" title="12-Diskpart" src="http://cdn.smattie.com/wp-content/uploads/2012/07/12-Diskpart.png" alt="" width="599" height="296" /></a></div>
<div></div>
<div> In the elevated command prompt, type <strong>select disk <span style="color: red;">#</span></strong> and press <strong>Enter</strong>.<br />
<strong><span style="color: #ff0000;">NOTE:</span></strong> <em>You would substitute <strong><span style="color: red;">#</span></strong> for the disk number listed that you want to create a new partition with the free unallocated space there. For example, I want to create a new partition with the 40 GB of free space, so I would type <strong>select disk 2</strong> and press Enter</em>.</div>
<div></div>
<div>In the elevated command prompt, type <strong>create partition primary</strong> and press <strong>Enter</strong>.<br />
<strong><span style="color: red;">NOTE:</span></strong> This will create a new blank <strong>RAW</strong> partition with selected disk (<strong>#2</strong>) that contains the unallocated partition free space.</div>
<div></div>
<div>In the elevated command prompt, type <strong>assign <strong>letter=<span style="color: red;">#</span></strong></strong> and press <strong>Enter</strong>.<br />
<strong><span style="color: #ff0000;">NOTE:</span></strong> <em>This will set the drive letter for you and in my case I used<strong> <strong>assign <strong>letter=h</strong></strong></strong>. </em></div>
<div></div>
<div><strong>Caution:</strong> Realigning partitions using any tool is a destructive operation, because it wipes out existing data. Here is a template for using diskpart.exe to perform partition alignment, assign a drive letter, and format a partition.</div>
<div>In the elevated command prompt, type <strong>format fs=ntfs unit=64k label &#8220;SQL Data&#8221; nowait</strong> and press <strong>Enter</strong>.</div>
<div><strong><span style="color: red;">NOTE:</span></strong> <em>Having <strong>quick</strong> added at the end of the command will do a quick format instead of a full format on the new blank RAW partition (step 6) to make it a new partition.</em></div>
<div></div>
<div><strong><span style="color: red;">NOTE:</span></strong> <em><em>This </em>option &#8220;nowait&#8221; <strong>initiates</strong> <strong>asynchronous formatting</strong>, so that the formatting of multiple partitions can begin one after another, allowing the operations to proceed in parallel. The format option is not available in Windows Server 2003.</em></div>
<div></div>
<div><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/13-Align.png"><img class="aligncenter  wp-image-1625" title="13-Align" src="http://cdn.smattie.com/wp-content/uploads/2012/07/13-Align.png" alt="" width="599" height="294" /></a></div>
<div>
<p>Diskpart can be executed directly from the command line or scripted. The /s switch specifies an input script file.</p>
</div>
<div class="shr-publisher-1612"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/13/how-to-create-a-new-partition-or-volume-with-sql-server-in-mind/' data-shr_title='HOW+TO%3A+Create+a+New+Partition+or+Volume+with+SQL+Server+in+mind'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/13/how-to-create-a-new-partition-or-volume-with-sql-server-in-mind/' data-shr_title='HOW+TO%3A+Create+a+New+Partition+or+Volume+with+SQL+Server+in+mind'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/13/how-to-create-a-new-partition-or-volume-with-sql-server-in-mind/' data-shr_title='HOW+TO%3A+Create+a+New+Partition+or+Volume+with+SQL+Server+in+mind'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/13/how-to-create-a-new-partition-or-volume-with-sql-server-in-mind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Set The PowerShell Execution Policy</title>
		<link>http://www.smattie.com/2012/07/09/how-to-set-the-powershell-execution-policy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-set-the-powershell-execution-policy</link>
		<comments>http://www.smattie.com/2012/07/09/how-to-set-the-powershell-execution-policy/#comments</comments>
		<pubDate>Mon, 09 Jul 2012 07:01:35 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1598</guid>
		<description><![CDATA[If you are having been using the new ability to manage servers remotely using command line tools, then I am sure you have been using PowerShell. If you are new to command line tools, then this may seem strange to you, but trust me, Microsoft has been doing a great job making it easier to [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you are having been using the new ability to manage servers remotely using command line tools, then I am sure you have been using PowerShell. If you are new to command line tools, then this may seem strange to you, but trust me, Microsoft has been doing a great job making it easier to use and more powerful with each release. If you ever get stuck, then please try out the cmdlet (pronounced <strong>command let</strong>) <strong>Get-Help</strong> and in most cases it will clear things up for you.</p>
<p style="text-align: left;">One of the first things you may have run into is trying to execute an existing PowerShell script on a newly installed Windows server and getting an error, like this one:</p>
<p style="text-align: left;"><em><strong>scriptname</strong>.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see &#8220;get-help about_signing&#8221; for more details.</em></p>
<p><a href="http://cdn2.smattie.com/wp-content/uploads/2012/07/Disabled.png"><img class="aligncenter  wp-image-1605" title="Disabled" src="http://cdn2.smattie.com/wp-content/uploads/2012/07/Disabled.png" alt="" width="574" height="68" /></a></p>
<p>Here is the list of available PowerShell execution policies (please note the <strong>Default</strong>) with a brief description of each:</p>
<p><strong>AllSigned: </strong>All scripts as well as configuration files must be signed by a trusted publisher. This includes script on the local as well as remote machines.</p>
<p><strong>Default: </strong>Uses the default Restricted policy.</p>
<p><strong>RemoteSigned: </strong>All scripts as well as configuration files downloaded via the Internet must be signed by a trusted publisher.</p>
<p><strong>Restricted: </strong>As mentioned this is the PowerShell default and will not allow you to execute scripts or load configuration files.</p>
<p><strong>Unrestricted: </strong>This allows you to execute all scripts as well as load configuration files however if you download a script from the internet you are prompted to approve it before it can execute.</p>
<p>To <strong>change</strong> the PowerShell Execution Policy which you can execute any of the following above from within the PowerShell command window:</p>
<p>In my case, I tend to go with the <strong>Set-ExecutionPolicy RemoteSigned</strong></p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/1-Powershell.png"><img class="aligncenter  wp-image-1599" title="1-Powershell" src="http://cdn.smattie.com/wp-content/uploads/2012/07/1-Powershell.png" alt="" width="575" height="79" /></a></p>
<p style="text-align: left;">You can also change the Execution Policy via the registry by navigating to the following:</p>
<p><em><strong>HKLM\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell</strong></em></p>
<p style="text-align: left;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Regedit.png"><img class="aligncenter  wp-image-1600" title="2-Regedit" src="http://cdn.smattie.com/wp-content/uploads/2012/07/2-Regedit.png" alt="" width="540" height="192" /></a></p>
<p>Then locate the string value <strong>ExecutionPolicy</strong> and add any value from the list below:</p>
<p><strong><em>Restricted</em></strong><br />
<strong><em>AllSigned</em></strong><br />
<strong><em>RemoteSigned</em></strong><br />
<strong><em>Unrestricted</em></strong></p>
<p>For example if you want to set your PowerShell execution policy for RemoteSigned add the following:</p>
<p>HKLM\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell<br />
&#8220;ExecutionPolicy&#8221;=&#8221;RemoteSigned&#8221;</p>
<div class="shr-publisher-1598"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/09/how-to-set-the-powershell-execution-policy/' data-shr_title='HOW+TO%3A+Set+The+PowerShell+Execution+Policy'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/09/how-to-set-the-powershell-execution-policy/' data-shr_title='HOW+TO%3A+Set+The+PowerShell+Execution+Policy'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/09/how-to-set-the-powershell-execution-policy/' data-shr_title='HOW+TO%3A+Set+The+PowerShell+Execution+Policy'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/09/how-to-set-the-powershell-execution-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hypervisor Backup Tools: New and Improved methods for virtual machines</title>
		<link>http://www.smattie.com/2012/07/06/hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines</link>
		<comments>http://www.smattie.com/2012/07/06/hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines/#comments</comments>
		<pubDate>Fri, 06 Jul 2012 07:01:39 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1567</guid>
		<description><![CDATA[You know, it is pretty amazing that over 50% of the servers in the world today are running as virtual machines. This means that they run on top of hypervisors like VMware&#8217;s vSphere, Microsoft&#8217;s Hyper-V, and Citrix&#8217;s XenServer. However, the need to protect data on those virtual machines or to recover individual files hasn&#8217;t changed [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>You know, it is pretty amazing that <strong>over 50%</strong> of the servers in the world today are running as virtual machines. This means that they run on top of hypervisors like VMware&#8217;s vSphere, Microsoft&#8217;s Hyper-V, and Citrix&#8217;s XenServer. However, the need to protect data on those virtual machines or to recover individual files hasn&#8217;t changed from physical hosts. We will need the ability to recover for various and numerous reasons.</p>
<p>For the most part, the world of virtualization is still new to <strong><em>most</em> </strong>Windows Admins and the pursuit for the best way to back up your virtual machines is still being debated in the community. Even though Microsoft has some <strong><a href="http://technet.microsoft.com/en-us/library/dd252619.aspx">official documentation</a> </strong>on this topic, most people still scratch their head and say <strong><em>&#8220;Isn&#8217;t there an easier way?&#8221;</em></strong><em></em> As usual, the answer is.. &#8220;<strong><em>It depends!</em></strong><em></em>&#8221; Service level agreements, data retention requirements and customer expectations normally drive our success in this area.</p>
<p><strong>Hyper-V Backup Tools Types</strong></p>
<p>Anyone who has a backup tool in place today, will probably agree with me that most backup vendors will say, &#8220;You don&#8217;t need another tool, we can backup <strong><em>everything</em> </strong>including Microsoft Hyper-V.&#8221; While that might be true for some vendors, I still recommend that you will first need to consider the various types of backup tools that are available to you and test which one works best for you. Currently you have <strong>3 main types</strong>:</p>
<ul>
<li><strong>Physical Server Backup Tools</strong> &#8212; Most <strong><em>traditional</em> </strong>physical server backup tools (like Symantec Backup Exec, NetBackup, etc.) can back up virtual machines running in Hyper-V only <strong><em>with</em> </strong>agents. This will act just as if they were physical servers. Recently, many of these backup tools have been adapted to communicate directly with the vSphere or Hyper-V servers to back up your virtual machines. While these tools weren&#8217;t originally designed as a virtualization backup strategy, they have proven to be a good option, especially for environments with a hybrid (mix of physical and virtual) approach and they give you more flexibility.</li>
<li><strong>Multi-Hypervisor Backup Tools</strong> &#8212; There are a number of tools for a virtualization-specific backup, which was originally designed to back up only the vSphere hypervisor, but they have now been adapted to back up multiple hypervisors platforms, such as Hyper-V and Citrix. For mixed environments, these have also been proven to be excellent options.</li>
<li><strong>New Hyper-V Only Backup Tools</strong> &#8212; Finally, there are a <em><strong>few</strong> </em>select tools that were created and designed <em><strong>solely</strong> </em>for the purpose of backing up Microsoft Hyper-V virtual machines. If you have one or more Hyper-V servers in your environment or if you just want to evaluate some new tools designed just for Hyper-V, these are what you should consider below.</li>
</ul>
<p><strong>Please note: </strong>As always, you must select the best tool for your particular backup needs and data retention policies! So test your ideas before going to production.</p>
<p><strong>Microsoft Hyper-V Only Backup Tools &#8211; New and Improved</strong></p>
<p>The last category, we discussed above is directed toward a Microsoft Hyper-V host and here is the list:</p>
<p><a href="http://5nine.com/hyper-v-backup-disaster-recovery.aspx"><strong>5nine Cloud Backup for Hyper-V</strong></a> &#8211; is available in <strong>both</strong> a commercial and a <a href="http://5nine.com/hyper-v-backup-disaster-recovery-free.aspx"><strong>free</strong> </a>version, is a backup program for Hyper-V. It was designed with service providers in mind and it has a fully scriptable PowerShell API interface to make it more ideal for them. (It also makes it a good choice for large enterprises as well) Like these other Hyper-V backup tools, Cloud Backup works at the host-level (not the guest) so that image-based backups can be done and will not impact the guest VMs. Microsoft VSS is used to ensure that backups have application integrity and so that these backups can be performed anytime without the requirement for a backup window, and &#8220;bare-metal&#8221; virtual machine restores can be performed as well.</p>
<p><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/5nine_Backup.jpg"><img class="aligncenter  wp-image-1578" title="5nine_Backup" src="http://cdn.smattie.com/wp-content/uploads/2012/07/5nine_Backup.jpg" alt="" width="568" height="329" /></a></p>
<p><a href="http://www.altaro.com/hyper-v-backup"><strong>Altaro Hyper-V Backup</strong></a> &#8211; which claims to back up a Microsoft Hyper-V host in just &#8220;<strong><em>5 clicks</em></strong>,&#8221; this tool will also use Microsoft VSS, plus it will offer you the ability to boot a VM from the backup, file level backup, and also allows for a live backup of Linux VMs. Here&#8217;s what it looks like:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/07/Altaro-Hyper-V-Backup.png"><img class="aligncenter  wp-image-1579" title="Altaro-Hyper-V-Backup" src="http://cdn.smattie.com/wp-content/uploads/2012/07/Altaro-Hyper-V-Backup.png" alt="" width="557" height="377" /></a></p>
<p><a href="http://www.hyperoo.net/"><strong> Hyperoo Hyper-V Backup</strong></a> &#8211; unlike the other two mentioned Hyper-V backup tools above, <strong>Hyperoo</strong> is a bit different. Basically it will back up your Hyper-V virtual machines to the Hyperoo <strong>cloud</strong> service. Instead of buying a backup program, you are buying a monthly license for each of your Hyper-V hosts.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-1580" title="hyperoo-hyper-v-backup" src="http://cdn.smattie.com/wp-content/uploads/2012/07/hyperoo-hyper-v-backup.jpg" alt="" width="567" height="394" /></p>
<div class="shr-publisher-1567"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/06/hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines/' data-shr_title='Hypervisor+Backup+Tools%3A+New+and+Improved+methods+for+virtual+machines'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/06/hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines/' data-shr_title='Hypervisor+Backup+Tools%3A+New+and+Improved+methods+for+virtual+machines'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/06/hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines/' data-shr_title='Hypervisor+Backup+Tools%3A+New+and+Improved+methods+for+virtual+machines'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/06/hypervisor-backup-tools-new-and-improved-methods-for-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Free Ebooks (SQL and Windows 2012) from Microsoft Press!</title>
		<link>http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-free-ebooks-sql-and-windows-2012-from-microsoft-press</link>
		<comments>http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/#comments</comments>
		<pubDate>Thu, 05 Jul 2012 07:01:01 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[free ebooks]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[microsoft press]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1569</guid>
		<description><![CDATA[Hey Everyone, I hope you all had a safe and wonderful 4th of July. As you may or may not be aware, Microsoft has released SQL Server 2012 and on 31 May 2012 released Windows Server 2012 (RC1) Release Candidate One (which should mean Release To Manufacturing or RTM should be soon) I highly encourage all [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hey Everyone, I hope you all had a safe and wonderful <strong>4th of July</strong>.</p>
<p>As you may or may not be aware, <strong>Microsoft</strong> has released <strong>SQL Server 2012</strong> and on 31 May 2012 released <strong>Windows Server 2012 (RC1) Release Candidate One</strong> (which should mean <strong>R</strong>elease <strong>T</strong>o <strong>M</strong>anufacturing or <strong>RTM</strong> should be soon) I highly encourage all IT professionals to get up to speed on these products are big steps forward for <strong>both</strong> Microsoft and the community. These products were designed in mind and geared to be deployed with<strong> Cloud Computing</strong> in mind. Not just from a private cloud, where you deployed Virtual Machines for your own use, but also a public cloud, like <a href="http://www.windowsazure.com/en-us/"><strong>Windows Azure</strong></a> or <strong><a href="http://aws.amazon.com/">Amazon Web Services</a> </strong>where <strong>external</strong> customers can use your infrastructure to deploy their own environments for &#8220;on-demand computing.&#8221;</p>
<p><strong>SQL Server 2012</strong> has a new feature called <a href="http://msdn.microsoft.com/en-us/sqlserver/gg490638.aspx"><strong>Always On</strong></a> and I noticed there are numerous conversations on forums, blogs, etc about it. However, from reading these free books, I see that a lot of people are <strong>not</strong> fully aware of what this <strong>new</strong> buzz word means and a lot of gems are not being discussed about it. There are a <strong>few</strong> different configurations for this feature and you should really look into them in a test environment. <strong>Here is a sample of the information from this free Microsoft Press books on SQL 2012:</strong></p>
<blockquote><p>Availability groups are built on top of Windows Failover Clustering and support both shared and nonshared storage. Depending on an organization’s RPO and RTO requirements, availability groups can use either an asynchronous-commit availability mode or a synchronous-commit availability mode to move data between primary and secondary replicas. Availability groups include built-in compression and encryption as well as support for file-stream replication and auto page repair. Failover between replicas is either automatic or manual.</p>
<p>When deploying AlwaysOn Availability Groups, your first step is to deploy a Windows Failover Cluster. This is completed by using the Failover Cluster Manager Snap-in within Windows Server 2008 R2. Once the Windows Failover Cluster is formed, the remainder of the Availability Groups configurations is completed in SQL Server Management Studio. When you use the Availability Groups wizards to configure your availability groups, SQL Server Management Studio automatically creates the appropriate services, applications, and resources in Failover Cluster Manager; hence, the deployment is much easier for database administrators who are not familiar with failover clustering.</p>
<p>Now that the fundamentals of the AlwaysOn Availability Groups have been laid down, the most natural question that follows is how an organization’s operations are enhanced with this feature. Unlike database mirroring, which supports only one secondary, AlwaysOn Availability Groups supports one primary replica and up to four secondary replicas. Availability groups can also contain more than one availability database. Equally appealing is the fact you can host more than one availability group within an implementation.</p></blockquote>
<p><strong>Windows Server 2012</strong> really enhances it network stack, IIS and Hyper-V to make it possible to make this your operating system of choice for Cloud Computing. <strong>Here is a sample of the information from this free Microsoft Press books on Server 2012:</strong></p>
<blockquote><p>Virtualization can bring many benefits for businesses, including increased agility, greater flexibility, and improved cost efficiency. Combining virtualization with the infrastructure and tools needed to provision cloud applications and services brings even greater benefits for organizations that need to adapt and scale their infrastructure to meet the changing demands of today’s business environment. With its numerous improvements, Hyper-V in Windows Server 2012 provide the foundation for building private clouds that can use the benefits of cloud computing across the business units and geographical locations that typically make up today’s enterprises. By using Windows Server 2012, you can begin transitioning your organization’s datacenter environment toward an infrastructure as a service (IaaS) private cloud that can provide your business units with the “server instances on demand” capability that they need to be able to grow and respond to changing market conditions.</p>
<p>Hosting providers also can use Windows Server 2012 to build multi-tenant cloud infrastructures (both public and shared private clouds) that they can use to deliver cloud-based applications and services to customers. Features and tools included in Windows Server 2012 enable hosting providers to fully isolate customer networks from one another, deliver support for service level agreements</p></blockquote>
<p>Without further delays and to help you get up to speed, <strong>Microsoft</strong> has released the following books:</p>
<p><strong><a href="http://blogs.msdn.com/b/microsoft_press/archive/2012/06/04/free-ebook-introducing-windows-server-2012.aspx">Introducing Windows Server 2012</a> </strong>and<strong> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2012/03/15/free-ebook-introducing-microsoft-sql-server-2012.aspx">Introducing SQL Server 2012</a></strong></p>
<p>You can also find <strong>Kindle</strong> versions of these books at Amazon as well. (Links: <a href="http://www.amazon.com/Introducing-Microsoft%C2%AE-Server%C2%AE-2012-ebook/dp/B007PJ6DSW/ref=sr_1_1?s=digital-text&amp;ie=UTF8&amp;qid=1341458939&amp;sr=1-1&amp;keywords=Introducing+sql+Server%C2%AE+2012"><strong>SQL</strong> </a>and <a href="http://www.amazon.com/Introducing-Windows-Server%C2%AE-2012-ebook/dp/B0084HJB06/ref=kinw_dp_ke?ie=UTF8&amp;m=AG56TWVU5XWC2"><strong>Windows</strong></a>.)</p>
<p>Last but not least, here is a link for all <strong>free Microsoft Press Ebooks</strong> <a href="http://blogs.msdn.com/b/microsoft_press/archive/2011/03/03/ebooks-list-of-our-free-books.aspx"><strong>here</strong></a>.</p>
<div class="shr-publisher-1569"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/' data-shr_title='New+Free+Ebooks+%28SQL+and+Windows+2012%29+from+Microsoft+Press%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/' data-shr_title='New+Free+Ebooks+%28SQL+and+Windows+2012%29+from+Microsoft+Press%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/' data-shr_title='New+Free+Ebooks+%28SQL+and+Windows+2012%29+from+Microsoft+Press%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/05/new-free-ebooks-sql-and-windows-2012-from-microsoft-press/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Video: EC2 Autoscaling with ELB and RDS in Amazon Web Services&#8217; VPC</title>
		<link>http://www.smattie.com/2012/07/04/video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc</link>
		<comments>http://www.smattie.com/2012/07/04/video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc/#comments</comments>
		<pubDate>Thu, 05 Jul 2012 02:41:04 +0000</pubDate>
		<dc:creator>Lance Byrd</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Lance]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[auto-scaling]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[elb]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[rds]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1554</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Notes to go along with the video: Add in html and apache [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">// <![CDATA[
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "as-elb-rds-in-vpc-h264.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s21rf8q04m46kv.cloudfront.net/cfx/st",
        width: 480
    });
// ]]&gt;</script><br />
<strong>Notes to go along with the video:</strong><br />
Add in html and apache (set apache to run on launch) index.html</p>
<blockquote><p><!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"><br />
HTML<br />
   HEAD<br />
      TITLE<br />
         A Small Hello from AWS<br />
      TITLE<br />
   HEAD<br />
BODY<br />
   This is very minimal &#8220;Hello World&#8221; HTML document for the AutoScaling, ELB, and RDS in VPC.</P><br />
BODY
</p></blockquote>
<p>chkconfig &#8211;level 345 httpd on<br />
service httpd start<br />
netstat -a  (see if httpd is listing) </p>
<p><strong>1. Do a Create Image (make an AMI)</strong></p>
<p><strong>2. Create Load Balancer production-lb in VPC</strong></p>
<p><strong>3. Commands used</strong></p>
<p>as-create-launch-config MyLC &#8211;image-id ami-XXXXXXXX &#8211;instance-type m1.small &#8211;group sg-xxxxxxx &#8211;region us-west-2</p>
<p>as-create-auto-scaling-group MyGroup &#8211;launch-configuration MyLC &#8211;availability-zones &#8220;us-west-2b,us-west-2a&#8221; &#8211;min-size 2 &#8211;max-size 10 &#8211;vpc-zone-identifier<br />
&#8220;subnet-XXXXXX,subnet-XXXXXXX&#8221; &#8211;default-cooldown 300 &#8211;load-balancers production-lb &#8211;region us-west-2</p>
<p>as-put-scaling-policy policy-scale-UP-on-CPU &#8211;auto-scaling-group MyGroup &#8211;type ChangeInCapacity &#8211;adjustment 2 &#8211;cooldown 300 &#8211;region us-west-2</p>
<p>mon-put-metric-alarm alarm-server-scale-UP &#8211;alarm-actions arn:aws:???????????????????? &#8211;metric-name CPUUtilization &#8211;unit Percent &#8211;namespace AWS/EC2 &#8211;statistic Average &#8211;dimensions=&#8221;AutoScalingGroupName=MyGroup&#8221; &#8211;period 60 &#8211;evaluation-periods 2 &#8211;threshold 60 &#8211;comparison-operator GreaterThanThreshold &#8211;region us-west-2</p>
<p>as-put-scaling-policy policy-scale-DOWN-on-CPU &#8211;auto-scaling-group MyGroup &#8211;type ChangeInCapacity &#8220;&#8211;adjustment=-2&#8243; &#8211;region us-west-2</p>
<p>mon-put-metric-alarm alarm-server-scale-DOWN &#8211;alarm-actions arn:aws:??????????????????? &#8211;metric-name CPUUtilization &#8211;unit Percent &#8211;namespace AWS/EC2 &#8211;statistic Average &#8211;dimensions=&#8221;AutoScalingGroupName=MyGroup&#8221; &#8211;period 60 &#8211;evaluation-periods 5 &#8211;threshold 20 &#8211;comparison-operator LessThanThreshold &#8211;region us-west-2</p>
<p>as-update-auto-scaling-group MyGroup &#8211;min-size 0 &#8211;max-size 0 &#8211;region us-west-2</p>
<p>mon-describe-alarms &#8211;region us-west-2<br />
mon-delete-alarms alarm-server-scale-UP &#8211;region us-west-2<br />
mon-delete-alarms alarm-server-scale-DOWN &#8211;region us-west-2</p>
<p>as-describe-policies &#8211;region us-west-2<br />
as-delete-policy policy-scale-UP-on-CPU &#8211;auto-scaling-group MyGroup &#8211;region us-west-2<br />
as-delete-policy policy-scale-DOWN-on-CPU &#8211;auto-scaling-group MyGroup &#8211;region us-west-2</p>
<p>as-describe-auto-scaling-groups MyGroup &#8211;headers &#8211;region us-west-2<br />
as-delete-auto-scaling-group MyGroup &#8211;region us-west-2<br />
as-delete-launch-config MyLC &#8211;region us-west-2</p>
<div class="shr-publisher-1554"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/07/04/video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc/' data-shr_title='Video%3A+EC2+Autoscaling+with+ELB+and+RDS+in+Amazon+Web+Services%27+VPC'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/07/04/video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc/' data-shr_title='Video%3A+EC2+Autoscaling+with+ELB+and+RDS+in+Amazon+Web+Services%27+VPC'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/07/04/video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc/' data-shr_title='Video%3A+EC2+Autoscaling+with+ELB+and+RDS+in+Amazon+Web+Services%27+VPC'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/07/04/video-ec2-autoscaling-with-elb-and-rds-in-amazon-web-services-vpc/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>DBCC CHECKDB A Further Explanation</title>
		<link>http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dbcc-checkdb-a-further-explanation</link>
		<comments>http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/#comments</comments>
		<pubDate>Wed, 27 Jun 2012 05:25:03 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1548</guid>
		<description><![CDATA[In an earlier, post I talked about doing backups and also making sure they are being done with data that has been verified as healthy. We want to avoid the scenario of garbage in leads to garbage out. As stated in that earlier article: Robert Davis (Blog &#124; Twitter) provided me with some good advice: You should [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In an earlier, <a href="http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/"><strong>post</strong></a> I talked about doing backups and also making sure they are being done with data that has been verified as healthy. We want to avoid the scenario of <strong>garbage in</strong> leads to <strong>garbage out</strong>. As stated in that earlier article:</p>
<p><strong>Robert Davis</strong> (<a href="http://www.sqlsoldier.com/wp/"><strong>Blog</strong></a> | <a href="https://twitter.com/#!/SQLSoldier"><strong>Twitter</strong></a>) provided me with some good advice:</p>
<blockquote><p><em>You should be running DBCC CheckDB regularly. Daily if your system can handle it, but at least weekly. You don’t need to check for the last good DBCC CheckDB if you are running regular CheckDB. For backups, you should be using the CHECKSUM option of the backup command.</em></p></blockquote>
<p><strong>So how do we get there and what tool can we use? </strong>The answer is simple we can use the built in tool<strong> DBCC CHECKDB.</strong></p>
<p><strong>DBCC CHECKDB</strong> checks the logical <strong>and</strong> physical integrity of all the objects in the specified database. If DBCC CHECKDB is ran on a database please note that you do not need to run DBCC CHECKALLOC, DBCC CHECKTABLE, and DBCC CHECKCATALOG since DBCC CHECKDB <strong>includes</strong> all the three command. Usage of these <strong>built-in</strong> DBCC commands is listed below.</p>
<p><strong>DBCC CHECKALLOC</strong> – Checks the consistency of disk space allocation structures for a specified database.</p>
<p><strong>DBCC CHECKTABLE</strong> – Checks the integrity of all the pages and structures that make up the table or indexed view.</p>
<p><strong>DBCC CHECKCATALOG</strong> – Checks for catalog consistency within the specified database. The database must be online.</p>
<p>Along with above <strong>three</strong> DBCC commands it also runs following two tasks to check the validity of the database both physical as well logical. If the DBCC check has returned any errors on a production database, the best solution is to RESTORE your DATABASE from BACKUP. If you&#8217;re <strong>unable</strong> to schedule a full DBCC CHECKDB in a maintenance window, you can add WITH CHECKSUM to your backup routines, and do full CHECKDB&#8217;s at a different time (SQL 2005 and later).</p>
<p><strong>Note</strong> that a BACKUP [...] WITH CHECKSUM does <strong>not</strong> replace DBCC CHECKDB. Paul Randal has more details <a href="http://www.sqlskills.com/BLOGS/PAUL/post/A-SQL-Server-DBA-myth-a-day-%282730%29-use-BACKUP-WITH-CHECKSUM-to-replace-DBCC-CHECKDB.aspx"><strong>here</strong></a>.</p>
<div class="shr-publisher-1548"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/' data-shr_title='DBCC+CHECKDB+A+Further+Explanation'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/' data-shr_title='DBCC+CHECKDB+A+Further+Explanation'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/' data-shr_title='DBCC+CHECKDB+A+Further+Explanation'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/26/dbcc-checkdb-a-further-explanation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HOW TO: Import CSV Data files into SQL Server</title>
		<link>http://www.smattie.com/2012/06/18/how-to-import-csv-data-files-into-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-import-csv-data-files-into-sql-server</link>
		<comments>http://www.smattie.com/2012/06/18/how-to-import-csv-data-files-into-sql-server/#comments</comments>
		<pubDate>Mon, 18 Jun 2012 07:01:27 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[Data Import]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1509</guid>
		<description><![CDATA[How many times have we had to perform an inventory of either our equipment or software assets and then get asked to import that information into a database of some sort? Recently a friend at work asked me for some assistance on creating such a database to inventory server hardware. Lucky for me they had most of the data fields input taken [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>How many times have we had to perform an inventory of either our equipment or software assets and then get asked to import that information into a database of some sort?</p>
<p>Recently a friend at work asked me for some assistance on creating such a database to inventory server hardware. Lucky for me they had most of the data fields input taken care of and to add to that luck, they were scanning bar codes and dumping the data into <a href="http://office.microsoft.com/en-us/excel/"><strong>Microsoft Excel</strong></a>. I made a suggestion at that point to save the data as <strong>CSV</strong> files and then we can quickly input the data into <a href="http://www.microsoft.com/sqlserver/en/us/default.aspx"><strong>Microsoft SQL Server</strong></a>.</p>
<p>In this article, I am going to walk you through the process of creating the database, <strong>importing</strong> the data from the CSV file and then adding <strong>more</strong> information from an <strong>additional</strong> CSV file. In this scenario, I am going to create a database called Inventory using TSQL command: <strong>CREATE DATABASE [Inventory]</strong></p>
<p><img class="aligncenter size-full wp-image-1515" title="0-CreateDB" src="http://cdn.smattie.com/wp-content/uploads/2012/06/0-CreateDB.png" alt="" width="492" height="149" /></p>
<p>&nbsp;</p>
<p>Then I am going to locate my CSV files that I will use to demo this import:</p>
<p><img class="aligncenter size-full wp-image-1516" title="1-Files" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/1-Files.png" alt="" width="586" height="57" /></p>
<p>Now, we can<strong> right-click</strong> on the newly created database, go to <strong>Tasks</strong>, then <strong>Import data</strong>:</p>
<p><img class="aligncenter size-full wp-image-1518" title="3-Import" src="http://cdn.smattie.com/wp-content/uploads/2012/06/3-Import.png" alt="" width="481" height="481" /></p>
<p>It will generate this <strong>Wizard</strong> to walk you through the import:</p>
<p><img class="aligncenter size-full wp-image-1519" title="4-Wizard" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/4-Wizard.png" alt="" width="554" height="563" /></p>
<p>Now, we can select the data source we wish to use, which in this case is a <strong>Flat File Source</strong>:</p>
<p><img class="aligncenter size-full wp-image-1520" title="5-DataSource" src="http://cdn.smattie.com/wp-content/uploads/2012/06/5-DataSource.png" alt="" width="557" height="565" /></p>
<p>We will browse to the file</p>
<p><img class="aligncenter size-full wp-image-1521" title="6a-Open" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/6a-Open.png" alt="" width="562" height="565" /></p>
<p>Then select file (ensure you either <strong>choose</strong> all files or CSV files)</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/6b-Open.png"><img class="aligncenter  wp-image-1522" title="6b-Open" src="http://cdn.smattie.com/wp-content/uploads/2012/06/6b-Open.png" alt="" width="543" height="328" /></a></p>
<p>You can also <strong>preview</strong> how the import will look as well before you actually do it:</p>
<p><img class="aligncenter size-full wp-image-1523" title="6c-Preview" src="http://cdn.smattie.com/wp-content/uploads/2012/06/6c-Preview.png" alt="" width="554" height="564" /></p>
<p>&nbsp;</p>
<p>Configure how you want to import the database, server and connections:</p>
<p><img class="aligncenter size-full wp-image-1524" title="7-ImportDB" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/7-ImportDB.png" alt="" width="559" height="566" /></p>
<p>You can also change the table name as well, other wise it will take on the name of the file it is importing from:</p>
<p><img class="aligncenter size-full wp-image-1525" title="8-Destination" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/8-Destination.png" alt="" width="556" height="569" /></p>
<p>Then you can run the package now to import:</p>
<p><img class="aligncenter size-full wp-image-1510" title="9-Run" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/9-Run.png" alt="" width="557" height="564" /></p>
<p><strong>Confirm</strong> your selections and then select <strong>finish</strong> and you are on your way:</p>
<p><img class="aligncenter size-full wp-image-1511" title="10-Finish" src="http://cdn.smattie.com/wp-content/uploads/2012/06/10-Finish.png" alt="" width="558" height="565" /></p>
<p>Then you can verify the import in SQL Server, by expanding your <strong>database</strong>, then <strong>tables </strong>and then<strong> Select Top 1000 rows</strong></p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/11-DbField.png"><img class="aligncenter  wp-image-1512" title="11-DbField" src="http://cdn.smattie.com/wp-content/uploads/2012/06/11-DbField.png" alt="" width="548" height="440" /></a></p>
<p style="text-align: left;">As you can see the fields are the same as what we saw in the <strong>CSV</strong> file in <strong>Microsoft Excel</strong>. The last step is updating the inventory database from another scan, say we have another person using this method at another location and we want to update their data into our database. It is the same process as listed above, but you will need to check mark what is <strong>highlighted</strong> below:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1513" title="12-Update CSV file" src="http://cdn.smattie.com/wp-content/uploads/2012/06/12-Update-CSV-file.png" alt="" width="556" height="562" /></p>
<p style="text-align: left;">Basically it will tell the import to skip the top column, which is used mostly as a header:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/06/13-Omit.png"><img class="aligncenter  wp-image-1514" title="13-Omit" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/13-Omit.png" alt="" width="555" height="26" /></a></p>
<p style="text-align: left;"> And there you have it, an easy import of data into a new user database for you to keep track of your assets. As usual, I hope this information helps.</p>
<div class="shr-publisher-1509"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/18/how-to-import-csv-data-files-into-sql-server/' data-shr_title='HOW+TO%3A+Import+CSV+Data+files+into+SQL+Server'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/18/how-to-import-csv-data-files-into-sql-server/' data-shr_title='HOW+TO%3A+Import+CSV+Data+files+into+SQL+Server'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/18/how-to-import-csv-data-files-into-sql-server/' data-shr_title='HOW+TO%3A+Import+CSV+Data+files+into+SQL+Server'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/18/how-to-import-csv-data-files-into-sql-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Video: EC2 Windows Command Line Tools installation</title>
		<link>http://www.smattie.com/2012/06/16/ec2-windows-command-line-tools-installation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ec2-windows-command-line-tools-installation</link>
		<comments>http://www.smattie.com/2012/06/16/ec2-windows-command-line-tools-installation/#comments</comments>
		<pubDate>Sun, 17 Jun 2012 06:39:00 +0000</pubDate>
		<dc:creator>Lance Byrd</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Lance]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1491</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; This file contents from this video can be download here. This zip [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">// <![CDATA[
jwplayer("container").setup({         flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",         file: "windowscommandlinetools.mp4",         height: 270,         provider: "rtmp",         streamer: "rtmp://s21rf8q04m46kv.cloudfront.net/cfx/st",         width: 480     });
// ]]&gt;</script><br />
This file contents from this video can be download <a href="http://s3.amazonaws.com/smattie-download/aws_command_line_tools.zip"><strong>here</strong></a>. This zip file will have the <strong>latest</strong> AWS tools and other files needed that are shown in this video to successfully install the command line tools for Amazon Web Services.</p>
<div class="shr-publisher-1491"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/16/ec2-windows-command-line-tools-installation/' data-shr_title='Video%3A+EC2+Windows+Command+Line+Tools+installation'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/16/ec2-windows-command-line-tools-installation/' data-shr_title='Video%3A+EC2+Windows+Command+Line+Tools+installation'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/16/ec2-windows-command-line-tools-installation/' data-shr_title='Video%3A+EC2+Windows+Command+Line+Tools+installation'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/16/ec2-windows-command-line-tools-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is better to use Database Mirroring or Log Shipping for SQL Server?</title>
		<link>http://www.smattie.com/2012/06/11/what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server</link>
		<comments>http://www.smattie.com/2012/06/11/what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 07:01:25 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1467</guid>
		<description><![CDATA[Well, the answer to this question begins with every experienced DBA&#8217;s favorite answer&#8230; It depends&#8230; A great place to start is with this MSDN article on Database Mirroring and Log Shipping (SQL Server). It is kind of like a questionnaire to determine what would be best and it explains this topic in fairly simple terms. Before I begin, I do [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Well, the answer to this question begins with every experienced DBA&#8217;s favorite answer&#8230; <strong>It depends&#8230;</strong> <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A great place to start is with this <strong>MSDN</strong> article on<strong> <a href="http://msdn.microsoft.com/en-us/library/ms187016.aspx">Database Mirroring and Log Shipping (SQL Server)</a></strong>. It is kind of like a questionnaire to determine what would be best and it explains this topic in fairly simple terms.</p>
<p>Before I begin, I do want to point out that you can do <strong>both</strong> mirroring and log shipping. Another point about mirroring is that the official recommendation by <strong>Microsoft</strong> is to only mirror a <strong>maximum</strong> of <strong>10</strong> databases per server because each mirroring session consumes 2 threads. Log shipping does <strong>not</strong> have this limitation. You can find more details/best practices with this <strong><a href="http://support.microsoft.com/kb/2001270">KB Article</a></strong> and <strong><a href="http://technet.microsoft.com/library/Cc917681">TechNet blog</a></strong>.</p>
<p>Database mirroring is a <strong>functionality</strong> in the SQL Server engine that will read from the transaction log and then copies those transactions from the <strong>principal</strong> server instance to the <strong>mirror</strong> server instance. Database mirroring can operate <strong>synchronously</strong> or <strong>asynchronously</strong>. If configured to operate synchronously, the transaction on the principal will <strong>not</strong> be committed until it is hardened to disk on the mirror. Database mirroring supports <strong>only</strong> one mirror for <strong>each</strong> principal database. Database mirroring also supports <strong>automatic</strong> failover if the principal database becomes unavailable. The <strong>mirror</strong> database is always <strong>offline</strong> in a recovering state, but you can <strong>create</strong> snapshots of the mirror database to provide read access for <strong>reporting</strong>, etc.</p>
<p>Log shipping is based on SQL Server Agent jobs that periodically take log backups of the primary database, copy the backup files to one or more secondary server instances, and restore the backups into the secondary database(s). Log shipping supports an unlimited number of secondaries for each primary database. It also can provide you with a more flexible solution to use a reporting server instance with <strong>older</strong> data.</p>
<p>In my experience, database mirroring is <strong>preferable</strong> to log shipping in most cases, although log shipping does have the following advantages:</p>
<p>1. Provides backup files as part of the process<br />
2. Multiple secondaries are supported<br />
3. Possible to introduce a fixed delay when applying logs to allow the secondary to be used for recovering from user error or data corruption</p>
<p>More information about <strong>both</strong> technologies is available in SQL Server Books Online in the topics &#8220;<strong>Log Shipping <strong>Overview</strong></strong>&#8221; and &#8220;<strong>Overview of Database Mirroring</strong>&#8220;.</p>
<p>I have created a simple spreadsheet for both technologies to help you determine which one might be more suited for your needs:</p>
<p><strong>Database Mirroring Chart:</strong></p>
<p><img class="aligncenter size-full wp-image-1472" title="Mirroring_Chart" src="http://cdn.smattie.com/wp-content/uploads/2012/06/Mirroring_Chart.png" alt="" width="505" height="564" /></p>
<p>&nbsp;</p>
<p><strong>Log Shipping Chart:</strong></p>
<p><img class="aligncenter size-full wp-image-1469" title="LogShip_Chart" src="http://cdn.smattie.com/wp-content/uploads/2012/06/LogShip_Chart.png" alt="" width="499" height="402" /></p>
<div class="shr-publisher-1467"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/11/what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server/' data-shr_title='What+is+better+to+use+Database+Mirroring+or+Log+Shipping+for+SQL+Server%3F'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/11/what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server/' data-shr_title='What+is+better+to+use+Database+Mirroring+or+Log+Shipping+for+SQL+Server%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/11/what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server/' data-shr_title='What+is+better+to+use+Database+Mirroring+or+Log+Shipping+for+SQL+Server%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/11/what-is-better-to-use-database-mirroring-or-log-shipping-for-sql-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PowerShell Tip: BgPing – A High Performance Bulk Ping Utility</title>
		<link>http://www.smattie.com/2012/06/07/powershell-tip-bgping-a-high-performance-bulk-ping-utility/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-tip-bgping-a-high-performance-bulk-ping-utility</link>
		<comments>http://www.smattie.com/2012/06/07/powershell-tip-bgping-a-high-performance-bulk-ping-utility/#comments</comments>
		<pubDate>Fri, 08 Jun 2012 06:27:54 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1448</guid>
		<description><![CDATA[Last week, I was building out a 5 Node Windows 2008R2 cluster for use as a Hyper-V server.One of my nodes was giving me trouble. I was able to successfully install, configure and add it to the cluster, but when I started placing Virtual Machines it would lose access to the Cluster Shared Volumes. (CSV) After that loss to [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Last week, I was building out a <strong>5 Node</strong> Windows 2008R2 cluster for use as a <strong>Hyper-V</strong> server.One of my nodes was giving me trouble. I was able to successfully install, configure and add it to the cluster, but when I started placing Virtual Machines it would lose access to the <strong><a href="http://technet.microsoft.com/en-us/library/dd759255.aspx">Cluster Shared Volumes</a></strong>. (<strong>CSV</strong>)</p>
<p>After that loss to the storage, it would put the VM in a <strong>stopped</strong> state with an <strong>invalid</strong> configuration. Due to a bad HBA driver install, I had to rebuild the node, but somehow one of the NIC interfaces got plugged into the wrong port on the switch and it was no longer on the correct VLAN, which happened to be the <strong><a href="http://blogs.technet.com/b/askcore/archive/2010/02/22/windows-server-2008-failover-clusters-networking-part-2.aspx">cluster heartbeat connection</a></strong>. At the time, I was <strong>not</strong> aware that this had happen. I just saw that I was having issues with a network connectivity when I reviewed the cluster validation report.</p>
<p>This time around, when I tried to verify the NIC settings, I was running into a challenge. I could <strong>not</strong> see the network switch to verify and was <strong>not</strong> able to see if we connected to the proper networks.</p>
<p>Lucky for me a quick search on the internet lead me to <strong><a href="http://poshtips.com/2011/03/28/bgping-a-high-performance-bulk-ping-utility/">here</a></strong>. <strong>BGPing</strong> is a great <strong>PowerShell</strong>script that will allow you to test numerous devices all at once and then output the results to a .csv file. (<strong>Comma-separated values</strong>)</p>
<p>It is pretty simple to run. First you need to configure the script to use a <strong>host file</strong> and an <strong>output file</strong>:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/1-Script.png"><img class="wp-image-1449 aligncenter" title="1-Script" src="http://cdn.smattie.com/wp-content/uploads/2012/06/1-Script.png" alt="" width="608" height="125" /></a></p>
<p>Then you need to either<strong> add IP addresses or Server names</strong>. In my case, I wanted to ping all <strong>5 networks</strong> to all <strong>5 nodes</strong>, so I entered in all of the IP addresses:</p>
<p><img class="aligncenter size-full wp-image-1450" title="2-IPlist" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/2-IPlist.png" alt="" width="165" height="266" /></p>
<p>Now, you are ready to <strong>run</strong> the script:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/06/3-Execute.png"><img class="wp-image-1451 aligncenter" title="3-Execute" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/3-Execute.png" alt="" width="575" height="332" /></a></p>
<p>And now you will see the <strong>output</strong> file as seen below:</p>
<p><img class="aligncenter size-full wp-image-1452" title="4-created_file" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/4-created_file.png" alt="" width="585" height="30" /></p>
<p>With these <strong>contents</strong>:</p>
<p><img class="aligncenter size-full wp-image-1453" title="5-File_Results" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/5-File_Results.png" alt="" width="356" height="278" /></p>
<p>Of course, this timed out when I was at home since I am on a different network scheme. However, at work I was able to see that the one node I was having issues with was <strong>unable</strong> to ping any of the nodes on the cluster heartbeat. Plus all of the other nodes could <strong>not</strong> ping this problem node on the cluster network, so it became real clear that this node had a NIC connected into the wrong port on the switch. I then was able to advise the network team what actions to take to <strong>resolve</strong> the issue.</p>
<p>&nbsp;</p>
<div class="shr-publisher-1448"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/07/powershell-tip-bgping-a-high-performance-bulk-ping-utility/' data-shr_title='PowerShell+Tip%3A+BgPing+%E2%80%93+A+High+Performance+Bulk+Ping+Utility'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/07/powershell-tip-bgping-a-high-performance-bulk-ping-utility/' data-shr_title='PowerShell+Tip%3A+BgPing+%E2%80%93+A+High+Performance+Bulk+Ping+Utility'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/07/powershell-tip-bgping-a-high-performance-bulk-ping-utility/' data-shr_title='PowerShell+Tip%3A+BgPing+%E2%80%93+A+High+Performance+Bulk+Ping+Utility'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/07/powershell-tip-bgping-a-high-performance-bulk-ping-utility/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server&#8217;s Recovery Model Setting Based Upon Model (System) Database!</title>
		<link>http://www.smattie.com/2012/06/06/sql-servers-recovery-model-setting-based-upon-model-system-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-servers-recovery-model-setting-based-upon-model-system-database</link>
		<comments>http://www.smattie.com/2012/06/06/sql-servers-recovery-model-setting-based-upon-model-system-database/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 06:28:24 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1432</guid>
		<description><![CDATA[In my last article, I talked about COPY_Only backups and I very briefly mentioned Recovery Models for SQL Server. I will one do do a more detailed post when I find some time, but I did want to share this little tip with you about the impact the Model database can have on your databases. This [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my last article, I talked about <strong><a href="http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/">COPY_Only</a></strong> backups and I very briefly mentioned <strong><a href="http://msdn.microsoft.com/en-us/library/ms189275.aspx">Recovery Models</a> </strong>for<strong> SQL Server</strong>. I will one do do a more detailed post when I find some time, but I did want to share this little tip with you about the impact the Model database can have on your databases.</p>
<p>This week I was setting up some database mirroring for a few environments using some setup scripts. It was failing and at first, I was puzzled by the result. I checked the script and I could see the databases get backed up, then get copied over to the secondary server to get properly restored. However, it would <strong>never</strong> get mirrored and I knew on most of other servers how we were configured, so I made a an <strong>oversight</strong>. As I was talking to myself trying to figure out what was happening, my co-worker asked me what was troubling me. I showed him the process I was doing  and he was also surprised that it would <strong>not</strong> mirror.</p>
<p>Then I was talking with <strong>Argenis Fernandez</strong> (<strong><a href="http://sqlblog.com/blogs/argenis_fernandez/default.aspx">Blog</a></strong> | <strong><a href="https://twitter.com/#!/DBArgenis">Twitter</a></strong>) over <strong><a href="http://lync.microsoft.com/en-us/Pages/unified-communications.aspx">Lync</a></strong> who reminded me of the impact the <strong>Model</strong> (system) database can cause. <strong>So let me show the impact</strong> <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Lets check the Model database, which the default setting for all system databases is <strong>simple recovery model </strong>as you can see here:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/06/1-Model_Simple.png"><img class="wp-image-1439 aligncenter" title="1-Model_Simple" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/1-Model_Simple.png" alt="" width="570" height="510" /></a></p>
<p style="text-align: left;">As you might be aware, this setting will <strong>prevent</strong> you from doing any SQL high availability options like log shipping or database mirroring, plus you will lose the ability to restore to a specific point in time. So what happens if we create a database with the Model database setup like this one?</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/2-Test_Simple.png"><img class="wp-image-1434 aligncenter" title="2-Test_Simple" src="http://cdn.smattie.com/wp-content/uploads/2012/06/2-Test_Simple.png" alt="" width="556" height="217" /></a></p>
<p style="text-align: left;">As you can see we created a new database called<strong> testwith_simple</strong> so lets check the properties:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/3-Simple_results.png"><img class="wp-image-1435 aligncenter" title="3-Simple_results" src="http://cdn.smattie.com/wp-content/uploads/2012/06/3-Simple_results.png" alt="" width="561" height="505" /></a></p>
<p style="text-align: left;">As you can see it took the same setting as the <strong>Model</strong> database. So what happens if we change Model&#8217;s database on the fly without any restarts!</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/4-Model_Full.png"><img class="wp-image-1436 aligncenter" title="4-Model_Full" src="http://cdn.smattie.com/wp-content/uploads/2012/06/4-Model_Full.png" alt="" width="564" height="505" /></a></p>
<p style="text-align: left;">Now that we set the Model database to <strong>Full</strong>, let&#8217;s create a <strong>new</strong> database:</p>
<p style="text-align: left;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/06/5-Test_Ful.png"><img class="wp-image-1437 aligncenter" title="5-Test_Ful" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/5-Test_Ful.png" alt="" width="559" height="216" /></a>As you can see we created a new database called<strong> testwith_full</strong> so lets check the properties:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/06/6-Full_results.png"><img class="wp-image-1438 aligncenter" title="6-Full_results" src="http://cdn2.smattie.com/wp-content/uploads/2012/06/6-Full_results.png" alt="" width="562" height="504" /></a></p>
<p style="text-align: left;">As you can see it took the same setting as the <strong>Model</strong> database again, which is the <strong>Full Recovery</strong> model. As usual, I hope this article helps.</p>
<div class="shr-publisher-1432"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/06/sql-servers-recovery-model-setting-based-upon-model-system-database/' data-shr_title='SQL+Server%27s+Recovery+Model+Setting+Based+Upon+Model+%28System%29+Database%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/06/sql-servers-recovery-model-setting-based-upon-model-system-database/' data-shr_title='SQL+Server%27s+Recovery+Model+Setting+Based+Upon+Model+%28System%29+Database%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/06/sql-servers-recovery-model-setting-based-upon-model-system-database/' data-shr_title='SQL+Server%27s+Recovery+Model+Setting+Based+Upon+Model+%28System%29+Database%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/06/sql-servers-recovery-model-setting-based-upon-model-system-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Server Copy_Only Backups</title>
		<link>http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=microsoft-sql-server-copy_only-backups</link>
		<comments>http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/#comments</comments>
		<pubDate>Mon, 04 Jun 2012 06:51:44 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1421</guid>
		<description><![CDATA[One of the great books, I have read this year and have really enjoyed has been Rod Colledge&#8217;s (Blog &#124; Twitter) SQL Server 2008 Administration in Action. I have really enjoyed this book and for being technical it was really well laid out, plus easy to follow. My copy has been thoroughly worn and marked up with notes. [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>One of the great books, I have read this year and have really enjoyed has been <strong>Rod Colledge&#8217;s (<a href="http://sqlcrunch.com/">Blog</a> | <a href="https://twitter.com/#!/rodcolledge">Twitter</a>)</strong> <strong><a href="http://www.amazon.com/gp/product/193398872X?ie=UTF8&amp;tag=wwwrodcolledg-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=193398872X">SQL Server 2008 Administration in Action</a>. </strong>I have really enjoyed this book and for being technical it was really well laid out, plus easy to follow. <strong><em>My copy has been thoroughly worn and marked up with notes</em></strong>. If you are  wanting to be a SQL Server DBA or you want to improve your skills, I highly recommend this book.</p>
<p>Today I am going to cover one of his Chapter 10 topics about backups, specifically<strong> <a href="http://msdn.microsoft.com/en-us/library/ms191495.aspx">Copy_Only</a></strong>.</p>
<p>First off we need to briefly cover that there are <strong>three</strong> different <strong><a href="http://msdn.microsoft.com/en-us/library/ms189275.aspx">recovery models</a> </strong>for SQL Server: <strong>Simple</strong>, <strong>Full</strong> and <strong>bulk logged</strong>.</p>
<p>As you maybe aware, each database has a transaction log and it is unique for each database. The head of a log chain is a full database backup and each transaction log backup forms a part of this chain. To restore a database to a point of time, you need to have a database in <strong>Full Recovery</strong> mode (or <strong>Bulk logged</strong>) the restore is based upon a requirement to have an unbroken chain of transaction log backups. In this recovery model, you will need the correct <strong><a href="http://msdn.microsoft.com/en-us/library/ms190411%28v=sql.105%29.aspx">log sequence numbers</a></strong> and have them &#8220;played back&#8221; in order. If you tried to do them out of the LSN order, you will get an error like the message below:</p>
<blockquote><p><em>Msg 4305, Level 16, State 1, Line 1</em><br />
<em>The log in this backup set begins at <strong>LSN 24100000002283000001</strong>, which is too recent to apply to the database.</em><br />
<em>An earlier log backup that includes <strong>LSN 24100000002236000001</strong> can be restored.</em><br />
<em>Msg 3013, Level 16, State 1, Line 1</em><br />
<em>RESTORE LOG is terminating abnormally.</em></p></blockquote>
<p>So what do you do in the situation where you have  current database backup rotation but you want to back up a database to restore on another server? For example, let&#8217;s say that a developer is designing a solution and wants to take the current database and restore it to his workstation. He does this without telling anyone, but when the next SQL Server restore happens from a differential it will fail due to this backup change. Sadly, that is when you find out what happened. Why did this happen? Well, a SQL Server differential backup uses a <strong><a href="http://msdn.microsoft.com/en-us/library/ms190950%28v=sql.105%29.aspx">Differential Changed Map</a></strong> (DCM) to track which extents have changed since the last full backup.</p>
<p>You might be familiar with tape backup types: <strong><em>Differential</em></strong><em> backs up any data that has changed since the last full backup and <strong>leaves the archive bit alone</strong>.  <strong>Incremental</strong> backs up any data that has changed since the last full or incremental backup and <strong>resets</strong> the archive bit. </em>SQL Server for the most part, the backups act like a <strong>Incremental </strong>backup where it resets the archive bit. With the <strong><a href="http://msdn.microsoft.com/en-us/library/ms191495.aspx">Copy_Only</a> </strong>backup, it kind of acts like a <strong>Differential</strong> backup.</p>
<p>In my example above with the developer when they did that backup, it reset the DCM to relate to the developer&#8217;s backup instead of what we have configured as either a <strong>maintenance plan</strong> or a <strong>SQL Agent job</strong>.What makes it ugly, is if we ask the developer for the backup he took and sadly find out that he <strong>deleted</strong> it to save space on his workstation. So that means we will have a broken transaction log with missing LSN&#8217;s which will <strong>not</strong> allow us to do a point in time restore during this time period. (We also pray that no inserts bad code or that we need to restore to this point in time)</p>
<p>To use this feature and allow others to take a copy of the bases for testing, all you need to do is type this command: (<strong>Click on the image below to see it in full size</strong>)</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/06/Copy_Only.png"><img class="wp-image-1422 aligncenter" title="Copy_Only" src="http://cdn.smattie.com/wp-content/uploads/2012/06/Copy_Only.png" alt="" width="579" height="37" /></a></p>
<p><strong>Here is the command as well in text:</strong></p>
<blockquote><p><em>&#8211;Perform a COPY ONLY Database backup</em><br />
<em>BACKUP DATABASE [AdventureWorks] TO DISK = N&#8217;Z:\Backups\SQLServer\DB\AdventureWorks\AdventureWorks_20120601.BAK&#8217; </em><br />
<em><strong>WITH COPY_ONLY</strong>, NOFORMAT, NOINIT, NAME = N&#8217;AdventureWorks-Full Database Backup&#8217;, SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 10, CHECKSUM</em><br />
<em>GO</em></p></blockquote>
<div class="shr-publisher-1421"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/' data-shr_title='Microsoft+SQL+Server+Copy_Only+Backups'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/' data-shr_title='Microsoft+SQL+Server+Copy_Only+Backups'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/' data-shr_title='Microsoft+SQL+Server+Copy_Only+Backups'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/03/microsoft-sql-server-copy_only-backups/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL Server Max Memory calculator from Microsoft is *not* intended for Database professionals&#8230;. really?</title>
		<link>http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really</link>
		<comments>http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/#comments</comments>
		<pubDate>Sat, 02 Jun 2012 05:29:51 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1412</guid>
		<description><![CDATA[In an earlier article, I wrote about a few new tools for SQL Admins that were released by Microsoft. As I have done in the past I will correct myself to ensure that I am passing along helpful information. This article is another example and I would like to explain my thoughts. When I wrote that [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In an earlier <strong><a href="http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/">article</a></strong>, I wrote about a few new tools for SQL Admins that were released by Microsoft.</p>
<p>As I have done in the past I will <strong>correct</strong> myself to ensure that I am passing along helpful information. This article is another example and I would like to explain my thoughts. When I wrote that article a few weeks ago, I did a few quick simple tests using that calculator and it seemed to be simple to use with good results. What I did <strong>not</strong> explore was testing for larger and more complex configurations, like <strong>Jonathan Kehayias</strong> (<strong><a href="http://sqlskills.com/blogs/jonathan/">Blog</a></strong> | <strong><a href="https://twitter.com/#!/SQLPoolBoy">Twitter</a></strong>) did with his test. As you will see in his <strong><a href="http://sqlskills.com/blogs/jonathan/post/Wow-An-online-calculator-to-misconfigure-your-SQL-Server-memory.aspx">article</a></strong>, using the calculator made some really bad recommendations. I highly recommend three things moving forward here:</p>
<p>- Read <strong>Jonathan Kehayias</strong>&#8216; book. (<strong><a href="http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/">Troubleshooting SQL Server: A Guide for the Accidental DBA</a></strong>)<br />
- Read <strong>Jonathan Kehayias</strong>&#8216; blogs on SQL Server Memory. He has two excellent ones. (<a href="http://sqlskills.com/blogs/jonathan/post/How-much-memory-does-my-SQL-Server-actually-need.aspx">Here</a> and more importantly this <a href="http://sqlskills.com/blogs/jonathan/post/Wow-An-online-calculator-to-misconfigure-your-SQL-Server-memory.aspx">one</a> as well)<br />
- Do not use this <a href="http://blogs.msdn.com/b/sqlsakthi/archive/2012/05/19/cool-now-we-have-a-calculator-for-finding-out-a-max-server-memory-value.aspx">calculator</a> to configure your SQL Server&#8217;s memory configuration.</p>
<p>I agree with this blog (<strong><a href="http://sqlskills.com/blogs/jonathan/post/Wow-An-online-calculator-to-misconfigure-your-SQL-Server-memory.aspx">Wow… An online calculator to misconfigure your SQL Server memory!</a></strong>) in that this is an employee of Microsoft and he made a bad recommendation that can really hurt customers. <strong>We all make mistakes and I have made a few recently as well</strong>. However, the best thing to do to <strong>own</strong> up to your mistake and take corrective action. In my opinion I do <strong>not</strong> think <strong><a href="http://social.msdn.microsoft.com/profile/sakthivel%20chidambaram/">Sakthivel Chidambaram</a></strong> is trying to correct the information with his tool here. He has to remember that he has identified himself as an employee of <strong>Microsoft</strong> and is also using a <strong>MSDN</strong> blog to present information. Most people, to include me, will take his word at face value and make a <strong>bad assumption</strong> that this tool has been thoroughly tested. The truth is that this information was <strong>not</strong> validated <strong>before</strong> being published. (Left out a lot of key points to consider, like installed drivers, like host bus adapters (HBAs) or FusionIO storage, monitoring agents that require memory, etc.)</p>
<p>Sure he made a disclaimer (later on after <strong><a href="http://www.brentozar.com/">Brent Ozar</a></strong> and <strong>Jonathan Kehayias </strong>pointed out his errors on<strong> 24 May 2012</strong>) and changed his stance when more people found out about his tool (Excel spreadsheet) and pointed out the errors with his information. The problem is that it took me a few weeks to learn that information was incorrect and these disclaimers were <strong>not</strong> listed in his original article:</p>
<blockquote><p><em><strong>Few things to take care before you use this calculator:</strong></em></p>
<p><em><strong>IMPORTANT</strong>: This calculator is designed to help Novice SQL Database Administrators or someone who manages SQL Server but is really not an expert in SQL Server. So to put it simple, this calculator is meant for SQL Server professionals with Level 100 knowledge in SQL Server</em></p>
<p><em>Based on my support experience, lot of performance &amp; memory related problems are because customer’s don’t set a Max. Server Memory and they don’t do that because they don’t know what to set. This is my personal interest to help those people who are in need but confused because there are so many recommendations around how to calculate &amp; set this value.</em></p></blockquote>
<p>I am sorry for my earlier recommendation and I stand corrected, plus this reminds of a trait that I have learned&#8230;<strong> test everything </strong><strong>thoroughly</strong>.</p>
<div class="shr-publisher-1412"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/' data-shr_title='SQL+Server+Max+Memory+calculator+from+Microsoft+is+%2Anot%2A+intended+for+Database+professionals....+really%3F'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/' data-shr_title='SQL+Server+Max+Memory+calculator+from+Microsoft+is+%2Anot%2A+intended+for+Database+professionals....+really%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/' data-shr_title='SQL+Server+Max+Memory+calculator+from+Microsoft+is+%2Anot%2A+intended+for+Database+professionals....+really%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSD- What’s the difference between SLC and MLC?</title>
		<link>http://www.smattie.com/2012/05/25/ssd-whats-the-difference-between-slc-and-mlc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssd-whats-the-difference-between-slc-and-mlc</link>
		<comments>http://www.smattie.com/2012/05/25/ssd-whats-the-difference-between-slc-and-mlc/#comments</comments>
		<pubDate>Fri, 25 May 2012 09:25:39 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[ssd]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1368</guid>
		<description><![CDATA[It’s time dissect the two main types of flash chips in order to understand why not all SSDs are created equal. What is after all the physical difference between SLC and MLC? SLC stands for Single Level Cell and just like the name suggests can store one bit per NAND gate hence SLC cell has [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>It’s time dissect the two main types of flash chips in order to understand why not all SSDs are created equal. What is after all the physical difference between SLC and MLC?</p>
<p><strong>SLC</strong> stands for <strong>Single Level Cell</strong> and just like the name suggests can store one bit per NAND gate hence SLC cell has two states: (0 or 1) based on the charge of the NAND gate.</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/05/1-SLC_Level.png"><img class="wp-image-1405 aligncenter" title="1-SLC_Level" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/1-SLC_Level.png" alt="" width="614" height="240" /></a></p>
<p><strong>MLC</strong> on the other hand stands for <strong>Multi-Level Cell</strong> and uses multiple voltage threshold levels in order to store 2 or even 3 bits (also called<strong> TLC – Triple-Level Cell</strong>) in the same NAND gate. This is done by coding 4 or even 8 states (in the case of 3 bit TLC) on the same gate so the <strong>MLC</strong> will typically one of the following states : (11, 10, 01, 00). The <strong>benefit over SLC</strong> is the increased capacity per chip (2 or 3 times more) but at the same time the voltage reference levels are a lot tighter which leads to more rapid degradation of the cell after a lot of P/E (Program/Erase) Cycles. Once the MLC NAND gate has degraded the reads are no longer predictable because the stored value  overlaps reference  levels. In this case the memory will report an error or if the controller supports it will retire the cell and replace it with one from the reserve capacity.</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/2-MLC_Level.png"><img class="wp-image-1406 aligncenter" title="2-MLC_Level" src="http://cdn.smattie.com/wp-content/uploads/2012/05/2-MLC_Level.png" alt="" width="614" height="240" /></a></p>
<p>Typical number of write cycles is pretty solid around 100K for SLC and floats around 10K for MLC (different dies can have very different quality and will wear differently). This number is still high enough for a consumer life-cycle in the case of  MLC if the entire memory is programmed 5 times  daily for 5 years and  runs up to 50 years for SLC under the same usage.</p>
<p>&nbsp;</p>
<p>In the case of MLC the program cycle take 2 or 3 times more than for SLC since the  programming signal has to be a lot more precise to code 4 states in the space of 2. This leads to higher speed and increased number of IOPS (IO Operations Per Second) for SLC type of memory compared to MLC.</p>
<p><strong><img class="aligncenter size-full wp-image-1404" title="3-Chart" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-Chart.png" alt="" width="515" height="430" /><br />
</strong></p>
<div class="shr-publisher-1368"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/25/ssd-whats-the-difference-between-slc-and-mlc/' data-shr_title='SSD-+What%E2%80%99s+the+difference+between+SLC+and+MLC%3F'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/25/ssd-whats-the-difference-between-slc-and-mlc/' data-shr_title='SSD-+What%E2%80%99s+the+difference+between+SLC+and+MLC%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/25/ssd-whats-the-difference-between-slc-and-mlc/' data-shr_title='SSD-+What%E2%80%99s+the+difference+between+SLC+and+MLC%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/25/ssd-whats-the-difference-between-slc-and-mlc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Microsoft SQL Servers tools released</title>
		<link>http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-microsoft-sql-servers-tools-released</link>
		<comments>http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/#comments</comments>
		<pubDate>Mon, 21 May 2012 07:01:46 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1274</guid>
		<description><![CDATA[Within the past 2 months, there has been a couple of key tools introduced for SQL Server. Recently on 20 April 2012, Microsoft released the Reporting Services Migration Tool and on 18 May 2012, they released Max. Server Memory calculator. The Reporting Services Migration Tool (Beta) was mentioned here. I do want to point out that the source [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Within the past 2 months, there has been a couple of key tools introduced for SQL Server. Recently on <strong>20 April 2012</strong>, Microsoft released the Reporting Services Migration Tool and on <strong>18 May 2012</strong>, they released Max. Server Memory calculator.</p>
<p>The<strong> Reporting Services Migration Tool</strong> (<strong>Beta</strong>) was mentioned <strong><a href="http://blogs.msdn.com/b/jameswu/archive/2012/04/21/reporting-services-migration-tool.aspx">here</a></strong>. I do want to point out that the source and target server <strong>must</strong> be at least SQL Server Reporting Services <strong>2008 R2 or later</strong>. In the most simple term, this allows you to have a backup and restore tool for SQL Server Reporting Services. (SSRS) It does allow you to restore or even migrate your existing native report server via a PowerShell script.</p>
<p>You can download this tool <strong><a href="http://www.microsoft.com/en-us/download/details.aspx?id=29560">here</a></strong>. The downloaded file <strong>MigrationTool.zip </strong>has the following components:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/FileContents.png"><img class="wp-image-1379 aligncenter" title="FileContents" src="http://cdn.smattie.com/wp-content/uploads/2012/05/FileContents.png" alt="" width="538" height="239" /></a></p>
<blockquote><p>The <strong><a href="http://www.microsoft.com/en-us/download/confirmation.aspx?id=29560">tool</a></strong> comes in two flavors</p>
<p>1. Command-line tool (RSMigrationTool.exe):<br />
<strong>RSMigrationTool.exe [-n ] -i [-h] -f [-p ]</strong><br />
-n Native report server url (e.g. http:///reportserver). Optional if native instance name is specified. You should specify this option if WMI does not return the correct url.<br />
-i Name of the native report server instance. Migration tool will use WMI to connect to the remote instance. If the connection cannot be made, native report server url must be specified, and passwords and history snapshots will not be backed up.<br />
-h Report history will be exported. Please note that migrating report history requires direct modification to data in report server catalog and is not publicly supported. Backing up the catalog before migration and verifying correctness of the reports after migration are strongly recommended.<br />
-f A folder where the files are to be stored. The folder will be created if it doesn&#8217;t exist.<br />
-p Password that will be used to encrypt password in data source and subscription definitions. If this option is not specified, passwords will not be backed up.</p>
<p>2. GUI tool (RSMigrationUI.exe):<br />
You can either type in the parameters in the textboxes, or define your input in an xml file and click &#8220;Load Configuration&#8221;. A sample configuration xml file is provided (MigrationSettingsSample.xml).</p>
<p>3. Either tool will generate a PowerShell script (Migration.ps1) and a set of files that represents a backup of your server.   Usage of the restore script Migration.ps1:<br />
PS E:\tmp\DenaliMigration&gt; <strong>.\Migration.ps1 -TargetSiteUrl http://SharePointSite -Password -TargetFolderUrl &#8220;http://SharePointSite/Shared Documents&#8221; -TargetCatalogConnectionString &#8220;Data Source=;Initial Catalog=;Integrated Security=True&#8221;</strong></p>
<p>4. Log files:</p>
<ul>
<li>Logs generated by the tool is located in the “Logs” folder under the same folder where the tool is located.</li>
<li>Logs generated by the PowerShell script is located in the “Logs” folder under the folder for migration files.</li>
</ul>
</blockquote>
<p><strong>I do not recommend using this calculator listed below and you can find out more <a href="http://www.smattie.com/2012/06/01/sql-server-max-memory-calculator-from-microsoft-is-not-intended-for-database-professionals-really/">here</a></strong>. (Updated <strong>1 June 2012</strong>)</p>
<p>For the next tool,<strong> <a href="http://social.msdn.microsoft.com/profile/sakthivel%20chidambaram/">Sakthivel Chidambaram</a> </strong>wrote a calculator after he noticed a lot of people were referencing his <strong><a href="http://blogs.msdn.com/b/sqlsakthi/archive/2011/03/12/importance-of-setting-max-server-memory-in-sql-server-and-how-to-set-it.aspx">blog</a></strong>. (Importance of setting Max Server Memory in SQL Server and How to Set it) You can download this Calculator: <strong><a href="http://blogs.msdn.com/b/sqlsakthi/p/max-server-memory-calculator.aspx">here</a></strong>. It is essentially an Excel spreadsheet that allows you to enter values, as seen below:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/2-Excel.png"><img class="wp-image-1384 aligncenter" title="2-Excel" src="http://cdn.smattie.com/wp-content/uploads/2012/05/2-Excel.png" alt="" width="600" height="203" /></a></p>
<p style="text-align: left;">Step 2 in the spreadsheet will require you to gather the results of a SQL Query:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1385" title="3-SQLQuery" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-SQLQuery.png" alt="" width="508" height="143" /></p>
<p style="text-align: left;"><strong>Please note:</strong> This calculator will not help on server having <strong>more</strong> than 1 instance of SQL Server because the memory required for OS, SSIS, Antivirus etc., are shared so the calculation becomes little complex.</p>
<blockquote><p><em>You can monitor the health of SQL Server Memory using these Performance monitor counters:</em></p>
<p><em>1. <strong>Page Life Expectancy</strong> Counter under SQL Server Buffer Manager which is the average number of seconds a page stays in cache. It should be atleast = 300 * (Total RAM in GB)/4. Though our recommendation earlier was PLE should be 300, if a page is staying just for 5 minutes on a server with 128 GB RAM is not a right value to say that there is no memory pressure.</em><br />
<em>2. <strong>Memory Grants Pending</strong>, in the Perfmon object SQL Server Memory Manager (Close to 0 or lower is better)</em><br />
<em>3. <strong>Memory grant queue waits</strong> in the Perfmon object SQL Server Wait Statistics Object (Close to 0 or lower is better)</em></p></blockquote>
<div class="shr-publisher-1274"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/' data-shr_title='New+Microsoft+SQL+Servers+tools+released'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/' data-shr_title='New+Microsoft+SQL+Servers+tools+released'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/' data-shr_title='New+Microsoft+SQL+Servers+tools+released'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/21/new-microsoft-sql-servers-tools-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Program and Erase Cycle (P/E)- SSD Technology</title>
		<link>http://www.smattie.com/2012/05/20/program-and-erase-cycle-pe-ssd-technology/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=program-and-erase-cycle-pe-ssd-technology</link>
		<comments>http://www.smattie.com/2012/05/20/program-and-erase-cycle-pe-ssd-technology/#comments</comments>
		<pubDate>Sun, 20 May 2012 07:01:49 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[ssd]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1366</guid>
		<description><![CDATA[In my earlier post, I talked about SSD drives and how they can use an algorithm called Static Data rotation to help prevent premature wear on the drive. Today, I am going to briefly cover the write operations of SSD/Flash Memory. One of the limitations of flash memory (Which preceded SSD technology) is that while it can be read [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my earlier <strong><a href="http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/">post</a></strong>, I talked about SSD drives and how they can use an algorithm called Static Data rotation to help prevent premature wear on the drive. Today, I am going to briefly cover the write operations of SSD/Flash Memory.</p>
<p>One of the limitations of flash memory (Which <strong>preceded</strong> SSD technology) is that while it can be read or programmed a byte or a word at a time in a random access fashion just like regular memory. (RAM)  It can <strong>only</strong> be erased one “block” at a time. This will set all bits in the block to 1 which is the default state for <strong><a href="http://en.wikipedia.org/wiki/Flash_memory#NAND_flash">NAND</a></strong> memory.</p>
<p>Writing a byte to flash memory involves two steps: <strong>Program</strong> and <strong>Erase</strong>. (or also known as &#8220;P/E&#8221;) The block is written to a <strong>new</strong> cell and the old block needs to be <strong>erased</strong>.</p>
<p>The programing can be done at cell level (setting it to the “0″ state)  via a process called <strong>tunneling</strong> while the floating gate is being flooded with high voltage using the on-chip <a title="Charge pump" href="http://en.wikipedia.org/wiki/Charge_pump">charge pumps</a>.</p>
<p>Erasing can be done only on an <strong>entire</strong> block (resetting it to the “1″ state), through high negative voltage that is pulling the electrons off the floating gate via process called <a title="Quantum tunneling" href="http://en.wikipedia.org/wiki/Quantum_tunneling">quantum tunneling</a>. Flash memory is divided in erase segments (often called blocks or sectors).</p>
<p>As usual, I hope this helps&#8230;</p>
<div class="shr-publisher-1366"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/20/program-and-erase-cycle-pe-ssd-technology/' data-shr_title='Program+and+Erase+Cycle+%28P%2FE%29-+SSD+Technology'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/20/program-and-erase-cycle-pe-ssd-technology/' data-shr_title='Program+and+Erase+Cycle+%28P%2FE%29-+SSD+Technology'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/20/program-and-erase-cycle-pe-ssd-technology/' data-shr_title='Program+and+Erase+Cycle+%28P%2FE%29-+SSD+Technology'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/20/program-and-erase-cycle-pe-ssd-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static Data Rotation- SSD Technology to look for in Enterprise products</title>
		<link>http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=static-data-rotation-ssd-technology-to-look-for-in-enterprise-products</link>
		<comments>http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/#comments</comments>
		<pubDate>Sat, 19 May 2012 18:10:38 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[ssd]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1355</guid>
		<description><![CDATA[For many years, RAM and Disk was and still is today, the main culprit for bottlenecks in performance. With the lower cost of Memory, the shift has fallen more on disks to be the slow point in systems. Large Enterprise companies would have numerous external storage devices to get around this issue. (SAN, DAS, NAS, [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>For many years, RAM and Disk was and still is today, the main culprit for bottlenecks in performance. With the lower cost of Memory, the shift has fallen more on disks to be the slow point in systems. Large Enterprise companies would have numerous external storage devices to get around this issue. (SAN, DAS, NAS, etc.) For smaller companies with a considerable lighter budget, they had a tougher issue trying to resolve this challenge.</p>
<p>Recently (late 2009)  there has been a change to how hard drives works that has generated a lot of positive buzz. <strong><a href="http://en.wikipedia.org/wiki/Ssd">Solid-state drives</a></strong> (SSD) have been making a lot of headlines with their performance and throughput.</p>
<p>However, one of the main drawbacks of SSD  has been <strong>reliability</strong>. This leads to a common perception is that you should only use these type of drives for <strong>static</strong> content that will <strong>not</strong> have a lot of <strong>writes</strong> to the drive. This is more true in consumer products like home computers, but in enterprise  devices that is <strong>not</strong> always true. Most people are aware that every NAND cell has a certain prescribed number of Program/Erase (P/E) cycles and as data is being written to disk, chances are it will remain unchanged for weeks or months. This means that the cells that are being used to store that data will have the same wear level (used P/E cycles) for the weeks or months that data was <strong>unchanged</strong>. This can become a problem for the remaining free cells that are going to be taxed even more and could reach their end of life which will make the entire drive<em><strong> read only or even fail it completely</strong></em>.</p>
<p>Little did I know that SSD drive that I was testing was based on a chip-set that implements an intelligent<strong> Static Data Rotation</strong> algorithm as part of a set of technologies to increase the reliability of the drive. This means that the SSD controller  would actively rotate the static data  from cells intensively used to other cells that were least used during  idle periods  to allow the drives wear leveling to work  at it’s best. But what happens when you stress test a disk and you place about  3 times the size of the drive worth of data in a couple of hours while the drive is half full. This algorithm will kick in and start moving data around even when the drive is <strong>not</strong> <strong>idle</strong> and you will see a <strong>decrease</strong> in performance until the wear level is stabilized.</p>
<p>I discovered this technology while running a bunch of tests using SQLIO based on Jonathan Kehayias (<a href="http://www.sqlskills.com/blogs/jonathan">Blog</a>|<a href="http://twitter.com/sqlpoolboy">Twitter</a>) article about <a href="http://www.sqlskills.com/blogs/jonathan/post/Parsing-SQLIO-Output-to-Excel-Charts-using-Regex-in-PowerShell.aspx">Parsing SQLIO Output to Excel Charts using Regex in PowerShell</a> with a 6GB file and I got some good results. I started using the drive and installed a few Virtual Machines until the drive was half full. I kept running SQLIO and Crystal Disk Mark test sadly to see that the performance getting<strong> worse</strong>.</p>
<p>Essentially <strong>Static Data Rotation </strong>is a feature to make sure that you can use the drive for the <strong><a href="http://en.wikipedia.org/wiki/MTTF">Mean time between failures</a></strong> (MTTF) prescribed by the manufacturer and prevents premature wear on the cells that store hot data. Last but <strong>not</strong> least, a common question that comes up with this topic, “<strong><em>Is this algorithm (Static Data Rotation) a common feature across all SSD manufacturers?</em></strong>”</p>
<p>The answer is <strong>no</strong>, this is one of the strong selling points for the newer SSD controllers that implement Duraclass, which is trademarked to <strong>Sandforce</strong>. I would also like to point out that newer <strong>Sandforce</strong> controllers (which btw many manufacturers use this controller) have this technology as well but <strong>older</strong> ones do <strong>not</strong> have it. It would be nice to think that any Enterprise class controller would have its own implementation of  a Static Data Rotation algorithm, but sadly that is <strong>not</strong> always the case. As long as you get a <strong>Sandforce</strong> based or OCZ Octane or Vertex 2 and up SSD you are ok.</p>
<div class="shr-publisher-1355"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/' data-shr_title='Static+Data+Rotation-+SSD+Technology+to+look+for+in+Enterprise+products'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/' data-shr_title='Static+Data+Rotation-+SSD+Technology+to+look+for+in+Enterprise+products'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/' data-shr_title='Static+Data+Rotation-+SSD+Technology+to+look+for+in+Enterprise+products'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/19/static-data-rotation-ssd-technology-to-look-for-in-enterprise-products/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO: Add Many NIC configuration settings with PowerShell</title>
		<link>http://www.smattie.com/2012/05/15/how-to-add-many-nic-configuration-settings-with-powershell/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-add-many-nic-configuration-settings-with-powershell</link>
		<comments>http://www.smattie.com/2012/05/15/how-to-add-many-nic-configuration-settings-with-powershell/#comments</comments>
		<pubDate>Tue, 15 May 2012 07:01:36 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1339</guid>
		<description><![CDATA[In yesterday&#8217;s post, I talk about using PowerShell to configure many NIC&#8217;s with NETSH. Today, I am going to cover doing it with PowerShell and make it simple where it will prompt for the information in a GUI. So first off, you will need to ensure that you have Executaion Policy changed to allow for [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In yesterday&#8217;s <strong><a href="http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/">post</a></strong>, I talk about using PowerShell to configure many NIC&#8217;s with NETSH. Today, I am going to cover doing it with PowerShell and make it simple where it will prompt for the information in a GUI.</p>
<p>So first off, you will need to ensure that you have Executaion Policy changed to allow for signed scripts to be run. (<em>set-executionpolicy remotesigned</em>)</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/1-RemoteSigned.png"><img class="wp-image-1346 aligncenter" title="1-RemoteSigned" src="http://cdn.smattie.com/wp-content/uploads/2012/05/1-RemoteSigned.png" alt="" width="561" height="79" /></a></p>
<p><strong>Here is the script:</strong></p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/05/2-PS_Script.png"><img class="wp-image-1347 aligncenter" title="2-PS_Script" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/2-PS_Script.png" alt="" width="552" height="270" /></a></p>
<p>And now lets see it in action, but let&#8217;s check out our NIC settings before we begin:</p>
<p><img class="aligncenter size-full wp-image-1348" title="3-NIC_before" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-NIC_before.png" alt="" width="430" height="515" /></p>
<p>As you can see I am just using DHCP, so now lets run the script:</p>
<p><img class="aligncenter size-full wp-image-1349" title="4-script_run" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/4-script_run.png" alt="" width="488" height="93" /></p>
<p>And lets check on our settings for the NIC after the script completes:</p>
<p><img class="aligncenter size-full wp-image-1345" title="5-NIC_after" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/5-NIC_after.png" alt="" width="433" height="512" /></p>
<p>As you can see that was pretty simple and got the job done nicely. I really like PowerShell and think Microsoft did an awesome job with it.</p>
<div class="shr-publisher-1339"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/15/how-to-add-many-nic-configuration-settings-with-powershell/' data-shr_title='HOW+TO%3A+Add+Many+NIC+configuration+settings+with+PowerShell'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/15/how-to-add-many-nic-configuration-settings-with-powershell/' data-shr_title='HOW+TO%3A+Add+Many+NIC+configuration+settings+with+PowerShell'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/15/how-to-add-many-nic-configuration-settings-with-powershell/' data-shr_title='HOW+TO%3A+Add+Many+NIC+configuration+settings+with+PowerShell'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/15/how-to-add-many-nic-configuration-settings-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Add Many NIC configuration settings with &#8220;NETSH&#8221;</title>
		<link>http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-add-many-nic-configuration-settings-with-netsh</link>
		<comments>http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/#comments</comments>
		<pubDate>Mon, 14 May 2012 07:01:30 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1322</guid>
		<description><![CDATA[I had a task recently that required me to spin up a new environment for testing. I had about 20 new virtual machines that I needed to deploy and they all had static entries. As you may or may not know, the SCVMM console does not allow you to copy and paste like you can [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I had a task recently that required me to spin up a new environment for testing. I had about 20 new virtual machines that I needed to deploy and they all had static entries. As you may or may not know, the SCVMM console does <strong>not</strong> allow you to copy and paste like you can with RDP or Remote Desktop connections. Hyper-V does allow you to &#8220;<strong>text</strong>&#8221; a paste but it can take a while, which means I had a problem. I did <strong>not</strong> want to waste my time typing out each and every NIC setting for all 20 machines. I needed to deploy this solution faster and really find a way to <strong>limit</strong> the typing.</p>
<p>I decided that I would use <strong>netsh</strong> and <strong>PowerShell</strong> to accomplish this task. I am only using <strong>PowerShell</strong> to allow me to add multiple lines and to be upfront, I am <strong>not</strong> actually using any <strong>PowerShell</strong>  commands. With that being said, lets see what I did to help <strong>limit</strong> this time being consumed.</p>
<p>So, here you can see that I have a NIC named the default &#8220;Local Area Connection&#8221;</p>
<p><img class="aligncenter size-full wp-image-1328" title="1-LAC" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/1-LAC.png" alt="" width="272" height="73" /></p>
<p>I am going to rename it to LAN (as you would rename a NIC when you have multiple NICs so that you can easily identify it) I just right click on it and select <strong>rename</strong>:</p>
<p><img class="aligncenter size-full wp-image-1329" title="2-Rename" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/2-Rename.png" alt="" width="252" height="210" /></p>
<p>Just for sanity I am going to show you that I do <strong>not</strong> have any settings configured for this NIC:</p>
<p><img class="aligncenter size-full wp-image-1330" title="3-LAN" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-LAN.png" alt="" width="411" height="493" /></p>
<p>No DNS is set either:</p>
<p><img class="aligncenter size-full wp-image-1331" title="4-DNS" src="http://cdn.smattie.com/wp-content/uploads/2012/05/4-DNS.png" alt="" width="403" height="477" /></p>
<p>No WINS is set as well:</p>
<p><img class="aligncenter size-full wp-image-1323" title="5-WINS" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/5-WINS.png" alt="" width="401" height="475" /></p>
<p><strong><em>I know, WINS is being deprecated, but I know some people that still rely on WINS for some older applications.</em></strong></p>
<p>Now, I will launch <strong>PowerShell</strong> and enter in these <strong>NETSH</strong> commands:</p>
<blockquote><p><em>netsh interface ipv4 set address name=LAN source=static address=192.168.1.23 mask=255.255.255.0 gateway=192.168.1.1;netsh interface ip set dnsserver &#8220;LAN&#8221; static 192.168.1.6 primary;netsh interface ip add dnsserver name=LAN 192.168.1.34 index=2;netsh interface ip set winsserver &#8220;LAN&#8221; static 192.168.10.55;netsh interface ip add winsserver &#8220;LAN&#8221; 192.168.10.56 index=2</em></p></blockquote>
<p><em></em>Notice there are multiple entries with a<strong> &#8220;;&#8221;</strong> separate them so that they <strong>all</strong> get run at the same time. I use the &#8220;<strong>Type Clipboard Text&#8221;</strong></p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/6-Clipboard.png"><img class="wp-image-1324 aligncenter" title="6-Clipboard" src="http://cdn.smattie.com/wp-content/uploads/2012/05/6-Clipboard.png" alt="" width="576" height="483" /></a></p>
<p>Here is the command that I used to <strong>change</strong> my NIC settings:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/7-netsh.png"><img class="wp-image-1325 aligncenter" title="7-netsh" src="http://cdn.smattie.com/wp-content/uploads/2012/05/7-netsh.png" alt="" width="590" height="49" /></a></p>
<p>Now lets <strong>check</strong> the NIC settings after we ran this command to see what happened.</p>
<p><img class="aligncenter size-full wp-image-1326" title="8-LAN_new" src="http://cdn.smattie.com/wp-content/uploads/2012/05/8-LAN_new.png" alt="" width="412" height="495" /></p>
<p>Let&#8217;s check the WINS entries:</p>
<p><img class="aligncenter size-full wp-image-1327" title="9-WINS_new" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/9-WINS_new.png" alt="" width="402" height="480" /></p>
<p>As you can see, we are golden. The nice thing about this method is that I only typed this command once (in Notepad) and just pasted one time without having to type much. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As usual, I hope this helps you and if you have any other questions, please look at the <strong><a href="http://technet.microsoft.com/en-us/library/cc731521%28v=WS.10%29.aspx">new NETSH commands</a></strong>.</p>
<div class="shr-publisher-1322"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/' data-shr_title='HOW+TO%3A+Add+Many+NIC+configuration+settings+with+%22NETSH%22'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/' data-shr_title='HOW+TO%3A+Add+Many+NIC+configuration+settings+with+%22NETSH%22'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/' data-shr_title='HOW+TO%3A+Add+Many+NIC+configuration+settings+with+%22NETSH%22'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/14/how-to-add-many-nic-configuration-settings-with-netsh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BEST PRACTICE: SQL Server 2005 to present: Instant Initialization for database files</title>
		<link>http://www.smattie.com/2012/05/10/best-practice-sql-server-2005-to-present-instant-initialization-for-database-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=best-practice-sql-server-2005-to-present-instant-initialization-for-database-files</link>
		<comments>http://www.smattie.com/2012/05/10/best-practice-sql-server-2005-to-present-instant-initialization-for-database-files/#comments</comments>
		<pubDate>Thu, 10 May 2012 07:01:27 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Agent]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1276</guid>
		<description><![CDATA[This is a well-known and often mentioned best practice that I have recently found out that is not implemented much. I was even surprised to see that most installer packages to even include Microsoft&#8217;s SQL Server install do not set this feature up. Instant Initialization has been around since Windows XP and SQL Server has taken advantage of [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is a well-known and often mentioned best practice that I have recently found out that is <strong>not </strong>implemented much. I was even <strong><em>surprised</em></strong> to see that most installer packages to even include Microsoft&#8217;s SQL Server install do <strong>not</strong> set this feature up. Instant Initialization has been around since Windows XP and SQL Server has taken advantage of it since SQL Server 2005, but it is not built-in or even turned on by default. In fact, the installer even with SQL Server 2012 does not even mention it. Which I am hoping by now, you are wondering.. <strong><em>what is he taking about?</em></strong></p>
<p>I am taking about granting the account for the SQL Server service to &#8220;<strong>Perform volume maintenance tasks</strong>&#8221; with the local security policy. Allowing this access will allow SQL Server to take<strong> full advantage</strong> of the Instant Initialization feature of NTFS. This will reduce the time taken when initializing files during database creation, restores and auto-growth events. For example, if you have a new 20 GB Database file on 15k RPM drives and it will take the following:</p>
<blockquote><p><em><strong>Performance Test with Zero Initialization</strong></em><br />
<em>Hardware: Dell Precision 670 Dual Proc (x64) with Dual Core, 4 GB Memory, RAID 1+0 array w/4-142 GB, 15000rpm disks</em><br />
<em> CREATE DATABASE with 20 GB Data file = <strong>14:02 minutes</strong></em><br />
<em> ALTER DATABASE BY 10 GB = <strong>7:01 minutes</strong></em><br />
<em> RESTORE 30 GB DATABASE (EMPTY Backup) = <strong>21:07 minutes</strong></em><br />
<em> RESTORE 30 GB DATABASE (11GB Backup) = <strong>38:28 minutes</strong></em></p>
<p><em><strong>Performance Test with Instant Initialization</strong></em><br />
<em>Hardware: Dell Precision 670 Dual Proc (x64) with Dual Core, 4 GB Memory, RAID 1+0 array w/4-142 GB, 15000rpm disks</em><br />
<em> CREATE DATABASE with 20 GB Data file = <strong>1.3 seconds</strong></em><br />
<em> ALTER DATABASE BY 10 GB = <strong>.4 seconds</strong></em><br />
<em> RESTORE 30 GB DATABASE (EMPTY Backup) = <strong>5 seconds</strong></em><br />
<em> RESTORE 30 GB DATABASE (11GB Backup) = <strong>19:42 minutes</strong></em></p></blockquote>
<p>For more detailed information, please see the following article on <strong><a href="http://sqlskills.com/blogs/Kimberly/post/Instant-Initialization-What-Why-and-How.aspx">Kimberly Tripp&#8217;s blog</a></strong>. But as you can clearly see you are saving a considerable amount of time.</p>
<p>I am going to show you how simple it is to set up and <strong>more</strong> importantly, show you the low risk associated in allowing this access.</p>
<p>First you need to see the service that starts your SQL Server as seen below from either the <strong>services</strong> applet in the Control Panel or the <strong>preferred</strong> method <strong>SQL Server Configuration Manager</strong>:</p>
<p><img class="aligncenter size-full wp-image-1282" title="1-Service" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/1-Service.png" alt="" width="605" height="25" /></p>
<blockquote><p><em><strong>SIDE NOTE</strong>: Managing the service account password is a lot easier in SQL Server 2005 with the SQL Server Configuration Manager (SQL-CM). The SQL-CM allows you to change the password to a service <strong>without</strong> an active connection (meaning even if the service isn&#8217;t started) and it invalidates the login token so that password changes <strong>don&#8217;t</strong> require a <strong>restart</strong> of the service. SQL-CM also has a command-line interface and is scriptable with WMI. The WMI Provider allows server settings, client and server network protocols, and aliases to be scripted through the WMI Provider by means of simple VBScript code (or by using the command-line tool). What you could end up doing is creating a script that changes the password of your services on all of your servers (for example, when a password policy is enforced that requires that the passwords of service accounts be changed). </em></p></blockquote>
<p>Quote is taken from same <strong><a href="http://sqlskills.com/blogs/Kimberly/post/Instant-Initialization-What-Why-and-How.aspx">blog</a> </strong>mentioned above on sqlskills.com.</p>
<p>To use instant initialization, your SQL Server service must be running with an account that has the required privilege. You can modify it by typing <strong>gpedit.msc</strong> in the run button:</p>
<p><img class="aligncenter size-full wp-image-1277" title="2-gpedit" src="http://cdn.smattie.com/wp-content/uploads/2012/05/2-gpedit.png" alt="" width="421" height="220" /></p>
<p>Then you will need to navigate to <strong>Computer Configuration</strong>, <strong>Windows Settings</strong>, <strong>Security Settings</strong>, <strong>User rights</strong> and then <strong>Perform volume maintenace tasks</strong> as seen below:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/3-Performtask.png"><img class="wp-image-1278 aligncenter" title="3-Performtask" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-Performtask.png" alt="" width="580" height="503" /></a></p>
<p>As you can see, the default setting is only allowing this task for Administrators of the box:</p>
<p><img class="aligncenter size-full wp-image-1279" title="4-Default" src="http://cdn.smattie.com/wp-content/uploads/2012/05/4-Default.png" alt="" width="431" height="514" /></p>
<p>Click on the <strong>Add User or Group</strong> radio button and then add your user:</p>
<p><img class="aligncenter size-full wp-image-1280" title="5-Modified" src="http://cdn.smattie.com/wp-content/uploads/2012/05/5-Modified.png" alt="" width="429" height="511" /></p>
<p>After click ok, you now notice your account is listed and once granted, SQL Server <strong>automatically</strong> uses instant initialization:</p>
<p><img class="aligncenter size-full wp-image-1281" title="6-Notice" src="http://cdn.smattie.com/wp-content/uploads/2012/05/6-Notice.png" alt="" width="526" height="25" /></p>
<div class="shr-publisher-1276"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/10/best-practice-sql-server-2005-to-present-instant-initialization-for-database-files/' data-shr_title='BEST+PRACTICE%3A+SQL+Server+2005+to+present%3A+Instant+Initialization+for+database+files'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/10/best-practice-sql-server-2005-to-present-instant-initialization-for-database-files/' data-shr_title='BEST+PRACTICE%3A+SQL+Server+2005+to+present%3A+Instant+Initialization+for+database+files'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/10/best-practice-sql-server-2005-to-present-instant-initialization-for-database-files/' data-shr_title='BEST+PRACTICE%3A+SQL+Server+2005+to+present%3A+Instant+Initialization+for+database+files'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/10/best-practice-sql-server-2005-to-present-instant-initialization-for-database-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint error when creating a new SSRS service application</title>
		<link>http://www.smattie.com/2012/05/02/sharepoint-error-when-creating-a-new-ssrs-service-application/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sharepoint-error-when-creating-a-new-ssrs-service-application</link>
		<comments>http://www.smattie.com/2012/05/02/sharepoint-error-when-creating-a-new-ssrs-service-application/#comments</comments>
		<pubDate>Wed, 02 May 2012 07:01:16 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1257</guid>
		<description><![CDATA[Recently, I followed the steps in this TechNet article (Install Reporting Services SharePoint Mode as a Single Server Farm) to create a Reporting Services 2012 Service Application. However, when I try to create the SSRS service application, I get the following error: &#8220;The timer job completed, but failed on one or more machines in the farm.&#8221; [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Recently, I followed the steps in this TechNet article (<strong><a href="http://technet.microsoft.com/en-us/library/gg492276%28SQL.110%29.aspx">Install Reporting Services SharePoint Mode as a Single Server Farm</a></strong>) to create a Reporting Services 2012 Service Application. However, when I try to create the SSRS service application, I get the following error: <strong><em>&#8220;The timer job completed, but failed on one or more machines in the farm.&#8221;</em></strong></p>
<p><img class="aligncenter size-full wp-image-1260" title="3-Error" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-Error.jpg" alt="" width="501" height="319" /></p>
<p>The farm includes only one SharePoint server, so I went looking through the <strong><a href="http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx">ULS logs</a></strong> and noticed this:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/4-Error.png"><img class="wp-image-1263 aligncenter" title="4-Error" src="http://cdn.smattie.com/wp-content/uploads/2012/05/4-Error.png" alt="" width="566" height="363" /></a></p>
<p>Digging some more through the logs, I noticed a <strong>more</strong> interesting error, the server was <strong>not</strong> able to access a registry key:</p>
<p><img class="aligncenter size-full wp-image-1262" title="5-RegError" src="http://cdn.smattie.com/wp-content/uploads/2012/05/5-RegError.png" alt="" width="614" height="115" /></p>
<p>So then I took a look at the permission of the key and <strong>notice</strong> that the account did <strong>not</strong> have write permissions, so I <strong>changed</strong> it to the following:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/05/2-regedit.png"><img class="wp-image-1259 aligncenter" title="2-regedit" src="http://cdn.smattie.com/wp-content/uploads/2012/05/2-regedit.png" alt="" width="606" height="401" /></a></p>
<p style="text-align: left;">Sadly, it still did <strong>not</strong> work, so I looked at the install components of SQL Server (<strong><em>specifically</em></strong> Reporting services) and that is when I knew what the problem was causing me. I <strong>installed</strong> the reporting service add-in, but “Reporting Services &#8211; SharePoint” was <strong>missing</strong>. With the add-in only still you can install the service application, but it will throw the error as seen above. I just installed “<em><strong>Reporting Services – SharePoint</strong></em>” and checked the registry, it has the expected setting now.</p>
<p><img class="aligncenter size-full wp-image-1258" title="1-install" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/1-install.png" alt="" width="576" height="305" /></p>
<p>As a suggestion, it should <strong>not</strong> be possible to install the service application when the “<em>Reporting Services – SharePoint</em>” is <strong><em>missing</em></strong>.</p>
<p style="text-align: center;">
<div class="shr-publisher-1257"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/02/sharepoint-error-when-creating-a-new-ssrs-service-application/' data-shr_title='SharePoint+error+when+creating+a+new+SSRS+service+application'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/02/sharepoint-error-when-creating-a-new-ssrs-service-application/' data-shr_title='SharePoint+error+when+creating+a+new+SSRS+service+application'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/02/sharepoint-error-when-creating-a-new-ssrs-service-application/' data-shr_title='SharePoint+error+when+creating+a+new+SSRS+service+application'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/02/sharepoint-error-when-creating-a-new-ssrs-service-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Be careful with new licensing model with SQL Server 2012 and CPU&#8217;s!</title>
		<link>http://www.smattie.com/2012/05/01/be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus</link>
		<comments>http://www.smattie.com/2012/05/01/be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus/#comments</comments>
		<pubDate>Wed, 02 May 2012 03:07:11 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1245</guid>
		<description><![CDATA[I was upgrading a server recently from SQL Server 2008 R2 Enterprise Edition to the latest version with 2012. I got a surprise after the upgrade&#8230; I lost 12 CPU. I had a 32 Processor system ( HP DL580 4&#215;8 server) as seen below: After the upgrade, I wanted to verify the CPU configuration and noticed [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I was upgrading a server recently from SQL Server 2008 R2 Enterprise Edition to the latest version with 2012. I got a surprise <strong>after</strong> the upgrade&#8230; I <strong>lost</strong> 12 CPU. I had a 32 Processor system ( HP DL580 4&#215;8 server) as seen below:</p>
<p><img class="aligncenter size-full wp-image-1246" title="1-TaskManager" src="http://cdn2.smattie.com/wp-content/uploads/2012/05/1-TaskManager.jpg" alt="" width="440" height="331" /></p>
<p>After the upgrade, I wanted to <strong>verify</strong> the CPU configuration and noticed the following (highlighted in purple):</p>
<p><img class="aligncenter size-full wp-image-1249" title="2-QueryNodes" src="http://cdn.smattie.com/wp-content/uploads/2012/05/2-QueryNodes.png" alt="" width="290" height="452" /></p>
<p>I was stuck at 20 CPU and was scratching my head, so I took another look and tried the following:</p>
<p><img class="aligncenter size-full wp-image-1250" title="3-ChangeNodes" src="http://cdn.smattie.com/wp-content/uploads/2012/05/3-ChangeNodes.png" alt="" width="627" height="267" /></p>
<p>As you can see no matter what I did, I was <strong>stuck</strong> at 20 CPU and then I <strong><em>noticed</em></strong> the license comment above in the error message. The good news is that I did <strong>not</strong> need to go that far to find my answer as it is located here:</p>
<p>However you need to read the fine print:</p>
<blockquote><p>¹Existing SQL Server Enterprise edition licenses in the Server + CAL licensing model upgraded to SQL Server 2012 will be limited to server deployments with 20 cores or less. Refer to <a href="http://download.microsoft.com/download/4/F/7/4F74E127-827E-420D-971F-53CECB6778BD/SQL_Server_2012_Licensing_Datasheet_and_FAQ_Mar2012.docx"><em>Datasheet and FAQ</em></a> for more details.</p></blockquote>
<p>Of course that got my head spinning and interested so I looked at the <a href="http://download.microsoft.com/download/4/F/7/4F74E127-827E-420D-971F-53CECB6778BD/SQL_Server_2012_Licensing_Datasheet_and_FAQ_Mar2012.docx"><em>Datasheet and FAQ</em></a> and saw this section:</p>
<blockquote>
<ul>
<li>Legacy SQL Server 2012 Enterprise Edition Server deployments licensed in the server + CAL model will be subject to a <strong>20 core per server license maximum</strong>.  This core maximum applies both to new server licenses and to prior version server licenses upgraded to 2012 with SA.  If you purchased SQL Server 2008 R2 Enterprise Edition in the Server + CAL model with Software Assurance and at the launch of SQL Server 2012 are running on a server with &gt; 20 physical cores, contact your Microsoft representative for help transitioning to the new licensing model.</li>
<li>Legacy SQL Server 2012 Enterprise Edition Server licenses are still considered licensed under the Server + CAL model but have the new core limit to allow customers to upgrade their existing deployments and have some near term deployment options to finish currently planned projects under the Server + CAL model for the SQL Server Enterprise Edition.</li>
</ul>
</blockquote>
<p>So <strong>before</strong> you do your upgrade, make sure you contact Microsoft to transition to the new license model and take advantage of all your processing power. Please take important note of this information as well:</p>
<blockquote>
<ul>
<li><strong>New server licenses for SQL Server Enterprise Edition in the Server + Cal model will only be available for purchase through June 30<sup>th</sup>, 2012, after which they will no longer be available for purchase.</strong>  EA/EAP customers that buy SQL Enterprise Edition Servers will have until their next EA/EAP renewal after June 30<sup>th</sup>, 2012 to purchase additional server licenses to complete currently planned projects. After that, all new SQL Server Enterprise Edition deployments must be purchased per core.</li>
</ul>
</blockquote>
<div>A great reference for the new SQL can be found here: <strong><a href="http://www.sqlservercentral.com/blogs/pearlknows/2011/01/24/microsoft-sql-server-licensing-for-dummies/">Microsoft SQL Server Licensing For Dummies..</a></strong></div>
<div class="shr-publisher-1245"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/05/01/be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus/' data-shr_title='Be+careful+with+new+licensing+model+with+SQL+Server+2012+and+CPU%27s%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/05/01/be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus/' data-shr_title='Be+careful+with+new+licensing+model+with+SQL+Server+2012+and+CPU%27s%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/05/01/be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus/' data-shr_title='Be+careful+with+new+licensing+model+with+SQL+Server+2012+and+CPU%27s%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/05/01/be-careful-with-new-licensing-model-with-sql-server-2012-and-cpus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO: Replace or Migrate Your Quorum Drive in Windows 2008 Cluster</title>
		<link>http://www.smattie.com/2012/04/25/how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster</link>
		<comments>http://www.smattie.com/2012/04/25/how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 13:40:50 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Quorum]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1208</guid>
		<description><![CDATA[Have you been in a position where you had to retire an external storage device like a SAN or DAS but you had your Quorum drive resource on it? Well, this post will walk you through the steps needed to swap out your drive. I was pleasantly surprised to see how much easier it is to [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Have you been in a position where you had to retire an external storage device like a <strong><a href="http://en.wikipedia.org/wiki/Storage_area_network">SAN</a> </strong>or <strong><a href="http://en.wikipedia.org/wiki/Direct-attached_storage">DAS</a> </strong>but you had your Quorum drive resource on it? Well, this post will walk you through the steps needed to swap out your drive. I was pleasantly surprised to see how much easier it is to do in Windows 2008 versions.</p>
<p>First you will need to open <strong>Failover Cluster Manager</strong> (cluadmin.msc), highlight <strong>Storage</strong> and then click on<strong> Add a disk</strong></p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-Cluadmin.png"><img class="wp-image-1209 aligncenter" title="1-Cluadmin" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-Cluadmin.png" alt="" width="611" height="142" /></a></p>
<p>Then <strong>click</strong> the box to add the disk</p>
<p><img class="aligncenter size-full wp-image-1210" title="2-AddDisk" src="http://cdn.smattie.com/wp-content/uploads/2012/04/2-AddDisk.png" alt="" width="475" height="501" /></p>
<p>Now you will see the disk is added under<strong> Available Storage</strong></p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-NewDisk.png"><img class="wp-image-1211 aligncenter" title="3-NewDisk" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-NewDisk.png" alt="" width="580" height="177" /></a></p>
<p>Now, <strong>Right</strong> click on your cluster name and go to <strong>More Actions</strong> and <strong>Configure Cluster Quorum Settings</strong></p>
<p><img class="aligncenter size-full wp-image-1212" title="4-QuorumSettings" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/4-QuorumSettings.png" alt="" width="433" height="238" /></p>
<p>Now it will bring up the <strong>Configure Cluster Quorum Wizard</strong></p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/5-Wiz1.png"><img class=" wp-image-1213 aligncenter" title="5-Wiz1" src="http://cdn.smattie.com/wp-content/uploads/2012/04/5-Wiz1.png" alt="" width="544" height="379" /></a></p>
<p>It should pick up your nodes <strong>correctly</strong>, but please <strong>verify</strong>, in this case my recommended was correct since I have an <strong>even</strong> number of nodes</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/6-Wiz2.png"><img class="wp-image-1214 aligncenter" title="6-Wiz2" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/6-Wiz2.png" alt="" width="539" height="374" /></a></p>
<p>Now select the new disk to <strong>replace</strong> your existing Quorum</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/7-Wiz3.png"><img class="wp-image-1215 aligncenter" title="7-Wiz3" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/7-Wiz3.png" alt="" width="539" height="375" /></a></p>
<p>Now you will see the changes and <strong>verify</strong> the correct disk got selected</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/8-Wiz4.png"><img class="wp-image-1216 aligncenter" title="8-Wiz4" src="http://cdn.smattie.com/wp-content/uploads/2012/04/8-Wiz4.png" alt="" width="539" height="374" /></a></p>
<p style="text-align: left;">Now click <strong>finish</strong> if you have the right disk</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/9-Wiz5.png"><img class="wp-image-1217 aligncenter" title="9-Wiz5" src="http://cdn.smattie.com/wp-content/uploads/2012/04/9-Wiz5.png" alt="" width="538" height="376" /></a></p>
<p>Now, how do your switch the drive letter back to the <strong>standard Q</strong>, that most of us got used to <strong>standardizing</strong> on? Well, it is pretty simple, <strong>right</strong> click on the old Quorum and select <strong>change drive letter</strong></p>
<p><img class="aligncenter size-full wp-image-1218" title="10-DriveLetter" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/10-DriveLetter.png" alt="" width="238" height="219" /></p>
<p>&nbsp;</p>
<p>Change the drive letter to what ever letter you like (I recommend that you <strong>change</strong> the <strong>old</strong> Quorum to another drive letter that is <strong>not</strong> Q and then change your <strong>new</strong> one to the Q drive)</p>
<p><img class="aligncenter size-full wp-image-1219" title="11-Change" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/11-Change.png" alt="" width="258" height="123" /></p>
<p>I also recommend that you <strong>change</strong> the drive from the standard cluster disk to Quorum by <strong>right</strong> clicking the drive and selecting <strong>properties</strong></p>
<p><img class="aligncenter size-full wp-image-1220" title="12-Properties" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/12-Properties.png" alt="" width="241" height="225" /></p>
<p>Just type over the <strong>Resource Name</strong> field and hit <strong>apply</strong> or <strong>OK</strong></p>
<p><img class="aligncenter size-full wp-image-1221" title="13-Rename" src="http://cdn.smattie.com/wp-content/uploads/2012/04/13-Rename.png" alt="" width="403" height="479" /></p>
<p>See I told you it was easy. As usual, I hope this helps you.</p>
<div class="shr-publisher-1208"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/25/how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster/' data-shr_title='HOW+TO%3A+Replace+or+Migrate+Your+Quorum+Drive+in+Windows+2008+Cluster'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/25/how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster/' data-shr_title='HOW+TO%3A+Replace+or+Migrate+Your+Quorum+Drive+in+Windows+2008+Cluster'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/25/how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster/' data-shr_title='HOW+TO%3A+Replace+or+Migrate+Your+Quorum+Drive+in+Windows+2008+Cluster'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/25/how-to-replace-or-migrate-your-quorum-drive-in-windows-2008-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Restore Your WordPress Blog using BackupBuddy and IIS 7</title>
		<link>http://www.smattie.com/2012/04/22/video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7</link>
		<comments>http://www.smattie.com/2012/04/22/video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 07:58:38 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[iis 7]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1190</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Tools needed: BackupBuddy: http://pluginbuddy.com/purchase/backupbuddy// Microsoft Web Platform Installer 3.0: http://www.microsoft.com/web/downloads/platform.aspx HeidiSQL: http://www.heidisql.com/download.php]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "backupbuddy.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script><br />
<strong>Tools needed:</strong></p>
<p>BackupBuddy: <a href="http://pluginbuddy.com/purchase/backupbuddy//">http://pluginbuddy.com/purchase/backupbuddy//</a><br />
Microsoft Web Platform Installer 3.0: <a href="http://www.microsoft.com/web/downloads/platform.aspx">http://www.microsoft.com/web/downloads/platform.aspx</a><br />
HeidiSQL: <a href="http://www.heidisql.com/download.php">http://www.heidisql.com/download.php</a></p>
<div class="shr-publisher-1190"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/22/video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7/' data-shr_title='Video%3A+Restore+Your+Wordpress+Blog+using+BackupBuddy+and+IIS+7'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/22/video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7/' data-shr_title='Video%3A+Restore+Your+Wordpress+Blog+using+BackupBuddy+and+IIS+7'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/22/video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7/' data-shr_title='Video%3A+Restore+Your+Wordpress+Blog+using+BackupBuddy+and+IIS+7'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/22/video-restore-your-wordpress-blog-using-backupbuddy-and-iis-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorry for the downtime past 30 hours :(</title>
		<link>http://www.smattie.com/2012/04/21/sorry-for-the-downtime-past-30-hours/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sorry-for-the-downtime-past-30-hours</link>
		<comments>http://www.smattie.com/2012/04/21/sorry-for-the-downtime-past-30-hours/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 20:40:36 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1186</guid>
		<description><![CDATA[I wanted to say that I am sorry it took so long to get back up after being down for so long the past few days. It turns out that my old host was inadvertently shut off (actually deleted) around 10 AM PST on Thursday and I was given no notice until I saw my web site was [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I wanted to say that I am sorry it took so long to get back up after being down for so long the past few days. It turns out that my old host was inadvertently shut off (<strong>actually deleted</strong>) around <strong>10 AM PST</strong> on Thursday and I was given no notice until I saw my web site was <strong>not</strong> replying to requests. To add to the time in getting back up was 2 main factors: My Dad is in town visiting me and we had some plans. The other was my lack of knowledge about <a href="http://www.mysql.com/"><strong>MySQL</strong> </a>which is used as the back-end database for my web site which runs on <strong><a href="http://wordpress.org/">WordPress</a></strong>.</p>
<p>Another a few other obstacles were my limited experience with using my backup program called <strong><a href="http://pluginbuddy.com/purchase/backupbuddy/?gclid=CMrg68zkxq8CFSkaQgodGEpeYQ">Backup Buddy</a></strong> which did in fact have all of my data except for 2 posts. (Which again was my mistake in planning since I did <strong>not</strong> do nightly full backups on my site) I also had a few key challenges at work that need to be fixed as well which caused my priority to change.</p>
<p>The good news is that I am <strong>fully recovered</strong> and learned a lot from it, <strong>plus</strong> I have made changes to <strong>prevent</strong> the outage again, like doing full nightly backups for both the web site and the database. (Sadly I was <strong>only</strong> doing just the database on a nightly basis) As of early this morning, I got all of my posts and data.</p>
<p>So after that experience, I moved back to <a href="http://aws.amazon.com/"><strong>AWS</strong> </a>where I knew I could recover faster with the use of <strong>create image</strong> (<strong>AMI</strong>) and use of EBS volumes. I did most of my recovering on AWS and so far I only have a bill of <strong>$1.51</strong>, since I was using the <strong><a href="http://aws.amazon.com/free/">free tier</a></strong>. My bill will now increase a little bit more, but it is worth it when you consider the downtime that I just encountered.</p>
<p>I will document my process more tomorrow in a new post and in the meantime, I do wants to say thank you to a cool GUI based MySQL tool called <strong><a href="http://www.heidisql.com/">HeidiSQL</a></strong>.</p>
<p>Thank you for understanding and again, I am truly sorry for the inconvenience.</p>
<div class="shr-publisher-1186"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/21/sorry-for-the-downtime-past-30-hours/' data-shr_title='Sorry+for+the+downtime+past+30+hours+%3A%28'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/21/sorry-for-the-downtime-past-30-hours/' data-shr_title='Sorry+for+the+downtime+past+30+hours+%3A%28'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/21/sorry-for-the-downtime-past-30-hours/' data-shr_title='Sorry+for+the+downtime+past+30+hours+%3A%28'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/21/sorry-for-the-downtime-past-30-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Shut Down or Reboot Many Servers at Once in a Flash</title>
		<link>http://www.smattie.com/2012/04/19/how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash</link>
		<comments>http://www.smattie.com/2012/04/19/how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 07:01:25 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1170</guid>
		<description><![CDATA[Have you ever been in a situation where you needed to quickly shutdown a lot of servers in a hurry? Well, I got some good news for you, as long as you have an inventory list of all you servers then you can do it pretty quickly! This is a neat little trick, that allows [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Have you ever been in a situation where you needed to <strong>quickly</strong> shutdown a lot of servers in a hurry? Well, I got some<strong> good news</strong> for you, as long as you have an <strong>inventory</strong> list of all you servers then you can do it pretty quickly!</p>
<p>This is a neat little trick, that allows you to <strong>either</strong> reboot or shutdown your servers <strong>gracefully</strong> and <strong>fast</strong>. All you need to do is enter <strong>shutdown -i</strong> and I will walk you through that process today. As you can see below, I have a few running Virtual Machines on my <strong>Hyper-V</strong> server:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/1-List.png"><img class="wp-image-1176 aligncenter" title="1-List" src="http://cdn.smattie.com/wp-content/uploads/2012/04/1-List.png" alt="" width="614" height="132" /></a></p>
<p>Lets say that I am patching (<strong>SMLCLUSQLM101</strong>, <strong>SMLCLUSQLM102</strong> and <strong>SMLCLUWINSTOR</strong>) and I wanted to <strong>reboot</strong> all of them at once. (I am also wanting to <strong>avoid</strong> doing them one at a time) Not a problem, just go to start, run, type <strong>shutdown -i</strong> and then press enter:</p>
<p><img class="aligncenter size-full wp-image-1177" title="2-run" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/2-run.png" alt="" width="403" height="196" /></p>
<p>It will open this <strong>Remote Shutdown Dialog</strong>:</p>
<p><img class="aligncenter size-full wp-image-1178" title="3-shutdown" src="http://cdn.smattie.com/wp-content/uploads/2012/04/3-shutdown.png" alt="" width="520" height="496" /></p>
<p>I want to power off those servers, so I can do that by selecting <strong>add</strong> in the picture <strong>above</strong>. Which will open this window <strong>below</strong>:</p>
<p><img class="aligncenter size-full wp-image-1180" title="5-add" src="http://cdn.smattie.com/wp-content/uploads/2012/04/5-add.png" alt="" width="243" height="163" /></p>
<p>&nbsp;</p>
<p>It will then allow you to add these servers in the box by doing a paste into it from your server list that is <strong>either</strong> in a text file or Excel workbook:</p>
<p><img class="aligncenter size-full wp-image-1171" title="6-inventory" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/6-inventory.png" alt="" width="216" height="133" /></p>
<p>Now click <strong>OK</strong>:</p>
<p><img class="aligncenter size-full wp-image-1172" title="7-servers_add" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/7-servers_add.png" alt="" width="241" height="164" /></p>
<p>Here are your <strong>options</strong> for this command:</p>
<p><img class="aligncenter size-full wp-image-1179" title="4-options" src="http://cdn.smattie.com/wp-content/uploads/2012/04/4-options.png" alt="" width="204" height="86" /></p>
<p>You can even send a <strong>message</strong> to the remote systems in case a user is logged on:</p>
<p><img class="aligncenter size-full wp-image-1173" title="8-power" src="http://cdn.smattie.com/wp-content/uploads/2012/04/8-power.png" alt="" width="414" height="462" /></p>
<p>Which in turn will give them a <strong>warning</strong> on their session:</p>
<p><img class="aligncenter size-full wp-image-1174" title="9-warning" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/9-warning.png" alt="" width="368" height="127" /></p>
<p>As you can now see all of my servers are <strong>powered off</strong> and it went pretty quickly:</p>
<p><img class="aligncenter size-full wp-image-1175" title="10-off" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/10-off.png" alt="" width="187" height="55" /></p>
<p>As usual, I hope this helps you.</p>
<div class="shr-publisher-1170"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/19/how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash/' data-shr_title='HOW+TO%3A+Shut+Down+or+Reboot+Many+Servers+at+Once+in+a+Flash'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/19/how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash/' data-shr_title='HOW+TO%3A+Shut+Down+or+Reboot+Many+Servers+at+Once+in+a+Flash'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/19/how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash/' data-shr_title='HOW+TO%3A+Shut+Down+or+Reboot+Many+Servers+at+Once+in+a+Flash'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/19/how-to-shut-down-or-reboot-many-servers-at-once-in-a-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Backup SQL Server 2008 with Compression</title>
		<link>http://www.smattie.com/2012/04/18/how-to-backup-sql-server-2008-with-compression/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-backup-sql-server-2008-with-compression</link>
		<comments>http://www.smattie.com/2012/04/18/how-to-backup-sql-server-2008-with-compression/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 07:01:25 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1156</guid>
		<description><![CDATA[This is one of the many new features that I really enjoy with Microsoft SQL Server. Backup compression was introduced with SQL Server 2008 and in my opinion, it is a must tool for most SQL Database administrators. It is especially true when you experience disk space problems. In addition to saving space, it also [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is one of the many new features that I really enjoy with Microsoft SQL Server. <strong>Backup compression</strong> was introduced with <strong><a href="http://www.microsoft.com/sqlserver/en/us/editions.aspx">SQL Server 2008</a></strong> and in my opinion, it is a must tool for most SQL Database administrators. It is especially true when you experience disk space problems.</p>
<p>In addition to saving space, it also <strong>decreases</strong> the network traffic load <strong>and</strong> network transfer time of SQL backup data files if you have to copy your SQL backup files. In the past many companies had to buy a third-party backup software compression tool in order to minimize the size of their SQL backup files, however there was also one significant <strong>disadvantage</strong> with this feature. Compressing database backup files requires additional CPU overhead, so you would need to factor that into your strategy. It is recommended (as usual) to test <strong>before</strong> going into production with your database backup and restore procedures, to <strong>verify</strong> the impact that backup compression will bring on your current processor load.</p>
<p>Most SQL Server database administrators will use the default SQL Server Management Studio (SSMS) for backup and restore operations on SQL Server databases. The default settings for your SQL database server will moe than likely depend on how it was configured during setup. In order to see what is your current compression behavior, you will need to run the <strong><a href="http://msdn.microsoft.com/en-us/library/ms188787.aspx">sp_configure</a></strong> command on the your SQL Server instance, type <strong>sp_configure</strong> as seen below:</p>
<p><img class="aligncenter size-full wp-image-1157" title="1-SpConfig" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-SpConfig.png" alt="" width="465" height="412" /></p>
<p>As you can tell from <strong>below</strong> my backup compression is set to <strong>0</strong>, which means it is <strong>off</strong>.</p>
<p><img class="aligncenter size-full wp-image-1158" title="2-Compress0" src="http://cdn.smattie.com/wp-content/uploads/2012/04/2-Compress0.png" alt="" width="468" height="61" /></p>
<p>To enable compression as a <strong>default</strong> behavior or to <strong>change</strong> your current setting, type one of the following commands listed below:</p>
<p><img class="aligncenter size-full wp-image-1159" title="3-spconfig_on_off" src="http://cdn.smattie.com/wp-content/uploads/2012/04/3-spconfig_on_off.png" alt="" width="379" height="173" /></p>
<p>With that being said, lets go see the difference that database backup compression can make on your drive space. In this first run, I am going to leave the server as it currently is and just do a backup. <strong>Right click</strong> any database, then go to <strong>Tasks</strong>, and select <strong>Backup</strong> (as seen below):</p>
<p><img class="aligncenter size-full wp-image-1160" title="4-backup_off" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/4-backup_off.png" alt="" width="567" height="549" /></p>
<p>Now, I will name this database backup as <strong>default-is-0.bak</strong> so we can <strong>clearly</strong> identify it later. (This is where the backup compression was <strong>not</strong> activated by default.)</p>
<p><img class="aligncenter size-full wp-image-1161" title="5-back_name_0" src="http://cdn.smattie.com/wp-content/uploads/2012/04/5-back_name_0.png" alt="" width="517" height="238" /></p>
<p>Also ensure under the Advanced section that we are using the <strong>default</strong> server setting:</p>
<p><img class="aligncenter size-full wp-image-1162" title="6-Comp_setting" src="http://cdn.smattie.com/wp-content/uploads/2012/04/6-Comp_setting.png" alt="" width="518" height="118" /></p>
<p>Now lets turn <strong>compression</strong> on as the default server setting:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/7-change_compress.png"><img class="wp-image-1163 aligncenter" title="7-change_compress" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/7-change_compress.png" alt="" width="584" height="91" /></a></p>
<p>I will do another backup, but this time lets call it <strong>default-is-1.bak</strong> (again) so we can identify it later. (This is where the backup compression was <strong>activated</strong> by default.)</p>
<p><img class="aligncenter size-full wp-image-1164" title="8-back_name_1" src="http://cdn.smattie.com/wp-content/uploads/2012/04/8-back_name_1.png" alt="" width="510" height="236" /></p>
<p>As you can see below, the difference is <strong>noticeable</strong>, even on a small database like AdventureWorks:</p>
<p><img class="aligncenter size-full wp-image-1165" title="9-size" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/9-size.png" alt="" width="586" height="52" /></p>
<p>Keep in mind that you can also use compression, <strong>regardless</strong> of your SQL Server settings by specifying it in your backup job. You can use T-SQL scripts with the <strong>BACKUP DATABASE</strong> command <strong>WITH COMPRESSION</strong> or <strong>WITH NO_COMPRESSION</strong> statements for managing backup compression in your SQL Server 2008 environment.</p>
<p>Here are some sample TSQL commands which you can use:</p>
<p><img class="aligncenter size-full wp-image-1166" title="10-TSQL" src="http://cdn.smattie.com/wp-content/uploads/2012/04/10-TSQL.png" alt="" width="511" height="161" /></p>
<div class="shr-publisher-1156"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/18/how-to-backup-sql-server-2008-with-compression/' data-shr_title='HOW+TO%3A+Backup+SQL+Server+2008+with+Compression'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/18/how-to-backup-sql-server-2008-with-compression/' data-shr_title='HOW+TO%3A+Backup+SQL+Server+2008+with+Compression'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/18/how-to-backup-sql-server-2008-with-compression/' data-shr_title='HOW+TO%3A+Backup+SQL+Server+2008+with+Compression'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/18/how-to-backup-sql-server-2008-with-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO FIX: SQL Server Express Evaluation Edition Expired and Property Owner is not available</title>
		<link>http://www.smattie.com/2012/04/15/how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available</link>
		<comments>http://www.smattie.com/2012/04/15/how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 04:39:38 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1129</guid>
		<description><![CDATA[In my last post, I talked about an issue where we had a rogue SharePoint 2010 server that had an issue with the file size of the Database. As noted in that post, I stated that I would do another article as follow-up to reflect the other 2 challenges that I ran into as well. 1. Microsoft SQL [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my last <strong><a href="http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/">post</a></strong>, I talked about an issue where we had a rogue SharePoint 2010 server that had an issue with the file size of the Database. As noted in that post, I stated that I would do another article as follow-up to reflect the other <strong>2 challenges</strong> that I ran into as well.</p>
<p>1. <strong>Microsoft SQL Server Management Studio is expired</strong>?? WTF!</p>
<p>Below is the text of the actual error message:</p>
<p><img class="aligncenter size-full wp-image-1130" title="Expired_thumb" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/Expired_thumb.png" alt="" width="348" height="131" /></p>
<blockquote><p>Microsoft SQL Server Management Studio:<br />
Evaluation period has expired. For information on how to upgrade your evaluation software please go to <a href="http://www.microsoft.com/sql/howtobuy">http://www.microsoft.com/sql/howtobuy</a></p></blockquote>
<p>Take a <strong>closer</strong> look at this error… Yup, this is for SQL Server Management Studio (<strong>SSMS</strong>) and that this is the problem with Management Studio only. If you go inside of Management Studio, navigate to <strong>Help</strong> &gt; <strong>About</strong>&#8230; you will still see the expiration countdown. It turns out that this has been identified as a known issue, where SSMS is <strong>not</strong> upgraded as a component and it acts like when you did the edition upgrade for SQL Server 2008 that it never happened.</p>
<p>To workaround the problem you can hack registry keys. Set <strong>CommonFiles</strong> registry <strong>value to 3</strong> in <strong>HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\100\ConfigurationState</strong> Registry Hive. You will then need to reinstall (if the tools are <strong>not</strong> installed currently) or run <strong>Edition Upgrade wizard</strong>. (<em><strong>Please note</strong> in my screenshot that it is listed as <strong>&#8220;1&#8243;</strong> so you would need to change it!</em>)</p>
<p><img class="aligncenter size-full wp-image-1131" title="Regedit" src="http://cdn.smattie.com/wp-content/uploads/2012/04/Regedit.png" alt="" width="559" height="480" /></p>
<p>This has already been <strong>fixed</strong> in SP1 and here is the <strong><a href="http://support.microsoft.com/kb/971268">KB article</a></strong>.</p>
<p>2.  <strong>Property Owner is not available for Database</strong>&#8230; hmm.. did it go on vacation or something?</p>
<p>This was a cool looking error that did <strong>not</strong> scare me when I right clicked a database:</p>
<p><img class="aligncenter size-full wp-image-1133" title="3-DB_properties" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-DB_properties1.png" alt="" width="612" height="182" /></p>
<p>This happened on a key logging database that we monitor a lot. I was very surprised to see this error for production and I also checked on the <strong>offline</strong> version of this database. The offline database worked and I could see the properties of the database. At first, I thought maybe I did not have permissions on that server so I did a quick check:</p>
<p><strong>SELECT IS_SRVROLEMEMBER(&#8216;sysadmin&#8217;)</strong></p>
<p><img class="aligncenter size-full wp-image-1135" title="SA-Rights" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/SA-Rights.png" alt="" width="369" height="164" /></p>
<p>As you can see I had the proper admin rights and that was <strong>not</strong> the issue. However, that did <strong>not</strong> give me comfort since I could not see the database at all. I checked the error logs and I saw an error like this one:</p>
<blockquote><p>TITLE: Microsoft SQL Server Management Studio<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Cannot show requested dialog.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
ADDITIONAL INFORMATION:</p>
<p>Cannot show requested dialog. (SqlMgmt)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Property Owner is not available for Database &#8216;[MyDB]&#8216;. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)<br />
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=9.00.3042.00&amp;EvtSrc=Microsoft.SqlServer.</p>
<p>Management.Smo.ExceptionTemplates.PropertyCannotBeRetrievedExceptionText&amp;EvtID=</p>
<p>Owner&amp;LinkId=20476<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p></blockquote>
<p>It turns out that if someone created the database (like a developer) and then they leave your team or company, then there is no owner of the database. To check the current owner:</p>
<p><strong><em>EXEC sp_helpdb [MyDBName]</em></strong></p>
<p>To solve this problem, you will need to modify the owner of the database with this command:</p>
<p><strong><em>USE [MyDBName]</em></strong><br />
<strong><em>EXEC sp_changedbowner &#8216;sa&#8217;</em></strong></p>
<p>Sample code:</p>
<p><em><strong>USE AdventureWorks</strong></em><br />
<em><strong>EXEC sp_changedbowner &#8216;sa&#8217;</strong></em></p>
<p>&nbsp;</p>
<div class="shr-publisher-1129"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/15/how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available/' data-shr_title='HOW+TO+FIX%3A+SQL+Server+Express+Evaluation+Edition+Expired+and+Property+Owner+is+not+available'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/15/how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available/' data-shr_title='HOW+TO+FIX%3A+SQL+Server+Express+Evaluation+Edition+Expired+and+Property+Owner+is+not+available'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/15/how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available/' data-shr_title='HOW+TO+FIX%3A+SQL+Server+Express+Evaluation+Edition+Expired+and+Property+Owner+is+not+available'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/15/how-to-fix-sql-server-express-evaluation-edition-expired-and-property-owner-is-not-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO FIX: SQL Server Express DB size limitation of 4 GB</title>
		<link>http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-sql-server-express-db-size-limitation-of-4-gb</link>
		<comments>http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 00:25:00 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1114</guid>
		<description><![CDATA[Today, I am going to go over 3 things that I encountered this week with SQL Server Express for a friend. At his job, they found a rogue SharePoint server that a developer had placed into production. Sadly, the only way my friend found about it was when the developer had run into an issue. [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Today, I am going to go over 3 things that I encountered this week with SQL Server Express for a friend. At his job, they found a rogue SharePoint server that a developer had placed into production. Sadly, the only way my friend found about it was when the developer had run into an issue. They had hit the <strong>limit</strong> of database sizes with SQL Server Express and had this error:</p>
<p><strong><em>CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.</em></strong></p>
<p>So I did a check and sure enough they had <strong>SQL Server Express</strong> installed, which has these <strong>limitations</strong> which are shown <strong><a href="http://databases.about.com/od/sqlserver/a/free_sql_server.htm">here</a></strong>:</p>
<ul>
<li>Limited to one CPU</li>
<li>Limited to 1GB of RAM</li>
<li>Database size limited to 4GB</li>
<li>Does <strong>not</strong> offer database mirroring</li>
<li>Does <strong>not</strong> offer log shipping</li>
<li>Does <strong>not</strong> allow merge publication</li>
<li>Does <strong>not</strong> offer Oracle replication</li>
<li>Does <strong>not</strong> provide the Database Tuning Advisor, SQL Agent or SQL Profiler</li>
<li>Does <strong>not</strong> offer SQL Server Analysis Services or Advanced Analytics</li>
</ul>
<p>What was weird is that I know that this server already had<strong> SQL Server 2008R2 Enterprise Edition</strong> when they originally installed SharePoint 2010, because it was a part of their <strong>base</strong> build. (Then I checked in Add/Remove programs and sure enough it was installed <strong>before</strong> SharePoint) Then I went into research mode and I saw many reports of people with the same problem. The issue is that when you install SharePoint with the &#8220;<strong>Standalone</strong>&#8221; option (Which I figured was to allow you to have <strong>both</strong> SQL server and SharePoint components on <strong>one</strong> server) but apparently this option is only just for people <strong>testing</strong> SharePoint. It will install a separate version of SQL Express and it does not recognize any other versions of  SQL Server that is <strong>already</strong> installed.</p>
<p>It turns out that this developer was using SharePoint for <strong>over</strong> 6 months in a full production environment but was only using SQL Server Express!!</p>
<p>I found this blog <a href="http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=55"><strong>post</strong> </a>which had a solution, it says to run the SQL upgrade with a special upgrade switch</p>
<p><strong><em>setup.exe SKUUPGRADE=1</em></strong></p>
<p>Great I thought to myself and got excited at the simple fix, but then I found out that this <strong>only</strong> works with SQL 2005! <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>At first I looked at this with a SQL mindset, which I thought this was going to be a pain to deal with and my <strong>initial</strong> thoughts were that I would have to perform the following steps:</p>
<ol>
<li>Offline and move the databases (Detailed instructions <strong><a href="http://msdn.microsoft.com/en-us/library/ms345483%28v=sql.100%29.aspx">here</a></strong>)</li>
<li>Remove SQL Server 2008 Express</li>
<li>Upgrade the Database to either SQL Server 2008r2 Express or a &#8220;full&#8221; version of SQL Server (Standard, Enterprise, etc)</li>
<li>Then attach the database back</li>
</ol>
<p>Then I went out and checked for another way to perform this process, which is even easier:</p>
<p>SQL Server 2008 and later, already has an upgrade method in place. Launch the<strong> SQL Server Installation Center (64-bit)</strong> from <strong>Configuration tools</strong>:</p>
<p><img class="aligncenter size-full wp-image-1118" title="0-InstallCenter" src="http://cdn.smattie.com/wp-content/uploads/2012/04/0-InstallCenter.png" alt="" width="238" height="202" /></p>
<p>Then go into <strong>Maintenance</strong>:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-Maintainence_Upgrade.png"><img class="wp-image-1121 aligncenter" title="1-Maintainence_Upgrade" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-Maintainence_Upgrade.png" alt="" width="572" height="150" /></a></p>
<p>Then go through the Wizard until you can select your instance and <strong>upgrade</strong> it:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/2-Edition.jpg"><img class="wp-image-1115 aligncenter" title="2-Edition" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/2-Edition.jpg" alt="" width="588" height="438" /></a></p>
<p style="text-align: left;">But I was <strong>not</strong> so lucky, I had <strong>more</strong> issues to deal with and I will <strong>share</strong> those with you tomorrow</p>
<div class="shr-publisher-1114"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/' data-shr_title='HOW+TO+FIX%3A+SQL+Server+Express+DB+size+limitation+of+4+GB'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/' data-shr_title='HOW+TO+FIX%3A+SQL+Server+Express+DB+size+limitation+of+4+GB'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/' data-shr_title='HOW+TO+FIX%3A+SQL+Server+Express+DB+size+limitation+of+4+GB'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HOW TO: View Any Video On This Site</title>
		<link>http://www.smattie.com/2012/04/10/how-to-view-any-video-on-this-site/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-view-any-video-on-this-site</link>
		<comments>http://www.smattie.com/2012/04/10/how-to-view-any-video-on-this-site/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 00:32:46 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1098</guid>
		<description><![CDATA[Today after fighting for months, I finally got all of my videos to work using JW Player. I had no issues with Chrome or Firefox, but for some reason Internet Explorer would never work for all versions. (In the beginning only IE 9 would work, but around February it stopped as well) First, please update [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Today after fighting for months, I finally got all of my videos to work using <strong><a href="http://www.longtailvideo.com">JW Player</a></strong>. I had <strong>no</strong> issues with Chrome or Firefox, but for some reason <strong>Internet Explorer</strong> would never work for all versions. (In the beginning only IE 9 would work, but around February it stopped as well)</p>
<p>First, please update to the last <strong><a href="http://get.adobe.com/flashplayer/">Adobe Flash</a></strong> player for your browser and then Follow these screen shots to have a great experience.</p>
<p>1. Click on the Arrow (which is like pressing play)</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-1099" title="1-ClickArrow" src="http://cdn.smattie.com/wp-content/uploads/2012/04/1-ClickArrow.png" alt="" width="579" height="365" /></p>
<p>2.  Hold your mouse over the bottom of the video to get the menu to pop up and then expand the video to <strong>full</strong> size.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-1100" title="2-DragArrow" src="http://cdn.smattie.com/wp-content/uploads/2012/04/2-DragArrow.png" alt="" width="572" height="350" /></p>
<p>3. This button allows you to <strong>play</strong> or pause the video</p>
<p><img class="aligncenter size-full wp-image-1101" title="3-Play" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-Play.png" alt="" width="109" height="61" /></p>
<p>4. See how long the video is in time, adjust your <strong>volume</strong> and <strong>minimize</strong> or <strong>maximize</strong> your video size</p>
<p><img class="aligncenter size-full wp-image-1102" title="4-Volume" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/4-Volume.png" alt="" width="139" height="64" /></p>
<div class="shr-publisher-1098"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/10/how-to-view-any-video-on-this-site/' data-shr_title='HOW+TO%3A+View+Any+Video+On+This+Site'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/10/how-to-view-any-video-on-this-site/' data-shr_title='HOW+TO%3A+View+Any+Video+On+This+Site'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/10/how-to-view-any-video-on-this-site/' data-shr_title='HOW+TO%3A+View+Any+Video+On+This+Site'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/10/how-to-view-any-video-on-this-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shameless plug for help to get more space on Dropbox :)</title>
		<link>http://www.smattie.com/2012/04/09/shameless-plug-for-help-to-get-more-space-on-dropbox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shameless-plug-for-help-to-get-more-space-on-dropbox</link>
		<comments>http://www.smattie.com/2012/04/09/shameless-plug-for-help-to-get-more-space-on-dropbox/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 22:54:10 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1057</guid>
		<description><![CDATA[I use Dropbox which is a great free tool that allows you to have 2 GB of free space that is stored in the cloud. Recently they allowed me to get more space and also yourself an extra 500 MB until you reach 16 GB. Invite your friends to Dropbox! For every friend who joins [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I use <strong><a href="https://www.dropbox.com">Dropbox</a></strong> which is a great <strong>free</strong> tool that allows you to have 2 GB of free space that is stored in the cloud. Recently they allowed me to get more space and <strong>also</strong> yourself an <strong>extra</strong> 500 MB until you reach 16 GB.</p>
<blockquote>
<h1><em>Invite your friends to Dropbox!</em></h1>
<p><em>For every friend who joins and installs Dropbox, we&#8217;ll give you both 500 MB of bonus space (up to a limit of 16 GB)!</em></p></blockquote>
<p>If you could download this software from this link: <a href="http://db.tt/sntoc8sd">http://db.tt/sntoc8sd</a> and install it on your system it will give both of us extra free space.</p>
<p>Thanks!</p>
<p>&nbsp;</p>
<div class="shr-publisher-1057"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/09/shameless-plug-for-help-to-get-more-space-on-dropbox/' data-shr_title='Shameless+plug+for+help+to+get+more+space+on+Dropbox+%3A%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/09/shameless-plug-for-help-to-get-more-space-on-dropbox/' data-shr_title='Shameless+plug+for+help+to+get+more+space+on+Dropbox+%3A%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/09/shameless-plug-for-help-to-get-more-space-on-dropbox/' data-shr_title='Shameless+plug+for+help+to+get+more+space+on+Dropbox+%3A%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/09/shameless-plug-for-help-to-get-more-space-on-dropbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW To FIX: Shadow (a.k.a. &#8220;ghosted&#8221;) NIC&#8217;s in Hyper-V or SCVMM 2008R2</title>
		<link>http://www.smattie.com/2012/04/08/how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2</link>
		<comments>http://www.smattie.com/2012/04/08/how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 05:58:59 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=1033</guid>
		<description><![CDATA[In my last post, I talked about recovering from a failed Storage Migration (QSM) in SCVMM. After you attach the old VHD file, you may find that you are not able to add the NIC settings back, like the IP address because there is a hidden NIC that is in the system but does not [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my last <strong><a href="http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/">post</a></strong>, I talked about recovering from a failed Storage Migration (QSM) in <strong><a href="http://www.microsoft.com/en-us/server-cloud/system-center/virtual-machine-manager.aspx">SCVMM</a></strong>. After you attach the old VHD file, you may find that you are not able to add the NIC settings back, like the IP address because there is a <strong><em>hidden</em></strong> NIC that is in the system but does <strong>not</strong> show in device manager. Here is an error that you will receive when you try to <strong>change</strong> the NIC settings:</p>
<p><img class="aligncenter size-full wp-image-1035" title="1-Error" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-Error.png" alt="" width="414" height="230" /></p>
<p>Then when you look at device manager you only see one NIC:</p>
<p><img class="aligncenter size-full wp-image-1036" title="2-SingleNIC" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/2-SingleNIC.png" alt="" width="338" height="48" /></p>
<p>Here is what you do to solve this issue:</p>
<p>Run the <strong>command prompt</strong> as an Administrator and type the following:<br />
<strong>set devmgr_show_nonpresent_devices=1</strong> (Shows hidden devices that are <strong>attached</strong> but <strong>not</strong> seen)<br />
<strong>Note:</strong> This was an old trick learned from this <strong><a href="http://support.microsoft.com/kb/241257">article</a></strong>.</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-setdevmgr.png"><img class="wp-image-1037 aligncenter" title="3-setdevmgr" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-setdevmgr.png" alt="" width="533" height="266" /></a></p>
<p>Then run Device Manager from the command line<em><strong> (start devmgmt.msc) </strong></em>and now choose &#8220;<strong><em>Show hidden devices</em></strong>.&#8221; Then expand the network adapters and you will see the issue more clearly.</p>
<p><img class="aligncenter size-full wp-image-1038" title="4-ShowHidden" src="http://cdn.smattie.com/wp-content/uploads/2012/04/4-ShowHidden.png" alt="" width="342" height="376" /></p>
<p>Notice the <strong>additional</strong> NIC that holds your original settings?</p>
<p><img class="aligncenter size-full wp-image-1039" title="5-MultipleNICs" src="http://cdn.smattie.com/wp-content/uploads/2012/04/5-MultipleNICs.png" alt="" width="309" height="238" /></p>
<p>So let&#8217;s go ahead and remove <strong>both</strong> NIC&#8217;s and then we will add them later:</p>
<p><img class="aligncenter size-full wp-image-1040" title="6-Remove" src="http://cdn.smattie.com/wp-content/uploads/2012/04/6-Remove.png" alt="" width="380" height="82" /></p>
<p>Confirm the action by selecting <strong>OK</strong>!</p>
<p><img class="aligncenter size-full wp-image-1041" title="7-ConfirmRemove" src="http://cdn.smattie.com/wp-content/uploads/2012/04/7-ConfirmRemove.png" alt="" width="343" height="220" /></p>
<p>Notice that you NIC&#8217;s are <strong>no</strong> longer seen in Device Manager:</p>
<p><img class="aligncenter size-full wp-image-1042" title="8-NoNICs" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/8-NoNICs.png" alt="" width="229" height="206" /></p>
<p>Now, lets add it back by doing a new &#8220;<strong>Scan for hardware changes</strong>&#8221; in Device Manager</p>
<p><img class="aligncenter size-full wp-image-1043" title="9-Scan" src="http://cdn.smattie.com/wp-content/uploads/2012/04/9-Scan.png" alt="" width="264" height="140" /></p>
<p>Now, we have our NIC back to just one</p>
<p><img class="aligncenter size-full wp-image-1044" title="10-NICBack" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/10-NICBack.png" alt="" width="301" height="68" /></p>
<p>And after we configure the NIC settings, we no longer get the warning and it is the correct settings:</p>
<p><img class="aligncenter size-full wp-image-1045" title="11-Settings" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/11-Settings.png" alt="" width="407" height="41" /></p>
<p>Last but not least, you will need to clear out the DNS and NetBios Cache by typing the following:</p>
<p><strong><em>ipconfig /flushdns</em></strong><br />
<strong><em>nbtstat -R</em></strong><br />
<strong><em>nbtstat -RR</em></strong><br />
<strong><em>ipconfig /registerdns</em></strong></p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/12-ClearDNS.png"><img class="wp-image-1034 aligncenter" title="12-ClearDNS" src="http://cdn.smattie.com/wp-content/uploads/2012/04/12-ClearDNS.png" alt="" width="531" height="262" /></a></p>
<div class="shr-publisher-1033"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/08/how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2/' data-shr_title='HOW+To+FIX%3A+Shadow+%28a.k.a.+%22ghosted%22%29+NIC%27s+in+Hyper-V+or+SCVMM+2008R2'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/08/how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2/' data-shr_title='HOW+To+FIX%3A+Shadow+%28a.k.a.+%22ghosted%22%29+NIC%27s+in+Hyper-V+or+SCVMM+2008R2'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/08/how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2/' data-shr_title='HOW+To+FIX%3A+Shadow+%28a.k.a.+%22ghosted%22%29+NIC%27s+in+Hyper-V+or+SCVMM+2008R2'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/08/how-to-fix-shadow-a-k-a-ghosted-nics-in-scvmm-2008r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO FIX: Hyper-V or SCVMM 2008R2 Failed Storage Migration (QSM)</title>
		<link>http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-scvmm-2008r2-failed-storage-migration-qsm</link>
		<comments>http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 23:18:41 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=992</guid>
		<description><![CDATA[Happy Easter everyone! Earlier this week, I was moving VM&#8217;s from one shared storage device to another. I had an old HP StorageWorks SAN device that was failing on me and was out of warranty, so I needed to migrate my VM storage to a new EMC device. I ran into some issues and it kind of [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Happy Easter everyone! <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Earlier this week, I was moving VM&#8217;s from one shared storage device to another. I had an old HP StorageWorks SAN device that was failing on me and was out of warranty, so I needed to migrate my VM storage to a new EMC device. I ran into some issues and it kind of freaked me out, so I thought I would share my knowledge.</p>
<p>Before we being, this is a great article of an overview of <strong><a href="http://blogs.technet.com/b/virtualization/archive/2009/06/25/system-center-virtual-machine-manager-2008-r2-quick-storage-migration.aspx">System Center Virtual Machine Manager 2008 R2 &#8211; Quick Storage Migration</a> </strong>and explains the process step by step. Also, if you are new to Hyper-V clusters and would like a quick overview, I suggest that you take a look at this article:<strong> <a title="Permalink to: Rough Guide To Setting Up A Hyper-V Cluster" href="http://www.aidanfinn.com/?p=10311" rel="bookmark">Rough Guide To Setting Up A Hyper-V Cluster</a></strong></p>
<p>The issue I had on a few of my VM&#8217;s was that the copy of the VM from the old storage location to the new location would either <strong>fail</strong> at the end or it would <strong>fail</strong> in the middle of the migration. Additionally, I could see the VM folder in both places and hard to believe, but in the <strong>5 failures</strong> or so that I experienced with my VM&#8217;s most of them completed the entire copy, as I could see both folders had the <strong>exact</strong> same size. I tried to do <strong>both</strong> repair and undo, but it <strong>never</strong> worked. The VM was just <strong>not</strong> allowed to do anything but remain in a failed state.</p>
<p>So, I went to both <a href="http://www.bing.com/"><strong>Bing</strong> </a>and <strong><a href="http://www.google.com/">Google</a> </strong>looking for answers to solve this issue. I thought I got lucky when I found this MSDN  article: <strong><a href="http://blogs.msdn.com/b/robertvi/archive/2009/11/13/quick-or-live-migration-may-fail-after-you-used-migrate-storage.aspx">Quick or Live Migration may fail after you used Migrate Storage</a> </strong>but when I did the recommended steps I did <strong>not</strong> get the desired results:</p>
<blockquote><p><em>A more easy solution for this issue is, to take both resources for this VM and temporarily assign it to “Run this resource in a separate Resource Monitor”. This will cause the other nodes to re-read the VM Guid</em></p>
<p><em>1. Start Failover Cluster Manager</em><br />
<em>2. Open Services and Applications and select the VM. Take the VM Offline</em><br />
<em>3. Open Properties on the Configuration, Advanced Polices. Check “Run this resource in a separate Resource Monitor”, Apply, uncheck, Apply</em><br />
<em>4. Do the same for the VM Resource</em></p></blockquote>
<p>Simply put, it did <strong>not</strong> work. The next recommend course of action was to apply the <strong><a href="http://blogs.msdn.com/b/robertvi/archive/2009/12/17/availability-of-hotfix-rollup-package-for-system-center-virtual-machine-manager-2008-r2.aspx">Availability of Hotfix Rollup package for System Center Virtual Machine Manager 2008 R2</a> </strong>which I was not looking forward to doing on a multiple node cluster (<strong>greater than 5</strong>) At that point, <strong>I stepped back</strong> and said to myself that this is starting to get more <strong>complicated</strong> for such an easy issue.</p>
<p>My initial thoughts were that I could use Hyper-V to fix this issue on the node that owns this VM, but all of Technet articles were suggesting that I needed to use SCVMM or Cluster Administrator. Luckily I had a great resource on my team and he confirmed my suspicion in that the public articles were <strong>not</strong> as helpful. More importantly, he confirmed my theory that use Hyper-V Manager locally would be the best option and sure enough it worked like a champ.</p>
<p><strong>So that gets us to the most important part of this article&#8230; what can I do to fix this issue?</strong></p>
<p>So here are the steps that I performed to resolve the issue. Note the difference between both folders:</p>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-FileDifference.png"><img class="wp-image-1003 aligncenter" title="1-FileDifference" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/1-FileDifference.png" alt="" width="577" height="461" /></a></p>
<p>Copy the Original VM folder to another location as seen below: (I just used the Desktop)</p>
<p><img class="aligncenter size-full wp-image-1004" title="2-CopyDesktop" src="http://cdn.smattie.com/wp-content/uploads/2012/04/2-CopyDesktop.png" alt="" width="509" height="315" /></p>
<p>Verify the file did properly copy and you see the VHD file in the new location:</p>
<p><img class="aligncenter size-full wp-image-1009" title="3-Verify" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/3-Verify.png" alt="" width="582" height="136" /></p>
<p>Then verify the settings in SCVMM for processor, disk, memory and other hardware configurations. (<strong>Record them</strong> since you will be launching a new VM to replace this one)</p>
<p><img class="aligncenter size-full wp-image-1010" title="4-VerifySettings" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/4-VerifySettings.png" alt="" width="587" height="622" /></p>
<p>Then Delete the VM in SCVMM (<strong>after</strong> you <strong>confirmed</strong> the drive exists and you have the settings correctly)</p>
<p><img class="aligncenter size-full wp-image-1011" title="5-Delete" src="http://cdn.smattie.com/wp-content/uploads/2012/04/5-Delete.png" alt="" width="345" height="468" /></p>
<p>Then you will need to select yes to finish the deletion and this will remove both folders in both locations:</p>
<p><img class="aligncenter size-full wp-image-1014" title="6-ConfirmDelete" src="http://cdn.smattie.com/wp-content/uploads/2012/04/6-ConfirmDelete.png" alt="" width="525" height="178" /></p>
<p>Now when we look, we do <strong>not</strong> see this VM at all:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/7-FilesGone.png"><img class="wp-image-1015 aligncenter" title="7-FilesGone" src="http://cdn.smattie.com/wp-content/uploads/2012/04/7-FilesGone.png" alt="" width="546" height="220" /></a></p>
<p>So now we get to launch a new VM with the same name as the original name: (<strong>Windows 8 Server</strong> in my case here)</p>
<p><img class="aligncenter size-full wp-image-1019" title="8-NewVM" src="http://cdn.smattie.com/wp-content/uploads/2012/04/8-NewVM.png" alt="" width="199" height="233" /></p>
<p>Then select a blank drive for the VM to use, since our goal is to swap it out anyway:</p>
<p><img class="aligncenter size-full wp-image-1020" title="9-BlankDrive" src="http://cdn.smattie.com/wp-content/uploads/2012/04/9-BlankDrive.png" alt="" width="361" height="140" /></p>
<p>We will want to configure the hardware settings to match the same (processor, memory, etc) and then place it back on the same host that it was on <strong>originally</strong>.</p>
<p><img class="aligncenter size-full wp-image-1021" title="10-PlaceOnHost" src="http://cdn.smattie.com/wp-content/uploads/2012/04/10-PlaceOnHost.png" alt="" width="606" height="122" /></p>
<p>To ensure you have <strong>high availability</strong>, place the VM on the CSV as seen below:</p>
<p><img class="aligncenter size-full wp-image-1022" title="11-Storage" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/11-Storage.png" alt="" width="612" height="165" /></p>
<p>Do <strong>not</strong> start this VM, leave it stopped, since the drive is blank, it has nothing to boot off. Then we will go into <strong>Hyper-V Manager</strong> to change the hard drive <strong>settings</strong>:</p>
<p><img class="aligncenter size-full wp-image-1023" title="12-HyperV" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/12-HyperV.png" alt="" width="207" height="91" /></p>
<p>You will need to copy the old VHD to the new location and then browse to it: (In my case the original drive was on the Desktop, so I copied it to the CSV)</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/13-ReplaceHDD.png"><img class="wp-image-1017 aligncenter" title="13-ReplaceHDD" src="http://cdn.smattie.com/wp-content/uploads/2012/04/13-ReplaceHDD.png" alt="" width="578" height="386" /></a></p>
<p>After you point to the new drive, then <strong>delete</strong> the old blank drive and then start your VM:</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/14-DeleteBlankHDD.png"><img class="wp-image-1018 aligncenter" title="14-DeleteBlankHDD" src="http://cdn.smattie.com/wp-content/uploads/2012/04/14-DeleteBlankHDD.png" alt="" width="609" height="150" /></a></p>
<p>At this point you can start-up your VM and it should have the correct information. You may run into an issue where you may need to change out the <strong>NIC settings</strong> and I will address that issue tomorrow. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As usual, I hope this helps and you can pass the word around that my blog was helpful!</p>
<p>&nbsp;</p>
<div class="shr-publisher-992"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/' data-shr_title='HOW+TO+FIX%3A+Hyper-V+or+SCVMM+2008R2+Failed+Storage+Migration+%28QSM%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/' data-shr_title='HOW+TO+FIX%3A+Hyper-V+or+SCVMM+2008R2+Failed+Storage+Migration+%28QSM%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/' data-shr_title='HOW+TO+FIX%3A+Hyper-V+or+SCVMM+2008R2+Failed+Storage+Migration+%28QSM%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/07/how-to-fix-scvmm-2008r2-failed-storage-migration-qsm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Having an issue trying to copy user profiles in Windows 7?</title>
		<link>http://www.smattie.com/2012/04/02/having-an-issue-trying-to-copy-user-profiles-in-windows-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=having-an-issue-trying-to-copy-user-profiles-in-windows-7</link>
		<comments>http://www.smattie.com/2012/04/02/having-an-issue-trying-to-copy-user-profiles-in-windows-7/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 07:01:00 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=976</guid>
		<description><![CDATA[Have you tried to copy a profile in Windows 7? Well if you have then you have seen this issue before where the copy command is grayed out as seen below: I originally had a desktop not connected to my internal domain and as you can tell from my posts, I do a lot of tests on [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Have you tried to copy a profile in Windows 7? Well if you have then you have seen this issue before where the copy command is <strong><em>grayed </em></strong>out as seen below:</p>
<p><img class="aligncenter size-full wp-image-981" title="1-Copy Disabled" src="http://cdn.smattie.com/wp-content/uploads/2012/04/1-Copy-Disabled1.png" alt="" width="397" height="420" /></p>
<p>I originally had a desktop not connected to my internal domain and as you can tell from my posts, I do a lot of tests on SQL Server. So, it was getting old having to log in and out my local account to my domain account to verify things. I wanted to use just one profile and maintain what I had on my oldest profile. A lot of articles on the internet were pointing me to this Microsoft KB: <a href="http://support.microsoft.com/kb/973289">How to customize the default local user profile when you prepare an image of Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2</a> but I was also seeing a lot of confusion on this process, but more importantly I did <strong>not</strong> want to run sysprep for such a simple task and <strong><em>possibly</em></strong> mess up my computer account in my domain. (By accidentally choosing the wrong option and resetting my SID)</p>
<p>Then I found a great tool called <strong><a href="http://www.bluemoonpcrepair.com/software/utils/windowsenabler.zip">Windows Enabler 1.1</a></strong> which will allow you to unlock these feature and just do your copy as we got used to doing in Windows XP. (This is a very handy and portable utility, which you can keep on a thumb drive or even network utilities folder) All that is needed is to <strong><a href="http://www.7-zip.org/download.html">unzip</a></strong> the files and then have both the “Windows Enabler.exe” and “EnablerDLL.dll” together in a folder. <strong>Then follow these simple steps:</strong></p>
<p>1. Run <strong><a href="http://www.bluemoonpcrepair.com/software/utils/windowsenabler.zip">Windows Enabler</a></strong> *as <strong>Administrator</strong>* and this icon will show up in your system tray.</p>
<p><img class="aligncenter size-full wp-image-982" title="2-RunEnableAdmin" src="http://cdn.smattie.com/wp-content/uploads/2012/04/2-RunEnableAdmin.png" alt="" width="556" height="225" /></p>
<p>2. You will now see the <strong>Windows Enabler</strong> icon in your system tray, and it should look like this:</p>
<p><img class="aligncenter size-full wp-image-983" title="3-enable" src="http://cdn.smattie.com/wp-content/uploads/2012/04/3-enable.png" alt="" width="112" height="38" /><br />
3.  Click (<strong>one time</strong>) on the Windows Enabler icon in your system tray, and it should say “<strong>On</strong>”</p>
<p><img class="aligncenter size-full wp-image-984" title="4-enable_on" src="http://cdn.smattie.com/wp-content/uploads/2012/04/4-enable_on.png" alt="" width="30" height="28" /></p>
<p>4. Click once <strong>on</strong> the “<strong>Copy To</strong>” button, and it should <strong>un-gray</strong> the button</p>
<p><img class="aligncenter size-full wp-image-986" title="5-CopyEnabled" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/5-CopyEnabled.png" alt="" width="394" height="418" /></p>
<p>Now, that the <strong>Copy To</strong> button is working again! You can copy user profiles as you normally would, and then try logging in as the new user.</p>
<p><img class="aligncenter size-full wp-image-987" title="6-CopyTo" src="http://cdn.smattie.com/wp-content/uploads/2012/04/6-CopyTo.png" alt="" width="403" height="251" /></p>
<p>As in most cases, please make sure you <strong>test</strong> these features <strong>before</strong> you do this on any production system. I highly recommend that you review this technet article <strong>beforehand</strong>: <a href="http://blogs.technet.com/b/deploymentguys/archive/2009/10/29/configuring-default-user-settings-full-update-for-windows-7-and-windows-server-2008-r2.aspx">Configuring Default User Settings – Full Update for Windows 7 and Windows Server 2008 R2</a> Please note that <strong>manual</strong> copies are <strong>unsupported </strong>and here are some of the highlights from that technet blog:</p>
<p><em>The manual profile copy process can cause issues such as:</em></p>
<ul>
<li><em>Their list of most frequently run programs is not cleared</em></li>
<li><em>Whether the user has been introduced to the Start menu (will be set to TRUE for the source account, but should be FALSE for new users). Windows Explorer does some special things the first time you log on to introduce you to the Start menu and other new features.</em></li>
<li><em>Whether the user is an administrator (and should therefore see the Administrative Tools, etc).</em></li>
<li><em>The personalized name for “My Documents” will be incorrect. All users documents folders will be called “Administrator’s Documents”. This is documented in the Knowledge Base article “The Desktop.ini File Does Not Work Correctly When You Create a Custom Default Profile” (http://support.microsoft.com/?id=321281).</em></li>
<li><em>The default download directory for IE will be set to the Administrator’s Desktop folder.</em></li>
<li><em>The default Save and Open locations for some application with point to the Administrator’s documents folder.</em></li>
<li><em>Windows 7 Libraries are broken.</em></li>
</ul>
<p><em>Because of these issues, this process is no longer supported in Windows XP and all later operating systems. <strong>Unfortunately</strong>,<strong> the ability to copy a profile over the Default User profile was not blocked in Windows XP, Windows Server 2003, Windows Vista, or Windows Server 2008</strong>. This allowed many administrators to continue using the process and putting their Windows installations into an unsupported state. To prevent this, Windows 7 and Windows Server 2008 R2 <strong>now</strong> block this scenario by having the Control Panel System applet gray out the option to overwrite the Default User profile.</em></p>
<div class="shr-publisher-976"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/02/having-an-issue-trying-to-copy-user-profiles-in-windows-7/' data-shr_title='Having+an+issue+trying+to+copy+user+profiles+in+Windows+7%3F'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/02/having-an-issue-trying-to-copy-user-profiles-in-windows-7/' data-shr_title='Having+an+issue+trying+to+copy+user+profiles+in+Windows+7%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/02/having-an-issue-trying-to-copy-user-profiles-in-windows-7/' data-shr_title='Having+an+issue+trying+to+copy+user+profiles+in+Windows+7%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/02/having-an-issue-trying-to-copy-user-profiles-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Last Known Good Backup/DBCC</title>
		<link>http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=last-known-good-backupdbcc</link>
		<comments>http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 10:16:34 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=972</guid>
		<description><![CDATA[Today, I was researching information on DBCC and database backups. I was trying to ensure that I have good data in my backup, as you know&#8230; garbage in leads to garbage out. Basically, your data is only good as the data you pull from Talking with Robert Davis (Blog &#124; Twitter) he provided me with [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Today, I was researching information on DBCC and database backups. I was trying to ensure that I have good data in my backup, as you know&#8230; <strong>garbage in</strong> leads to <strong>garbage out</strong>. Basically, your data is only good as the data you pull from</p>
<p>Talking with <strong>Robert Davis</strong> (<a href="http://www.sqlsoldier.com/wp/">Blog</a> | <a href="https://twitter.com/#!/SQLSoldier">Twitter</a>) he provided me with some good advice: &#8220;<em>You should be running DBCC CheckDB regularly. Daily if your system can handle it, but at least weekly. You don&#8217;t need to check for the last good DBCC CheckDB if you are running regular CheckDB. For backups, you should be using the CHECKSUM option of the backup command</em>.&#8221; So with that being said, I went and tested some of my scripts and then modified them to ensure they are doing a <strong><em>CHECKSUM</em></strong>. Then my next goal was to verify that my databases had recent DBCC checks. (<strong><em><a href="http://msdn.microsoft.com/en-us/library/ms176064%28v=sql.110%29.aspx">DBCC CheckDB</a></em></strong>)</p>
<p>One of the articles I came across was a great one from <a href="http://blogs.msdn.com/b/sql_pfe_blog/archive/2010/02/09/last-known-good-backup-dbcc.aspx">MSDN SQL Server Premier Field Engineer Blog</a>. Not only did it let me know the last known good DBCC check, but it also provided a nice chart listed below to allow you to compare that information against when you had a backup.</p>
<p><img class="aligncenter size-full wp-image-974" title="check" src="http://cdn2.smattie.com/wp-content/uploads/2012/04/check.png" alt="" width="459" height="275" /></p>
<p>That made it all too easy for me to see if I had a good backup that actually had valid data in it! This script made me feel better about my backups not having any <strong>garbage</strong> data. I hope this information helps you as well.</p>
<p>I also wanted to add that you should add this TSQL code (CHECKSUM) in your backup as well to verify your data.</p>
<p style="text-align: center;"><a href="http://cdn.smattie.com/wp-content/uploads/2012/04/Checksum.png"><img class="wp-image-1031 aligncenter" title="Checksum" src="http://cdn.smattie.com/wp-content/uploads/2012/04/Checksum.png" alt="" width="560" height="503" /></a></p>
<div class="shr-publisher-972"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/' data-shr_title='Last+Known+Good+Backup%2FDBCC'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/' data-shr_title='Last+Known+Good+Backup%2FDBCC'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/' data-shr_title='Last+Known+Good+Backup%2FDBCC'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/04/01/last-known-good-backupdbcc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Evolution of T-SQL between SQL 2005 &amp; 2008 versions</title>
		<link>http://www.smattie.com/2012/03/29/evolution-of-t-sql-between-sql-2005-2008-versions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=evolution-of-t-sql-between-sql-2005-2008-versions</link>
		<comments>http://www.smattie.com/2012/03/29/evolution-of-t-sql-between-sql-2005-2008-versions/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 02:13:25 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=939</guid>
		<description><![CDATA[Ever wondered what has changed under the hood between versions of Microsoft SQL Server? Well, then this post is for you! What’s new in SQL 2008 Programmability Enhancements (Database Engine) What got deprecated in SQL 2008 Deprecated Database Engine Features in SQL Server 2008 What was discontinued in SQL 2008 Discontinued Database Engine Functionality in [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div>
<p>Ever wondered what has changed under the hood between versions of Microsoft SQL Server? Well, then this post is for you!</p>
<p><strong>What’s new in SQL 2008</strong></p>
</div>
<p><a href="http://msdn.microsoft.com/en-us/library/cc645577%28v%3dsql.100%29.aspx">Programmability Enhancements (Database Engine)</a></p>
<p><strong>What got deprecated in SQL 2008</strong></p>
<p><a href=" http://msdn.microsoft.com/en-us/library/ms143729%28v%3dsql.100%29.aspx">Deprecated Database Engine Features in SQL Server 2008</a></p>
<p><strong>What was discontinued in SQL 2008</strong></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms144262%28v%3dsql.100%29.aspx">Discontinued Database Engine Functionality in SQL Server 2008</a></p>
<p><strong>Breaking changes in SQL 2008</strong></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms143179%28v%3dsql.100%29.aspx">Breaking Changes to Database Engine Features in SQL Server 2008</a></p>
<p><strong>Additional information that I have been meaning to link for a long time:</strong></p>
<p>This is a stored procedure that was custom made by <strong>Adam Machanic</strong> (<a href="http://sqlblog.com/blogs/adam_machanic/default.aspx">Blog</a>) which will allow you to monitor what is running on your SQL Server system. It is a real nifty tool and I highly recommend that you take a look at it.</p>
<p><a href="http://sqlblog.com/blogs/adam_machanic/archive/2011/04/28/who-is-active-s-hidden-gems-a-month-of-activity-monitoring-part-28-of-30.aspx">Who is Active&#8217;s Hidden Gems (A Month of Activity Monitoring, Part 28 of 30)</a></p>
<p><a href="http://sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx">Released: Who is Active v11.11</a></p>
<p>&nbsp;</p>
<div class="shr-publisher-939"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/29/evolution-of-t-sql-between-sql-2005-2008-versions/' data-shr_title='Evolution+of+T-SQL+between+SQL+2005+%26+2008+versions'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/29/evolution-of-t-sql-between-sql-2005-2008-versions/' data-shr_title='Evolution+of+T-SQL+between+SQL+2005+%26+2008+versions'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/29/evolution-of-t-sql-between-sql-2005-2008-versions/' data-shr_title='Evolution+of+T-SQL+between+SQL+2005+%26+2008+versions'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/29/evolution-of-t-sql-between-sql-2005-2008-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>**UPDATE:** HOW TO: Move SQL Server transaction log files to a different location via TSQL and SSMS</title>
		<link>http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms</link>
		<comments>http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/#comments</comments>
		<pubDate>Sun, 25 Mar 2012 20:52:46 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=922</guid>
		<description><![CDATA[This is to correct some information that I had put out there in this article. From reading books online, it appears that my information was intended only for SQL Server 2005 databases. Talking with Robert Davis (Blog &#124; Twitter) at work, I was advised that my earlier article was in correct and sure enough when I [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is to correct some information that I had put out there in this <a href="http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/">article</a>. From reading books online, it appears that my information was intended only for SQL Server 2005 databases. Talking with <strong>Robert Davis</strong> (<a href="http://www.sqlsoldier.com/wp/">Blog </a>| <a href="https://twitter.com/#!/SQLSoldier">Twitter</a>) at work, I was advised that my earlier article was in correct and sure enough when I tested with one of my personal databases; it did exactly as he warned me. I also want to thank him for proof reading this article for me as well. I am blessed to know him and have adopted him as my mentor. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8220;<strong><em>Don’t use detach and attach to move database files. It’s risky. If the database doesn’t shut down cleanly, you won’t be able to reattach it. The proper way to move database files is detailed in Books Online</em></strong>.&#8221;</p>
<p>The proper article for moving databases in SQL 2008 and later is documented <a href="http://msdn.microsoft.com/en-us/library/ms345483%28v=sql.100%29.aspx">here</a> that Books Online will point you to as well.</p>
<p>Then as I reached out for help on Twitter, I got some great advice <a href="http://adventuresinsql.com/2010/05/how-do-i-move-sql-database-files-around/">here</a> from <strong>David Levy</strong>. (<a href="http://adventuresinsql.com/ ">Blog </a>| <a href="https://twitter.com/#!/Dave_Levy">Twitter</a>) I modified this script to place comments in it, so I could explain what is going on, as it is a <strong>script that generates a script</strong> to actually move the files. I like it because it gives you a chance to see what you have <strong>BEFORE</strong> you do anything.</p>
<div class="shr-publisher-922"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/' data-shr_title='%2A%2AUPDATE%3A%2A%2A+HOW+TO%3A+Move+SQL+Server+transaction+log+files+to+a+different+location+via+TSQL+and+SSMS'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/' data-shr_title='%2A%2AUPDATE%3A%2A%2A+HOW+TO%3A+Move+SQL+Server+transaction+log+files+to+a+different+location+via+TSQL+and+SSMS'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/' data-shr_title='%2A%2AUPDATE%3A%2A%2A+HOW+TO%3A+Move+SQL+Server+transaction+log+files+to+a+different+location+via+TSQL+and+SSMS'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO FIX: Clock Drift Automatically with Task Scheduler (Not joined to Domain)</title>
		<link>http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain</link>
		<comments>http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 21:53:03 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=855</guid>
		<description><![CDATA[In one of my earlier post I talked about fixing Clock drift for a virtual machine that is not joined to a domain. It is located here. The issue that I was running into was that my clock for some reason would get set back about a day and that would mess up my time [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In one of my earlier post I talked about fixing Clock drift for a virtual machine that is <strong>not</strong> joined to a domain. It is located <a href="http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/">here</a>.</p>
<p>The issue that I was running into was that my clock for some reason would get set back about a day and that would mess up my time that I submitted posts. For example, this <a href=" http://www.smattie.com/2012/02/29/new-adventures-and-challenges/">post about me leaving Amazon</a> was supposed to be on <strong>1 March 2012</strong>, but it was posted a day earlier due to my clock drift issue.</p>
<p>People have recommended to me earlier that all you needed to do was <strong>change</strong> the existing <strong>Synchronize Time</strong> scheduled task so that it runs more frequently. From my experience that did <strong>not</strong> help. I even tried making that task run once a day and my clock still drifted. Upon my investigation, it appears that it would <strong>only</strong> make sure that the Windows Time service is running and if it&#8217;s already running then the task does nothing. It relies on the Windows Time service to actually performs the sync, which appeared to be about be once a week.</p>
<p>There is also the <strong>SpecialPollInterval</strong> setting under<strong> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\TimeProviders\NtpClient</strong> registry key settings, which I used to recommend a lot. (Please note this key has moved a few times between Windows versions) I got the impression that this setting would allow you to specify in minutes how often it should sync.</p>
<p>While modifying that registry value may update the &#8220;next sync time&#8221; displayed in the control panel, I have found it does *not* actually affect how frequently the clock is synced. Feel free to verify it yourself but my testing seems to confirm my verdict.</p>
<p>As far as I have observed, the registry value changes how often the time service wants to sync but only applies it when time service is actually running. When the time service sync is controlled by the Windows Task Scheduler (and not the registry value) then when the service runs it exits immediately after performing any required task from the job. After that the time service will not do anything (or run at all) until the Task Scheduler starts the task again.</p>
<p><strong>Which gets to… how do we fix it?? (</strong>My favorite part of this topic<strong>) </strong>As you can tell from <strong>above</strong> there is a lot of information out there that can be misleading to fix the issue.</p>
<p>The <a href="http://technet.microsoft.com/en-us/library/cc773263%28WS.10%29.aspx">W32tm.exe tool</a>, with /resync argument, triggers a clock sync, provided the Windows Time service is running. (If you want to test it manually, note that the command requires administrator rights and that the service may need to be started.)</p>
<p>It&#8217;s easy to set up a scheduled task which ensures the Windows Time service is available and then runs W32tm.exe /resync once a day <strong>or</strong> as often as you like:</p>
<ul>
<li>Open <strong>Task Scheduler</strong> (Go to <strong>Administrative tools</strong> and it is on the menu or search in <strong>Control Panel</strong>).</li>
<li>Find the <strong>Microsoft / Windows / Time Synchronization</strong> branch and click <strong>Create Task&#8230; <a href="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step1.png"><img class="wp-image-867 aligncenter" title="Step1" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step1.png" alt="" width="572" height="359" /></a></strong></li>
<li>Provide the task a name. I called mine <strong>Properly</strong> <strong>Synchronize Time</strong>.</li>
<li>Set the new task to run as the <strong>LOCAL SERVICE</strong> user.</li>
<li>Set it to <strong>run with highest privileges</strong> and to be configured for your OS version. <img class="aligncenter  wp-image-856" title="Step2" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step2.png" alt="" width="575" height="427" /></li>
<li>Add a new <strong>Trigger</strong>. <img class="aligncenter  wp-image-857" title="Step3" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step3.png" alt="" width="574" height="427" /></li>
<li>Set the task to run daily at the time you want, but it is best to run it right away.  I also wanted mine to run every 10 minutes as well.<img class="aligncenter size-full wp-image-858" title="Step4" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step4.png" alt="" width="593" height="504" /></li>
<li>The task will have two actions. Make sure they end up in the right order. The first action does the same as the original Synchronize Time task and ensures the Windows Time service is running. The second action makes the actual time sync happen.</li>
<li>Add a new <strong>Action</strong>. <a href="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step6.png"><img class="wp-image-860 aligncenter" title="Step6" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step6.png" alt="" width="517" height="383" /></a></li>
<li>Set the first action to <strong>start a program</strong>, which is <strong>C:\Windows\system32\sc.exe</strong> with arguments <strong>start w32time task_started <img class="aligncenter size-full wp-image-861" title="Step7" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step7.png" alt="" width="454" height="493" /></strong><br />
<strong></strong>Set the second action to <strong>start a program</strong>, which is <strong>C:\Windows\system32\w32tm.exe</strong> with argument <strong>/resync <img class="aligncenter size-full wp-image-863" title="Step9" src="http://cdn.smattie.com/wp-content/uploads/2012/03/Step9.png" alt="" width="460" height="491" /></strong></li>
<li>Notice both actions are listed. <a href="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step10.png"><img class="wp-image-864 aligncenter" title="Step10" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step10.png" alt="" width="573" height="426" /></a></li>
<li>Turn off the setting which makes the task only run on AC power. The task is very brief so there&#8217;s no reason to <strong>only</strong> run it when on battery power. <a href="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step11.png"><img class="wp-image-865 aligncenter" title="Step11" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step11.png" alt="" width="573" height="424" /></a></li>
<li>Set the task to start <strong>only</strong> if a network connection is available.</li>
<li>Set the task to run as soon as possible if its schedule is missed. (Other options are set by <strong>default</strong>.)<a href="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step12.png"><img class="wp-image-866 aligncenter" title="Step12" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Step12.png" alt="" width="571" height="426" /></a></li>
<li>To test that the task <strong><em>actually</em></strong> works, manually mess up your clock&#8217;s time and then right-click the task and select Run. Your clock&#8217;s time should be corrected or you can also wait 10 minutes if you scheduled your job like I did.</li>
<li>You should also check the <strong>Date and Time</strong> control panel to ensure it is set to synchronize time via the Internet. (Note that the Date and Time control panel will still say the next synchronization is a week away. It only knows about its own schedule and doesn&#8217;t know about the task we just set up.)</li>
</ul>
<div class="shr-publisher-855"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/' data-shr_title='HOW+TO+FIX%3A+Clock+Drift+Automatically+with+Task+Scheduler+%28Not+joined+to+Domain%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/' data-shr_title='HOW+TO+FIX%3A+Clock+Drift+Automatically+with+Task+Scheduler+%28Not+joined+to+Domain%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/' data-shr_title='HOW+TO+FIX%3A+Clock+Drift+Automatically+with+Task+Scheduler+%28Not+joined+to+Domain%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Had an amazing time at SQL Saturday in Vancouver!</title>
		<link>http://www.smattie.com/2012/03/17/had-an-amazing-time-at-sql-saturday-in-vancouver/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=had-an-amazing-time-at-sql-saturday-in-vancouver</link>
		<comments>http://www.smattie.com/2012/03/17/had-an-amazing-time-at-sql-saturday-in-vancouver/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 06:59:11 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Saturday]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=846</guid>
		<description><![CDATA[If you have never been to a SQL Saturday event, I highly suggest that you do! You can find an upcoming event here and following this event on twitter #sqlsat114  As stated earlier in one of my posts this SQL community is really one of the bright spots in the IT field. I was so happy [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you have never been to a SQL Saturday event, I highly suggest that you do! You can find an upcoming event <a href="http://sqlsaturday.com/">here</a> and following this event on twitter <a href="https://twitter.com/#!/search/%23sqlsat114">#sqlsat114 </a></p>
<p>As stated earlier in one of my <a href="(http://www.smattie.com/my-small-attempt-to-give-back-to-the-it-community/">posts</a> this SQL community is really one of the bright spots in the IT field. I was so happy to meet and talk with a lot of people that I was following through books and blogs. I also want to stress, that if you are not on Twitter, you are really missing out on reaching out to these great people, plus the <a href="https://twitter.com/#!/search/%23sqlhelp">#SQLHelp</a> aspect.</p>
<p>I also ended up meeting some great people and wanted to mention a few of them for others who may <strong><em>not</em></strong> be aware of them:</p>
<p><strong>Steve Stedman</strong> <strong>(</strong><a href="http://stevestedman.com/">Blog</a> | <a href="https://twitter.com/#!/SqlEmt">Twitter</a><strong>) </strong>presented an awesome presentation on <a href="http://stevestedman.com/server-health/">Using SSRS Reports to Analyze SQL Server Health. </a> He also made this great <a href="http://stevestedman.com/2012/03/a-great-day-at-sql-saturday-in-vancouver-bc/">post</a> about the day!</p>
<p><strong>Donabel Santos </strong>(<a href="http://www.sqlmusings.com/">Blog</a> | <a href="https://twitter.com/#!/sqlbelle">Twitter</a>) also did a great job presenting and encouraging people to use SQL and PowerShell. You can review her information here: <a href="http://www.sqlmusings.com/2012/03/10/sqlsaturday-114-in-vancouver-powershell-and-etl-with-ssis/">SQLSaturday #114 in Vancouver – PowerShell and ETL with SSIS</a></p>
<p>Seriously, do yourself a huge favor and please join your local <a href="http://www.sqlpass.org/">SQL PASS</a> user group. There are a lot of great people to meet and it is <strong>free</strong>&#8230; all it takes is a little bit of effort to just attend a meeting or two. The rewards are really remarkable and it is a great community to be a part of, but it becomes better when you start giving back to the community!</p>
<p>Thank you <strong>Vancouver</strong> for putting on a great SQL Saturday and allowing me to visit Canada for the first time!</p>
<div class="shr-publisher-846"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/17/had-an-amazing-time-at-sql-saturday-in-vancouver/' data-shr_title='Had+an+amazing+time+at+SQL+Saturday+in+Vancouver%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/17/had-an-amazing-time-at-sql-saturday-in-vancouver/' data-shr_title='Had+an+amazing+time+at+SQL+Saturday+in+Vancouver%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/17/had-an-amazing-time-at-sql-saturday-in-vancouver/' data-shr_title='Had+an+amazing+time+at+SQL+Saturday+in+Vancouver%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/17/had-an-amazing-time-at-sql-saturday-in-vancouver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed an issue *installing* SQL Server 2008r2</title>
		<link>http://www.smattie.com/2012/03/16/fixed-an-issue-installing-sql-server-2008r2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixed-an-issue-installing-sql-server-2008r2</link>
		<comments>http://www.smattie.com/2012/03/16/fixed-an-issue-installing-sql-server-2008r2/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 06:43:12 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=831</guid>
		<description><![CDATA[As you will remember, I had an issue trying to *remove* SQL Server 2008r2 as noted here. What I failed to tell you was what my REAL issue was&#8230; I could not successfully install SQL Server 2008r2 and I kept getting this error: So I used my tip again to remove the new installation that [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As you will remember, I had an issue trying to *remove* SQL Server 2008r2 as noted <a href="http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/">here</a>. What I failed to tell you was what my <strong>REAL</strong> issue was&#8230; I could not successfully install SQL Server 2008r2 and I kept getting this error:</p>
<p><img class="aligncenter size-full wp-image-834" title="install" src="http://cdn.smattie.com/wp-content/uploads/2012/03/install.png" alt="" width="304" height="62" /></p>
<p>So I used my <a href="http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/">tip</a> again to remove the new installation that I attempted last night, which works great, but it still prevented me from installing it. Then I decided to look at the registry and I was surprised&#8230; my switch that I corrected last time was set back to <strong>zero</strong>!! (As seen below)</p>
<p><img class="aligncenter size-full wp-image-836" title="reg_broke" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/reg_broke.png" alt="" width="324" height="27" /></p>
<p>I made the change back to <strong>1</strong> to prevent switch back and tried the install again. (<strong>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat\sbEnable = 1</strong>)</p>
<p><img class="aligncenter size-full wp-image-837" title="reg_fix" src="http://cdn.smattie.com/wp-content/uploads/2012/03/reg_fix.png" alt="" width="323" height="23" /></p>
<p>It failed again, but this time the registry stayed the same, so I had to remove it and then I went looking into the computer policy to see what might be causing the issue. First I opened it by typing <strong>gpedit.msc</strong>:</p>
<p><img class="aligncenter size-full wp-image-835" title="gpedit" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/gpedit.png" alt="" width="410" height="212" /></p>
<p>Then I went looking at <strong>Computer Configuration, Administrative Templates, Windows Components</strong> and <strong>Application Compatibility</strong></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-840" title="policy" src="http://cdn.smattie.com/wp-content/uploads/2012/03/policy.png" alt="" width="564" height="172" /></p>
<p>SO I went through each one and re-read this <a href="http://technet.microsoft.com/en-us/library/ee126130%28WS.10%29.aspx#BKMK_Procedure">article</a> to understand the SwitchBack Compatibility engine better. Simply put, switchback is a mechanism that provides generic compatibility mitigations to older applications by providing older behavior to old applications and new behavior to new applications. It should also be noted that <strong>switchback is on by default</strong>. I turned it off, as seen below:</p>
<p><img class="aligncenter size-full wp-image-839" title="Switchback" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/Switchback.png" alt="" width="480" height="181" /></p>
<p>Behold it worked and just in time for SQL Saturday in Vancouver, BC in Canada. <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="aligncenter size-full wp-image-838" title="success" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/success.png" alt="" width="356" height="56" /></p>
<div class="shr-publisher-831"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/16/fixed-an-issue-installing-sql-server-2008r2/' data-shr_title='Fixed+an+issue+%2Ainstalling%2A+SQL+Server+2008r2'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/16/fixed-an-issue-installing-sql-server-2008r2/' data-shr_title='Fixed+an+issue+%2Ainstalling%2A+SQL+Server+2008r2'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/16/fixed-an-issue-installing-sql-server-2008r2/' data-shr_title='Fixed+an+issue+%2Ainstalling%2A+SQL+Server+2008r2'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/16/fixed-an-issue-installing-sql-server-2008r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed an issue *removing* SQL Server 2008r2</title>
		<link>http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixed-an-issue-removing-sql-server-2008r2</link>
		<comments>http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 06:22:55 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=822</guid>
		<description><![CDATA[I had an issue tonight where I was unable to remove Microsoft SQL Server 2008r2. The setup was just hanging at this step SqlEngineConfigAction_remove_validation_Cpu64. I first tried to remove it by Add/Remove Programs and then tried it by the command line: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2&#62;setup.exe /ACTION=uninstall /FEATURES=SQL,AS,BOL,SSMS/INSTANCENAME=MSSQLSERVER Neither action would work and it was [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I had an issue tonight where I was unable to remove Microsoft SQL Server 2008r2. The setup was just hanging at this step <strong>SqlEngineConfigAction_remove_validation_Cpu64</strong>.</p>
<p>I first tried to remove it by Add/Remove Programs and then tried it by the command line:</p>
<p><strong><em>C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2&gt;setup.exe </em></strong></p>
<p><strong><em>/ACTION=uninstall /FEATURES=SQL,AS,BOL,SSMS</em></strong><strong><em>/INSTANCENAME=MSSQLSERVER</em></strong></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-823" title="commandremove" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/commandremove.png" alt="" width="575" height="46" /></p>
<p>Neither action would work and it was still stuck there. So it appeared installed, but the program would never work and it left me without the ability to remove it. So, I did a bit of searching on the internet and found<strong> 2 great posts below as reference links</strong> that helped aid me in resolving the issue, as seen below.</p>
<p>It appears that the following Registry-Key <strong>must</strong> be set to 1 (Originally mine was set to 0, which caused the switchback functionality to be overridden):</p>
<p><strong>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat\sbEnable = 1</strong></p>
<p>More information here:</p>
<p>Windows 7 AppCompat changes and SQL Server client and setup hangs<br />
<a href="http://blogs.msdn.com/b/sql_protocols/archive/2010/08/13/windows-7-appcompat-changes-and-sql-server-client-and-setup-hangs.aspx">http://blogs.msdn.com/b/sql_protocols/archive/2010/08/13/windows-7-appcompat-changes-and-sql-server-client-and-setup-hangs.aspx</a></p>
<p>After I made the change, rebooted and then re-ran my command line removal (<strong>listed above</strong>) and it worked like a champ as seen below!</p>
<p><img class="aligncenter size-full wp-image-824" title="Removed" src="http://cdn.smattie.com/wp-content/uploads/2012/03/Removed.png" alt="" width="338" height="48" /></p>
<p><strong>Reference links:</strong></p>
<p>Cannot Uninstall/repair SQL2008R2 Dev. &#8211; Setup hangs at step SqlEngineConfigAction_remove_validation_Cpu64 infinite!<br />
<a href="http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/8d00ba7a-e3dc-408e-bb01-6ed82f3f0ccc/">http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/8d00ba7a-e3dc-408e-bb01-6ed82f3f0ccc/</a></p>
<p>SQL Server 2008 installation fails when you try to install SQL Server a second time (<strong><em>Shows command line removal</em></strong>)<br />
<a href="http://support.microsoft.com/kb/955404">http://support.microsoft.com/kb/955404</a></p>
<div class="shr-publisher-822"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/' data-shr_title='Fixed+an+issue+%2Aremoving%2A+SQL+Server+2008r2'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/' data-shr_title='Fixed+an+issue+%2Aremoving%2A+SQL+Server+2008r2'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/' data-shr_title='Fixed+an+issue+%2Aremoving%2A+SQL+Server+2008r2'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/15/fixed-an-issue-removing-sql-server-2008r2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW TO FIX: Clock Drift in Cloud Environments (not joined to AD domain)</title>
		<link>http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain</link>
		<comments>http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 08:30:40 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=810</guid>
		<description><![CDATA[This is really an outdated bit of information, please see the better method to resolve clock drift in this post by me. I have been slammed lately with moving from one place to another and taking on a new job, so I was not actively monitoring my web server that hosts this site. I checked [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is really an <strong>outdated</strong> bit of information, please see the better method to resolve clock drift in this <strong><a href="http://www.smattie.com/2012/03/24/how-to-fix-clock-drift-automatically-with-task-scheduler-not-joined-to-domain/">post by me</a></strong>.</p>
<p>I have been slammed lately with moving from one place to another and taking on a new job, so I was <strong>not</strong> actively monitoring my web server that hosts this site. I checked on it today and noticed 2 things:</p>
<p>- Daylight Savings did <strong>not</strong> take effect (Since the time zone was reset back to UTC and was scheduled for 25 MAR 2012)<br />
- The time was <strong>actually</strong> a day off! (Which caught my eye when I made a recent <strong><a href="http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/">post</a></strong>)</p>
<p>SO I went to fix the issue by doing the following:</p>
<p><em>net stop w32time </em><br />
<em>w32tm /config /manualpeerlist:time.windows.com /syncfromflags:MANUAL</em><br />
<em>net start w32time</em></p>
<p>They all worked fine until I performed this command:</p>
<p><em>w32tm /resync</em></p>
<p>It provided this error:</p>
<p><strong><em>Sending resync command to local computer</em></strong><br />
<strong><em>The computer did not resync because the required time change was too big.</em></strong></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-812" title="Step1" src="http://cdn.smattie.com/wp-content/uploads/2012/03/Step1.jpg" alt="" width="599" height="296" /></p>
<p>So I checked on the <strong>Internet time</strong> by going to the clock in the systray and selected <strong>Adjust date/time</strong>.</p>
<p><img class="aligncenter size-full wp-image-813" title="step2" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/step2.jpg" alt="" width="450" height="467" /></p>
<p>And I saw the same error message that I got from the command prompt:</p>
<p><img class="aligncenter size-full wp-image-814" title="step3" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/step3.jpg" alt="" width="450" height="469" /></p>
<p>So I selected <strong>change settings&#8230;</strong> and then told it to updater the time from the internet server (time.windows.com)</p>
<p><img class="aligncenter size-full wp-image-815" title="step4" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/step4.jpg" alt="" width="434" height="249" /></p>
<p>It was successful!</p>
<p><img class="aligncenter size-full wp-image-816" title="step5" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/step5.jpg" alt="" width="433" height="250" /></p>
<p>And now we are golden <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="aligncenter size-full wp-image-817" title="step6" src="http://cdn2.smattie.com/wp-content/uploads/2012/03/step6.jpg" alt="" width="450" height="468" /></p>
<p><strong>Additional information for systems in the cloud:</strong></p>
<p>In addition to that concern, there could be concern with the NTP server, since by default, if memory serves me correctly, Windows will use either 2 or 3 NTP servers to get its time. (<a href="http://technet.microsoft.com/en-us/library/cc816633%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc816633%28WS.10%29.aspx</a>)</p>
<p>I would recommend that you add a total of<strong> 4 NTP servers</strong>, since Windows can remove NTP servers automatically if, for some reason, it does not get a response. That way you will have multiple NTP servers and will be able to ensure that you do not get effected by clock drift.</p>
<p>To set multiple NTP sources in Windows please use the following commands:</p>
<p><em><strong>w32tm /config /manualpeerlist:&#8221;0.north-america.pool.ntp.org 1.north-america.pool.ntp.org 2.north-america.pool.ntp.org 3.north-america.pool.ntp.org&#8221; /update</strong></em></p>
<p>You can verify that they are (or are not) in sync with an NTP source use:</p>
<p><strong><em>w32tm /monitor /computers:0.north-america.pool.ntp.org</em></strong></p>
<p>This command will force a NTP sync and you should consider having a batch file or windows task scheduler that runs frequently within your virtual machine (like once an hour or whatever you deem best for the situation):</p>
<p><strong><em>w32tm /resync /rediscover</em></strong></p>
<p>I would recommend looking at the articles, listed below in regards to how Windows time works and Clock drift, which does happen more frequently in a virtualized world.</p>
<p><a href="http://www.beaglesoft.com/Manual/page75.htm"><strong>What Causes Clock Drift?</strong></a></p>
<p><a href="http://blogs.msdn.com/b/w32time/archive/2007/10/31/a-tale-of-two-clocks.aspx"><strong>A Tale of Two Clocks</strong></a></p>
<p><a href="http://blogs.msdn.com/b/w32time/archive/2007/07/07/welcome.aspx"><strong>What is Windows Time Service?</strong></a></p>
<div class="shr-publisher-810"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/' data-shr_title='HOW+TO+FIX%3A+Clock+Drift+in+Cloud+Environments+%28not+joined+to+AD+domain%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/' data-shr_title='HOW+TO+FIX%3A+Clock+Drift+in+Cloud+Environments+%28not+joined+to+AD+domain%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/' data-shr_title='HOW+TO+FIX%3A+Clock+Drift+in+Cloud+Environments+%28not+joined+to+AD+domain%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/13/how-to-fix-clock-drift-in-cloud-environments-not-joined-to-ad-domain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wow! Amazon EC2 is lowering prices again&#8230;</title>
		<link>http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wow-amazon-ec2-is-lowering-prices-again</link>
		<comments>http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 08:46:03 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=801</guid>
		<description><![CDATA[Sorry all, that I missed this earlier and I meant to post this on Thursday, but I got tied up with work. This news listed below from Amazon&#8217;s web site is really good news. Last month, I was hosting this site on EC2 and since I wanted to run Windows 2008 R2 (which is 64 [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Sorry all, that I missed this earlier and I meant to post this on Thursday, but I got tied up with work. This news listed below from <a href="http://aws.amazon.com/about-aws/whats-new/">Amazon&#8217;s web site </a>is really good news. Last month, I was hosting this site on EC2 and since I wanted to run <strong>Windows 2008 R2</strong> (which is 64 bit) the only real option that I had for me, was to use m1.large, which was about $400.00 dollars a month. This recent change will allow me to run a m1.small and that would only cost me about $100.oo dollars. (Yes, a <strong>$300.00 dollar </strong>saving per month)</p>
<p>This is really welcome and wonderful news!</p>
<p><strong>Mar 07, 2012</strong></p>
<h2><a href="http://aws.amazon.com/about-aws/whats-new/2012/03/07/three-new-Amazon-EC2-features/">Announcing three new Amazon EC2 features</a></h2>
<p>We are announcing three new features that will make it even easier for you to use Amazon EC2 for your application and development needs.</p>
<ul>
<li>Customers can now launch 64-bit Amazon Machine Images (AMIs) on m1.small and c1.medium instances. This capability allows you to scale across micro, standard, high CPU and high memory EC2 instances with a single 64-bit AMI.</li>
<li>We are launching the thirteenth Amazon EC2 instance type, m1.medium. m1.medium instances are ideal for many applications that require a reasonable amount of CPU and memory, but do not require all the resources of an m1.large instance. This new instance type supports both 32 and 64-bit AMIs.</li>
<li>Customers can now log into their Linux instances directly from within the Amazon EC2 management console without the need to install additional software clients</li>
</ul>
<p>To learn more about Amazon EC2 and to try these new features, please visit the <a href="http://aws.amazon.com/ec2">Amazon EC2 Page</a></p>
<p>For all the latest AWS news, please subscribe to <strong><a href="http://aws.amazon.com/rss/whats-new.rss">Amazon&#8217;s &#8220;What&#8217;s New?&#8221; RSS feed</a>.</strong></p>
<div class="shr-publisher-801"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/' data-shr_title='Wow%21+Amazon+EC2+is+lowering+prices+again...'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/' data-shr_title='Wow%21+Amazon+EC2+is+lowering+prices+again...'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/' data-shr_title='Wow%21+Amazon+EC2+is+lowering+prices+again...'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/03/10/wow-amazon-ec2-is-lowering-prices-again/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New adventures and challenges</title>
		<link>http://www.smattie.com/2012/02/29/new-adventures-and-challenges/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-adventures-and-challenges</link>
		<comments>http://www.smattie.com/2012/02/29/new-adventures-and-challenges/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 16:52:08 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=760</guid>
		<description><![CDATA[Today marks my last day as an Amazonian with Amazon Web Services. I have enjoyed my time here and will miss the friendships that have formed since I joined them. I will still continue to blog about AWS and encourage others to use their features and services. As I have one foot out the door, [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Today marks my last day as an <strong><em>Amazonian</em></strong> with <a href="http://aws.amazon.com/">Amazon Web Services</a>. I have enjoyed my time here and will miss the friendships that have formed since I joined them. I will still continue to blog about AWS and encourage others to use their features and services. As I have one foot out the door, I wanted to say thank you for a great opportunity.</p>
<p>Life is about people. The more successful we are in building relationships, the more content and happiness we will experience in our lives. It makes the journey so much better when we are surrounded by great people and it is awesome when we can make a difference in other people&#8217;s lives. I am glad to have met so many great folks at Amazon. Thank you once again!</p>
<p>My next chapter of my career will commence on Monday at Microsoft in Redmond.</p>
<div class="shr-publisher-760"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/29/new-adventures-and-challenges/' data-shr_title='New+adventures+and+challenges'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/29/new-adventures-and-challenges/' data-shr_title='New+adventures+and+challenges'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/29/new-adventures-and-challenges/' data-shr_title='New+adventures+and+challenges'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/29/new-adventures-and-challenges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Had an amazing time at SQL Saturday in Redmond!</title>
		<link>http://www.smattie.com/2012/02/28/had-an-amazing-time-at-sql-saturday-in-redmond-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=had-an-amazing-time-at-sql-saturday-in-redmond-2</link>
		<comments>http://www.smattie.com/2012/02/28/had-an-amazing-time-at-sql-saturday-in-redmond-2/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 16:30:35 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Saturday]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=755</guid>
		<description><![CDATA[If you have never been to a SQL Saturday event, I highly suggest that you do! You can find an upcoming event here: http://sqlsaturday.com/ and https://twitter.com/#!/search/%23sqlsat108 As stated earlier in one of my posts (http://www.smattie.com/my-small-attempt-to-give-back-to-the-it-community/) this community is really one of the bright spots in the IT field. I was so happy to meet and talk with a [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you have never been to a SQL Saturday event, I highly suggest that you do! You can find an upcoming event here: <a href="http://sqlsaturday.com/">http://sqlsaturday.com/</a> and <a href="https://twitter.com/#!/search/%23sqlsat108">https://twitter.com/#!/search/%23sqlsat108</a></p>
<p>As stated earlier in one of my posts (<a href="http://www.smattie.com/my-small-attempt-to-give-back-to-the-it-community/">http://www.smattie.com/my-small-attempt-to-give-back-to-the-it-community/</a>) this community is really one of the bright spots in the IT field. I was so happy to meet and talk with a lot of people I was following through books and blogs. I also want to stress, that if you are not on <a href="http://twitter.com">Twitter,</a> you are really missing out on reaching out to these great people, plus the<strong> <a href="https://twitter.com/#!/search/%23sqlhelp">#SQLHelp</a></strong> aspect.</p>
<p>I also ended up meeting some great people and wanted to mention them for others who <strong><em>may</em> <em>not</em></strong> be aware of them:</p>
<p>Buck Woody (Key Note Speaker)<br />
<a href="http://buckwoody.com/">http://buckwoody.com/</a><br />
* Check out his resume&#8230; I was very impressed!</p>
<p>Kevin Kline from Quest software (I thought I knew hardware <strong><em>until</em></strong> I heard him talk)<br />
<a href="http://kevinekline.com/">http://kevinekline.com/</a> (Especially if you add his slides: <a href="http://kevinekline.com/slides">http://kevinekline.com/slides</a>)</p>
<p>Robert Davis (Awesome knowledge on SQL Database engine)<br />
<a href="http://www.sqlsoldier.com/wp/">http://www.sqlsoldier.com/wp/</a></p>
<p>Aaron Nelson (SQL PowerShell enthusiast)<br />
<a href="http://sqlvariant.com/">http://sqlvariant.com/</a></p>
<p>Argenis Fernandez (Mentioned him before, but check out this article)<br />
<a href="http://sqlblog.com/blogs/argenis_fernandez/archive/2012/01/12/leveraging-service-sids-to-logon-to-sql-server-2012-instances-with-sysadmin-privileges.aspx">http://sqlblog.com/blogs/argenis_fernandez/archive/2012/01/12/leveraging-service-sids-to-logon-to-sql-server-2012-instances-with-sysadmin-privileges.aspx</a></p>
<p>There were 2 things that I take away from this great day. One it was amazing to see how great this SQL community is in person and two, it is so nice to meet others who can be a bar raiser for your technical skills. I see a got some areas to improve in, but I also have some people I can reach out to for help. So, please join your local SQL PASS user group: <a href="http://www.sqlpass.org/">http://www.sqlpass.org/</a></p>
<div class="shr-publisher-755"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/28/had-an-amazing-time-at-sql-saturday-in-redmond-2/' data-shr_title='Had+an+amazing+time+at+SQL+Saturday+in+Redmond%21'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/28/had-an-amazing-time-at-sql-saturday-in-redmond-2/' data-shr_title='Had+an+amazing+time+at+SQL+Saturday+in+Redmond%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/28/had-an-amazing-time-at-sql-saturday-in-redmond-2/' data-shr_title='Had+an+amazing+time+at+SQL+Saturday+in+Redmond%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/28/had-an-amazing-time-at-sql-saturday-in-redmond-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: AWS Fault Tolerance strategies</title>
		<link>http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-aws-fault-tolerance-strategies</link>
		<comments>http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 08:01:18 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=665</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "awsft.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<div class="shr-publisher-665"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/' data-shr_title='Video%3A+AWS+Fault+Tolerance+strategies'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/' data-shr_title='Video%3A+AWS+Fault+Tolerance+strategies'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/' data-shr_title='Video%3A+AWS+Fault+Tolerance+strategies'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/22/video-aws-fault-tolerance-strategies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Configuring EC2Config Service to Capture Event Viewer information for Windows 2003/2008. (Get System Log)</title>
		<link>http://www.smattie.com/2012/02/21/video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log</link>
		<comments>http://www.smattie.com/2012/02/21/video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 08:01:24 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott Mattie]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=653</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "winec2event.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<div class="shr-publisher-653"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/21/video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log/' data-shr_title='Video%3A+Configuring+EC2Config+Service+to+Capture+Event+Viewer+information+for+Windows+2003%2F2008.+%28Get+System+Log%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/21/video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log/' data-shr_title='Video%3A+Configuring+EC2Config+Service+to+Capture+Event+Viewer+information+for+Windows+2003%2F2008.+%28Get+System+Log%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/21/video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log/' data-shr_title='Video%3A+Configuring+EC2Config+Service+to+Capture+Event+Viewer+information+for+Windows+2003%2F2008.+%28Get+System+Log%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/21/video-configuring-ec2config-service-to-capture-event-viewer-information-for-windows-20032008-get-system-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seizing FSMO Roles in Windows 2008 using ntdsutil</title>
		<link>http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=seizing-fsmo-roles-in-windows-2008-using-ntdsutil</link>
		<comments>http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 08:16:15 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=628</guid>
		<description><![CDATA[How can I forcibly transfer (seize) some or all of the FSMO Roles from one DC to another? Keep in mind bad things can happen at times Windows 2000/2003 Active Directory domains utilize a Single Operation Master method called FSMO (Flexible Single Master Operation), as described in Understanding FSMO Roles in Windows Active Directory. The [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>How can I forcibly transfer (seize) some or all of the FSMO Roles from one DC to another? <strong>Keep in mind bad things can happen at times <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </strong></p>
<p>Windows 2000/2003 Active Directory domains utilize a Single Operation Master method called FSMO (Flexible Single Master Operation), as described in <a href="http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/"> Understanding FSMO Roles in Windows Active Directory</a>.</p>
<p>The five FSMO roles are:</p>
<ul>
<li>Schema master &#8211; Forest-wide and one per forest.</li>
<li>Domain naming master &#8211; Forest-wide and one per forest.</li>
<li>RID master &#8211; Domain-specific and one for each domain.</li>
<li>PDC &#8211; PDC Emulator is domain-specific and one for each domain.</li>
<li>Infrastructure master &#8211; Domain-specific and one for each domain.</li>
</ul>
<p>In most cases an administrator can keep the FSMO role holders (all 5 of them) in the same spot (or actually, on the same DC) as has been configured by the Active Directory installation process. However, there are scenarios where an administrator would want to move one or more of the FSMO roles from the default holder DC to a different DC.</p>
<p>Moving the FSMO roles while both the original FSMO role holder and the future FSMO role holder are online and operational is called <strong>Transferring</strong>, and is described in the <a href="http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/"> Transferring FSMO Roles in Windows 2008 using ntdsutil</a> article.</p>
<p>However, when the original FSMO role holder went offline or became non operational for a long period of time, the administrator might consider moving the FSMO role from the original, non-operational holder, to a different DC. The process of moving the FSMO role from a non-operational role holder to a different DC is called <strong>Seizing</strong> and is described in this article.</p>
<p>If a DC holding a FSMO role <strong>fails</strong>, the best thing to do is to try and get the server <strong>online</strong> again. Since none of the FSMO roles are immediately critical (well,<strong><em> almost none</em></strong>, the loss of the PDC Emulator FSMO role might become a problem unless you fix it in a reasonable amount of time), so it is <strong>not</strong> a problem to them to be unavailable for hours or even days.</p>
<p>If a DC becomes <strong><em>unreliable</em></strong>, try to get it back on line, and <strong>transfer</strong> the FSMO roles to a reliable computer. Administrators should use <strong>extreme</strong> caution in <strong>seizing</strong> FSMO roles. This operation, in most cases, should be performed <strong>only</strong> if the original FSMO role owner will <strong>not</strong> be brought back into the environment. Only seize a FSMO role if absolutely necessary when the original role holder is <strong>not</strong> connected to the network.</p>
<p><em><strong>What will happen if you do not perform the seize in time? This table has the info:</strong></em></p>
<div>
<table id="table84" width="80%" border="1" cellpadding="2">
<tbody>
<tr>
<td bgcolor="#fdd6a2" width="35%">FSMO Role</td>
<td bgcolor="#fdd6a2" width="65%">Loss implications</td>
</tr>
<tr>
<td width="35%">Schema</td>
<td width="65%">The schema cannot be extended. However, in the short term no one will notice a missing Schema Master unless you plan a schema upgrade during that time.</td>
</tr>
<tr>
<td width="35%">Domain Naming</td>
<td width="65%">Unless you are going to run DCPROMO, then you will not miss this FSMO role.</td>
</tr>
<tr>
<td width="35%">RID</td>
<td width="65%">Chances are good that the existing DCs will have enough unused RIDs to last some time, unless you&#8217;re building hundreds of users or computer object per week.</td>
</tr>
<tr>
<td width="35%">PDC Emulator</td>
<td width="65%">Will be missed soon. NT 4.0 BDCs will not be able to replicate, there will be no time synchronization in the domain, you will probably not be able to change or troubleshoot group policies and password changes will become a problem.</td>
</tr>
<tr>
<td width="35%">Infrastructure</td>
<td width="65%">Group memberships may be incomplete. If you only have one domain, then there will be no impact.</td>
</tr>
</tbody>
</table>
</div>
<p><strong>Important:</strong> If the RID, Schema, or Domain Naming FSMOs are seized, then the original domain controller must <strong>not</strong> be activated in the forest again. It is necessary to <strong><em>reinstall Windows</em></strong> if these servers are to be used again.</p>
<p><strong>The following table summarizes the seizing </strong><strong>FSMO </strong><strong>restrictions:</strong></p>
<div>
<table id="table82" width="80%" border="1" cellpadding="2">
<tbody>
<tr>
<td bgcolor="#fdd6a2" width="35%">FSMO Role</td>
<td bgcolor="#fdd6a2" width="65%">Restrictions</td>
</tr>
<tr>
<td width="35%">Schema</td>
<td rowspan="3" width="65%">Original must be reinstalled</td>
</tr>
<tr>
<td width="35%">Domain Naming</td>
</tr>
<tr>
<td width="35%">RID</td>
</tr>
<tr>
<td width="35%">PDC Emulator</td>
<td rowspan="2" width="65%">Can transfer back to original</td>
</tr>
<tr>
<td width="35%">Infrastructure</td>
</tr>
</tbody>
</table>
</div>
<p><strong>Another consideration <em>before</em> performing the seize operation is the administrator&#8217;s group membership as shown here:</strong></p>
<div>
<table id="table83" width="80%" border="1" cellpadding="2">
<tbody>
<tr>
<td bgcolor="#fdd6a2" width="35%">FSMO Role</td>
<td bgcolor="#fdd6a2" width="65%">Administrator must be a member of</td>
</tr>
<tr>
<td width="35%">Schema</td>
<td width="65%">Schema Admins</td>
</tr>
<tr>
<td width="35%">Domain Naming</td>
<td width="65%">Enterprise Admins</td>
</tr>
<tr>
<td width="35%">RID</td>
<td rowspan="3" width="65%">Domain Admins</td>
</tr>
<tr>
<td width="35%">PDC Emulator</td>
</tr>
<tr>
<td width="35%">Infrastructure</td>
</tr>
</tbody>
</table>
</div>
<p>To seize the FSMO roles by using <strong>Ntdsutil</strong>, follow these steps:</p>
<p><strong>Caution:</strong>Using the Ntdsutil utility <strong>incorrectly</strong> may result in partial or complete <strong>loss</strong> of Active Directory functionality.</p>
<p>On any domain controller, click Start, click Run, type <strong><em>Ntdsutil</em></strong> in the Open box, and then click OK.</p>
<pre>Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS&gt;ntdsutil
ntdsutil:</pre>
<ol>
<li>Type <strong><em>roles</em></strong>, and then press ENTER.</li>
</ol>
<pre>ntdsutil: roles
fsmo maintenance:</pre>
<p><strong> Note:</strong> To see a list of available commands at any of the prompts in the <strong>Ntdsutil</strong> tool, type <strong>?</strong>, and then press ENTER.</p>
<ol>
<li>Type <strong><em>connections</em></strong>, and then press ENTER.</li>
</ol>
<pre>fsmo maintenance: connections
server connections:</pre>
<ol>
<li>Type <strong><em>connect to server &lt;servername&gt;</em></strong>, where <em>&lt;servername&gt;</em> is the name of the server you want to use, and then press ENTER.</li>
</ol>
<pre>server connections: connect to server bobafett
Binding to bobafett ...
Connected to bobafett using credentials of locally logged on user.
server connections:</pre>
<ol>
<li>At the server connections: prompt, type <strong><em>q</em></strong>, and then press ENTER again.</li>
</ol>
<pre>server connections: q
fsmo maintenance:</pre>
<ol>
<li>Type <strong><em>seize &lt;role&gt;</em></strong>, where <em>&lt;role&gt;</em> is the role you want to seize. For example, to seize the PDC Emulator role, you would type <em>seize pdc</em>:</li>
</ol>
<p><strong>Options are shown in screen-shot below:</strong></p>
<p><em>Seize domain naming master </em><br />
<em>Seize infrastructure master </em><br />
<em>Seize PDC Seize RID master </em><br />
<em>Seize schema master</em></p>
<pre></pre>
<p style="text-align: center;"><a href="http://cdn2.smattie.com/wp-content/uploads/2012/02/trasnfer_help.jpg"><img class="wp-image-635 aligncenter" title="trasnfer_help" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/trasnfer_help.jpg" alt="" width="600" height="297" /></a></p>
<ol>
<li>You will receive a warning window asking if you want to perform the seize. Click on Yes.</li>
</ol>
<pre>fsmo maintenance: Seize infrastructure master
Attempting safe transfer of infrastructure FSMO before seizure.
ldap_modify_sW error 0x34(52 (Unavailable).
Ldap extended error message is 000020AF: SvcErr: DSID-03210300, problem 5002</pre>
<pre>(UNAVAILABLE), data 1722

Win32 error returned is 0x20af(The requested FSMO operation failed. The current</pre>
<pre>FSMO holder could not be contacted.)

Depending on the error code this may indicate a connection,
ldap, or role transfer error.
Transfer of infrastructure FSMO failed, proceeding with seizure ...
Server "bobafett" knows about 5 roles
Schema - CN=NTDS Settings,CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,</pre>
<pre>CN=Configuration,DC=dpetri,DC=net
Domain - CN=NTDS Settings,CN=SERVER100,CN=Servers,CN=Default-First-Site-Name,CN=Sites,</pre>
<pre>CN=Configuration,DC=dpetri,DC=net
PDC - CN=NTDS Settings,CN=SERVER100,CN=Servers,CN=Default-First-Site-Name,CN=Sites,</pre>
<pre>CN=Configuration,DC=dpetri,DC=net
RID - CN=NTDS Settings,CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,</pre>
<pre>CN=Configuration,DC=dpetri,DC=net
Infrastructure - CN=NTDS Settings,CN=SERVER100,CN=Servers,CN=Default-First-Site-Name,</pre>
<pre>CN=Sites,CN=Configuration,DC=dpetri,DC=net
fsmo maintenance:</pre>
<p><strong>Note: </strong>All five roles need to be in the forest. If the first domain controller is <strong>out</strong> of the forest then seize all roles. Determine which roles are to be on which remaining domain controllers so that all five roles are not on only one server.</p>
<ol>
<li><strong>Repeat</strong> steps 6 and 7 until you&#8217;ve seized all the required FSMO roles.</li>
<li>After you seize or transfer the roles, type q, and then press ENTER until you quit the Ntdsutil tool.</li>
</ol>
<p><strong>Note:</strong> Do not put the Infrastructure Master (IM) role on the same domain controller as the Global Catalog server. If the Infrastructure Master runs on a GC server it will stop updating object information because it does not contain any references to objects that it does not hold. This is because a GC server holds a partial replica of every object in the forest.</p>
<p>For more context, please see this <strong>Microsoft KB Article</strong>: <a href="http://support.microsoft.com/kb/255504">Using Ntdsutil.exe to transfer or seize FSMO roles to a domain controller</a></p>
<div class="shr-publisher-628"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/' data-shr_title='Seizing+FSMO+Roles+in+Windows+2008+using+ntdsutil'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/' data-shr_title='Seizing+FSMO+Roles+in+Windows+2008+using+ntdsutil'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/' data-shr_title='Seizing+FSMO+Roles+in+Windows+2008+using+ntdsutil'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Transferring FSMO Roles in Windows 2008 using ntdsutil</title>
		<link>http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=transferring-fsmo-roles-in-windows-2008-using-ntdsutil</link>
		<comments>http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 05:01:20 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[FSMO]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=625</guid>
		<description><![CDATA[How can I transfer some or all of the FSMO Roles from one DC to another using the command line? Great question! NOTE: For doing this task in the GUI, please see this blog: Transferring FSMO Roles in Windows Server 2008 (Has some great screen-shots) Windows 2008 Active Directory domains utilize a Single Operation Master method called FSMO [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>How can I transfer some or all of the FSMO Roles from one DC to another using the command line? <strong>Great question!</strong></p>
<p><strong>NOTE: </strong>For doing this task in the <strong>GUI</strong>, please see this blog: <a href="http://www.elmajdal.net/win2k8/Transferring_FSMO_Roles_in_Windows_Server_2008.aspx">Transferring FSMO Roles in Windows Server 2008</a> (<em>Has some great screen-shots</em>)</p>
<p>Windows 2008 Active Directory domains utilize a Single Operation Master method called FSMO (Flexible Single Master Operation), as described in <a href="http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/"> Understanding FSMO Roles in Active Directory.</a></p>
<p>In most cases an administrator could keep the FSMO role holders (all 5 of them) in the same spot (or actually, on the same DC) as has been configured by the Active Directory installation process. However, there are scenarios where you would want to move one or more of the FSMO roles from the default holder to a different DC.</p>
<p>Moving the FSMO roles while both the original FSMO role holder and the future FSMO role holder are online and operational is called <strong>Transferring</strong>, and is described in this article.</p>
<p>The transfer of an FSMO role is the suggested form of moving a FSMO role between domain controllers and can be initiated by the administrator or by demoting a domain controller. However, the transfer process is <strong>not</strong> initiated automatically by the operating system, for example a server in a shut-down state. FSMO roles are <strong>not</strong> automatically relocated during the shutdown process &#8211; <strong><em>this must be considered when shutting down a domain controller that has an FSMO role for maintenance, for example.</em></strong></p>
<p>In a graceful transfer of an FSMO role between two domain controllers, a synchronization of the data that is maintained by the FSMO role owner to the server receiving the FSMO role is performed prior to transferring the role to ensure that any changes have been recorded before the role change.</p>
<p>However, when the original FSMO role holder went offline or becomes non-operational for a long period of time, the administrator should consider moving the FSMO role from the original, non-operational holder, to a DC that will be able to fulfill requests. The process of moving the FSMO role from a non-operational role holder to a different DC is called <strong>Seizing</strong>, and is described in the <a href="http://www.smattie.com/2012/02/20/seizing-fsmo-roles-in-windows-2008-using-ntdsutil/">Seizing FSMO Roles</a> article.</p>
<p>You can transfer FSMO roles by using the<strong> Ntdsutil.exe</strong> command-line utility<strong> or</strong> by using an<strong> MMC snap-in tool</strong>. Depending on the FSMO role that you want to transfer, you can use one of the following three MMC snap-in tools:</p>
<ul>
<li>Active Directory Schema snap-in</li>
<li>Active Directory Domains and Trusts snap-in</li>
<li>Active Directory Users and Computers snap-in</li>
</ul>
<div>The purpose of this article is to use the <strong>Ntdsutil.exe</strong> command-line utility. To transfer the FSMO role the administrator must be a member of the following group:</div>
<div></div>
<div>
<table id="table83" width="80%" border="1" cellpadding="2">
<tbody>
<tr>
<td bgcolor="#fdd6a2" width="35%">FSMO Role</td>
<td bgcolor="#fdd6a2" width="65%">Administrator must be a member of</td>
</tr>
<tr>
<td width="35%">Schema</td>
<td width="65%">Schema Admins</td>
</tr>
<tr>
<td width="35%">Domain Naming</td>
<td width="65%">Enterprise Admins</td>
</tr>
<tr>
<td width="35%">RID</td>
<td rowspan="3" width="65%">Domain Admins</td>
</tr>
<tr>
<td width="35%">PDC Emulator</td>
</tr>
<tr>
<td width="35%">Infrastructure</td>
</tr>
</tbody>
</table>
</div>
<p><strong>Side note:</strong> To Transfer the Schema Master Role via the GUI, please note that you must first <strong>register</strong> this snap-in:</p>
<ol>
<li>Register the <em>Schmmgmt.dll</em> library by pressing Start &gt; RUN and typing: <strong><em>regsvr32 schmmgmt.dll</em></strong></li>
</ol>
<p style="text-align: center;"><img class="aligncenter  wp-image-634" title="Schmmgmt" src="http://cdn.smattie.com/wp-content/uploads/2012/02/Schmmgmt.jpg" alt="" width="599" height="297" /></p>
<pre></pre>
<ol>
<li>Press OK. You should receive a success confirmation.</li>
<li>From the Run command open an MMC Console by typing <em>MMC</em>.</li>
<li>On the Console menu, press Add/Remove Snap-in.</li>
<li>Press Add. Select Active Directory Schema.</li>
<li>Press Add and press Close. Press OK.</li>
<li>If you are NOT logged onto the target domain controller, in the snap-in, right-click the Active Directory Schema icon in the Console Root and press Change Domain Controller.</li>
<li>Press Specify &#8230;. and type the name of the new role holder. Press OK.</li>
<li>Right-click right-click the Active Directory Schema icon again and press Operation Masters.</li>
<li>Press the Change button.</li>
<li>Press OK all the way out.</li>
</ol>
<p><strong>Transferring the FSMO Roles via Ntdsutil</strong></p>
<p>To transfer the FSMO roles from the Ntdsutil command:</p>
<p><strong>Caution:</strong> Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.</p>
<ol>
<li>On any domain controller, click Start, click Run, type <strong><em>Ntdsutil</em></strong> in the Open box, and then click OK. (<strong><em>Seen below in screen-shot</em></strong>)</li>
</ol>
<div>
<pre>C:\&gt;ntdsutil
ntdsutil:</pre>
</div>
<p>&nbsp;</p>
<ol>
<li>Type <strong><em>roles</em></strong>, and then press ENTER.</li>
</ol>
<pre>ntdsutil: roles
fsmo maintenance:</pre>
<p><strong> Note:</strong> To see a list of available commands at any of the prompts in the Ntdsutil tool, type <strong>?</strong>, and then press ENTER.</p>
<ol>
<li>Type <strong><em>connections</em></strong>, and then press ENTER.</li>
</ol>
<pre>fsmo maintenance: connections
server connections:</pre>
<ol>
<li>Type <strong><em>connect to server &lt;servername&gt;</em></strong>, where <em>&lt;servername&gt;</em> is the name of the server you want to use, and then press ENTER.</li>
</ol>
<pre>server connections: connect to server bobafett
Binding to bobafett ...
Connected to bobafett using credentials of locally logged on user.
server connections:</pre>
<ol>
<li>At the server connections: prompt, type <strong><em>q</em></strong>, and then press ENTER again.</li>
</ol>
<pre>server connections: q
fsmo maintenance:</pre>
<p style="text-align: center;"><img class="aligncenter  wp-image-633" title="Ntdsutil" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/Ntdsutil.jpg" alt="" width="598" height="294" /></p>
<ol>
<li>Type <strong><em>transfer &lt;role&gt;</em></strong>. where <em> &lt;role&gt;</em> is the role you want to transfer.</li>
</ol>
<p>For example, to transfer the PDC Emulator role, you would type <em><strong>transfer pdc</strong>. </em>To find all transfer commands type <strong>?</strong> after you are in <strong><em>fsmo maintenance</em></strong>.</p>
<p><strong>Options are shown in the following screenshot:</strong></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-635" title="trasnfer_help" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/trasnfer_help.jpg" alt="" width="600" height="297" /></p>
<ol>
<li>You will receive a warning window asking if you want to perform the transfer. Click on <strong>Yes</strong>.</li>
<li>After you transfer the roles, type <strong><em>q</em></strong> and press ENTER until you <strong>quit</strong> Ntdsutil.exe.</li>
<li>Restart the server and make sure you update your backup.</li>
</ol>
<p>For more context, please see this <strong>Microsoft KB Article</strong>: <a href="http://support.microsoft.com/kb/255504">Using Ntdsutil.exe to transfer or seize FSMO roles to a domain controller</a></p>
<div class="shr-publisher-625"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/' data-shr_title='Transferring+FSMO+Roles+in+Windows+2008+using+ntdsutil'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/' data-shr_title='Transferring+FSMO+Roles+in+Windows+2008+using+ntdsutil'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/' data-shr_title='Transferring+FSMO+Roles+in+Windows+2008+using+ntdsutil'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/19/transferring-fsmo-roles-in-windows-2008-using-ntdsutil/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Understanding FSMO Roles in Windows Active Directory</title>
		<link>http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=understanding-fsmo-roles-in-windows-active-directory</link>
		<comments>http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 02:08:17 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[FSMO]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=611</guid>
		<description><![CDATA[FSMO stands for Flexible Single Master Operations, and these roles (also known as operations master roles) help you prevent conflicts in your Active Directory. In an Active Directory environment, some of your domain controllers (DCs) must be assigned certain special roles for your network to function properly. These special roles are called flexible single master [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong>FSMO</strong> stands for <strong>Flexible Single Master Operations</strong>, and these roles (also known as operations master roles) help you prevent conflicts in your Active Directory.</p>
<p>In an Active Directory environment, some of your domain controllers (DCs) must be assigned certain special roles for your network to function properly. These special roles are called flexible single master operations (FSMO) roles, and DCs that hold such roles are called FSMO role holders. If you don&#8217;t assign these roles properly, bad things can happen, so the focus of this article is on rules for proper placement of FSMO roles on AD-based networks. But before we summarize the rules, let&#8217;s briefly review what the different roles are and the consequences when a role fails or isn&#8217;t placed properly.</p>
<p>Windows 2000 and later, all use the <strong>Multi-Master Model</strong>. For most Active Directory objects, the task of updating can be performed by any Domain Controller <strong>except</strong> those Domain Controllers that are <strong>read-only</strong>. Things such as computer object properties, renamed organizational units, and user account password resets can be handled by any writable domain controller.</p>
<p>After an object is changed on one domain controller, those changes are propagated to the other domain controllers through replication. During replication all of the Domain Controllers share their updates. So a user that has their password reset in one part of the domain may have to wait until those changes are replicated to the Domain Controller that they are signing in from.</p>
<p>This model works very well for most objects. In the case of any conflicts, such as a user&#8217;s password being reset by both the central helpdesk as well as an administrator working at the user&#8217;s site, then conflicts are resolved by whichever made the last change. However, there are some changes that are too important, and are not well suited to this model.</p>
<h3>FSMO Roles</h3>
<p>Each domain in an AD-based network has three FSMO roles that must be assigned to domain controllers within the domain:</p>
<ul>
<li><strong>PDC Emulator.</strong> The DC holding this role plays PDC for any legacy Windows NT BDCs you may still have running. But even if you&#8217;ve migrated all your legacy DCs and your domains are running in Windows 2000 mixed functional level or higher, the PDC Emulator role is still important because the PDC Emulator enforces account lockout, handles password changes, and synchronizes time for all DCs in the domain.</li>
<li><strong>RID Master.</strong> When an administrator creates a new security principle in Active Directory (typically a new user or group) the SID for the new object is constructed from the domain SID and a relative ID (RID) selected from a pool of RIDs on the domain&#8217;s DCs. If this pool starts running low (under 50% remaining) the RID Master replenishes it.</li>
<li><strong>Infrastructure Master.</strong> Ensures cross-domain object references are handled properly, such as when objects in one domain are referenced by objects in a different domain.</li>
</ul>
<p>The forest root domain also has two additional FSMO roles that must be assigned to domain controllers in that domain:</p>
<ul>
<li><strong>Domain Naming Master.</strong> Handles changes to the namespace, for example when a new child domain is added to a parent domain.</li>
<li><strong>Schema Master.</strong> Handles changes to the schema and replicates these changes to all other DCs throughout the forest.</li>
</ul>
<p>There are a number of ways you can determine which DCs are FSMO roles holders on your network, but the simplest is to install the Support Tools from the \Support\Tools folder on your Windows 2003 product CD and type <strong><code>netdom query fsmo</code></strong> at a command prompt. (Windows <strong>2008</strong> has it built in already)</p>
<p>In a forest, there are five FSMO roles that are assigned to one or more domain controllers. <strong>The five FSMO roles are:</strong></p>
<p><strong>Schema Master:</strong></p>
<p>The schema master domain controller controls all updates and modifications to the schema. Once the Schema update is complete, it is replicated from the schema master to all other DCs in the directory. To update the schema of a forest, you must have access to the schema master. There can be only one schema master in the whole forest.</p>
<p><strong>Domain naming master:</strong></p>
<p>The domain naming master domain controller controls the addition or removal of domains in the forest. This DC is the only one that can add or remove a domain from the directory. It can also add or remove cross references to domains in external directories. There can be only one domain naming master in the whole forest.</p>
<p><strong>Infrastructure Master:</strong></p>
<p>When an object in one domain is referenced by another object in another domain, it represents the reference by the GUID, the SID (for references to security principals), and the DN of the object being referenced. The infrastructure FSMO role holder is the DC responsible for updating an object&#8217;s SID and distinguished name in a cross-domain object reference. At any one time, there can be only one domain controller acting as the infrastructure master in each domain.</p>
<p><strong>Note:</strong> The Infrastructure Master (IM) role should be held by a domain controller that is <strong>not</strong> a <strong>Global Catalog</strong> server (GC). If the Infrastructure Master runs on a Global Catalog server it will <strong>stop</strong> updating object information because it does not contain any references to objects that it does not hold. This is because a Global Catalog server holds a <strong>partial</strong> replica of every object in the forest. As a result, cross-domain object references in that domain will not be updated and a warning to that effect will be logged on that DC&#8217;s event log. If all the domain controllers in a domain also host the global catalog, all the domain controllers have the current data, and it is not important which domain controller holds the infrastructure master role.</p>
<p><strong>Relative ID (RID) Master:</strong></p>
<p>The RID master is responsible for processing RID pool requests from all domain controllers in a particular domain. When a DC creates a security principal object such as a user or group, it attaches a unique Security ID (SID) to the object. This SID consists of a domain SID (the same for all SIDs created in a domain), and a relative ID (RID) that is unique for each security principal SID created in a domain. Each DC in a domain is allocated a pool of RIDs that it is allowed to assign to the security principals it creates. When a DC&#8217;s allocated RID pool falls below a threshold, that DC issues a request for additional RIDs to the domain&#8217;s RID master. The domain RID master responds to the request by retrieving RIDs from the domain&#8217;s unallocated RID pool and assigns them to the pool of the requesting DC. At any one time, there can be only one domain controller acting as the RID master in the domain.</p>
<p><strong>PDC Emulator:</strong></p>
<p>The PDC emulator is necessary to synchronize time in an enterprise. Windows 200 and later, includes the W32Time (Windows Time) time service that is required by the Kerberos authentication protocol. All Windows based computers within an enterprise will use a common time. The purpose of the time service is to ensure that the Windows Time service uses a hierarchical relationship that controls authority and does not permit loops to ensure appropriate common time usage.</p>
<p>The PDC emulator of a domain is authoritative for the domain. The PDC emulator at the root of the forest becomes authoritative for the enterprise, and should be configured to gather the time from an external source. All PDC FSMO role holders follow the hierarchy of domains in the selection of their in-bound time partner.</p>
<p>In a Windows Active Directory domain, the PDC emulator role holder retains the following functions:</p>
<p><em>- Password changes performed by other DCs in the domain are replicated preferentially to the PDC emulator.</em><br />
<em>- Authentication failures that occur at a given DC in a domain because of an incorrect password are forwarded to the PDC emulator before a bad password failure message is reported to the user.</em><br />
<em>- Account lockout is processed on the PDC emulator.</em><br />
<em>- Editing or creation of Group Policy Objects (GPO) is always done from the GPO copy found in the PDC Emulator&#8217;s SYSVOL share, unless configured not to do so by the administrator.</em><br />
<em>- The PDC emulator performs all of the functionality that a Microsoft Windows NT 4.0 Server-based PDC or earlier PDC performs for Windows NT 4.0-based or earlier clients.</em></p>
<p>This part of the PDC emulator role becomes unnecessary when all workstations, member servers, and domain controllers that are running Windows NT 4.0 or earlier are all upgraded to Windows 2000/2003. The PDC emulator still performs the other functions as described in a Windows Active Directory environment.</p>
<p>At any one time, there can be only one domain controller acting as the PDC emulator master in each domain in the forest.</p>
<p><em><strong>Here is what you need to know about the different FSMO roles.</strong></em></p>
<h3>• All Schema Changes and Updates to Active Directory are Processed by the DC with the Schema Master Role</h3>
<p>Whenever the schema is modified at all, those updates are always completed by the domain controller with the schema master role.  Schema is updated during the normal replication, and the schema updates are replicated throughout all the domains in the forest.  Since the <strong>schema master role is only needed once in the forest</strong>, it is kept in the forest root domain.   It’s advisable to place the schema master role on the same domain controller (DC) as the primary domain controller (PDC) emulator.</p>
<h3>• Changes to Which Domains are Part of the Forest are Processed by the DC with the Domain Naming Master Role</h3>
<p>As domains join or leave the forest, the domain naming master makes the updates into active directory.  Only this DC actually commits those changes into the directory.  The domain naming master also commits the changes to application partitions.  Like the schema master role, this role is a forest level FSMO, and it is only needed once across all domains in a forest.  Also like the schema master, it is suggested to let this role be handled by the same domain controller – the PDC emulator in the forest root.</p>
<h3>• Each Domain in a Forest Translates Names for Other Domains Through Their Infrastructure Master</h3>
<p>The infrastructure master is a translator, between globally unique identifiers (GUIDs), security identifiers (SIDs), and distinguished names (DNs) for foreign domain objects.  If you’ve ever looked at group memberships of a domain local group which has members from other domains, you can sometimes see those users and groups from the other domain listed only by their SID.  The infrastructure master of the domain of which those accounts are in is responsible for translating those from a SID into their name.</p>
<p>Each domain has their own infrastructure master, including the forest root and every child domain.  Usually, you do not put the infrastructure master role on a domain that holds the global catalog.  However, if you’re in a single domain forest, the infrastructure master has no work to do, since there is no translation of foreign principals.  <strong>In that case it’s acceptable to place the infrastructure master it on any domain controller (DC), even if it has the global catalog. </strong> For a forest with multiple domains, if there’s even one domain controller that doesn’t have the global catalog on it, then you need to put the infrastructure master role on a domain controller that <strong>does not </strong>have the global catalog.</p>
<h3>• The Unique Part of a Security Identifier is Assigned from the Relative ID (RID) Master</h3>
<p>One of the first things understood about a security identifier (SID) is that they are unique.  There are two parts of a SID: the domain identifier (domain ID), and the relative ID (RID).  The domain identifier part of the SID is uniform among all security principals in the domain.  When looking at a list of SIDs in a domain, it’s easy to identify the domain SIDs – they all look the same.  On the contrary, the <strong>relative ID part of the SID is the unique part.</strong>  The two parts together make up what we commonly identify as a SID.</p>
<p>It is conceivable, then, that if two or more domain controllers were responsible for determining the relative IDs for the SIDs that two domain controllers may come up with the same relative ID for two different objects before they’ve replicated with each other.</p>
<p>That is impossible when only one DC in a domain is responsible for the creation of the relative IDs for SIDs. <strong> The relative ID master, or RID master, hands out batches of relative IDs to individual domain controllers</strong>, then each domain controller can use their allotment to create new users, groups, and computers.  When domain controllers need more relative IDs in reserve, they request them from, and are assigned by, the domain controller with the RID master FSMO role.</p>
<p><strong>Every domain in a forest must have a domain controller with the RID master FSMO role assigned to it</strong>.  It is recommended that the RID master FSMO role be assigned to whichever domain controller has the PDC emulator FSMO role.</p>
<h3>• The Domain Controller (DC) That is the Primary Domain Controller (PDC) Emulator is the Authoritative DC in a Domain</h3>
<p>The domain controller that has the PDC emulator FSMO role assigned to it has many duties and responsibilities in the domain.  For example, the DC with the<strong> </strong>PDC emulator role is the DC that updates passwords for users and computers.  When a user attempts to login, and enters a bad password, it’s the DC with the PDC emulator FSMO role that is consulted to determine if the password has been changed without the replica DC’s knowledge. The PDC emulator is also the default domain controller for many administrative tools, and is likewise the default DC used when Group Policies are updated.</p>
<p>Additionally, it&#8217;s the PDC emulator which maintains the accurate time that the domain is regulated by.  It’s the time on the PDC emulator which identifies when the last write time for an object was (to resolve conflicts, for example.)  If it’s a forest with multiple domains, then the forest root PDC is the authoritative time source for all domains in the forest. <strong>Each domain in the forest needs its own PDC emulator.</strong></p>
<div class="shr-publisher-611"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/' data-shr_title='Understanding+FSMO+Roles+in+Windows+Active+Directory'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/' data-shr_title='Understanding+FSMO+Roles+in+Windows+Active+Directory'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/' data-shr_title='Understanding+FSMO+Roles+in+Windows+Active+Directory'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/18/understanding-fsmo-roles-in-windows-active-directory/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HOW TO: Move SQL Server transaction log files to a different location via TSQL and SSMS</title>
		<link>http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms</link>
		<comments>http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 05:58:28 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=598</guid>
		<description><![CDATA[This information is NOT recommended and I strongly suggest you follow this article instead. HOW TO: Move SQL Server transaction log files to a different location via TSQL and SSMS Problem Moving the log file of a production SQL Server database to separate physical drive is a Microsoft SQL Server best practice to optimize the [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong>This information is NOT recommended and I strongly suggest you follow this <a href="http://www.smattie.com/2012/03/25/update-how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/">article </a>instead.</strong></p>
<p>HOW TO: Move SQL Server transaction log files to a different location via TSQL and SSMS</p>
<p><strong><span style="text-decoration: underline;">Problem<br />
</span></strong>Moving the log file of a production SQL Server database to separate physical drive is a Microsoft SQL Server best practice to optimize the I/O performance. Let’s assume that we have made a change and added a physical drive to our SQL Server. I am planning on moving the SQL Server log file of my production database on this new drive. What are some of the considerations I should take into account and how can I move the SQL Server database log file to a separate physical location?</p>
<p><strong><span style="text-decoration: underline;">Solution<br />
</span></strong>Microsoft SQL Server databases have <strong>at least</strong> one primary database file and one transaction log file.  The transaction log file records every data change and Data Manipulation Language (<strong><a href="http://en.wikipedia.org/wiki/Data_Manipulation_Language">DML</a></strong>) transaction that was executed in the database.  Please note that writing to the transaction log file is <strong>sequential</strong> in nature as compared to the database files which are typically <strong>random I/O</strong>.  As such you can see that placing the log file on separate physical disk from database will allow the disk to work in sequential manner and perform optimally.  To move to this new configuration, it will be necessary to detach and attach the database.  These steps can be accomplished with either <strong>T-SQL</strong> commands or the <strong>SQL Server management studio</strong> (SSMS).  We will walk through an example of each technique in this tip</p>
<p>The following preliminary items should be reviewed prior to moving a transaction log file to a new location:</p>
<ul>
<li>Record the current location, size, etc. of the database files</li>
<li>Record the current location, size, etc. of the transaction log file that is going to be moved</li>
<li>Note the location, size, etc. of the future destination of the transaction log file</li>
<li><strong>Schedule</strong> a downtime to move the database when no users are connected to the application</li>
<li>Validate the database is not in any replication scheme, on a snapshot schedule or a member of a mirror</li>
<ul>
<li>If so, plan accordingly and build the scripts to address these configurations</li>
</ul>
<li>Ensure you are a member of the<strong> db_owner</strong> fixed role</li>
</ul>
<p>In a nutshell, the three main steps involved in moving a log file to new location are:</p>
<ol start="1">
<li>Detach the database</li>
<li>Move log file to new location</li>
<li>Attach the database by referencing the new location of the transaction log file</li>
</ol>
<p>For demonstration purposes we will use the <strong>AdventureWorks</strong> database which is currently installed on the D:\ drive of the SQL Server. This database may be installed on another drive on your machine, but the main concept of the demonstration is to move the AdventureWorks transaction log file to another physical disk, i.e. E:\ drive.</p>
<p><strong><em>Example &#8211; T-SQL Commands</em></strong></p>
<p>In this example, we will work through the steps to move a transaction log file to a new location via T-SQL commands.  The first script will return the current locations, size, etc. of the database and transaction log files.</p>
<div align="center">
<table width="600" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>Script # 1: Capture database and transaction log file information</strong></td>
</tr>
<tr>
<td>USE AdventureWorks<br />
GOsp_helpfile<br />
GO</td>
</tr>
</tbody>
</table>
</div>
<p>Below is sample output from the script showing that database has only two files.  First is primary database file and second is the transaction log file. Although the file name, size, etc. may be different on your SQL Server, you will know the exact location of the files before the transaction log move begins.  Note the location of the database file since it will be used during the database attach process.</p>
<p><strong><img class="aligncenter size-full wp-image-602" title="sp_helpfile" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/sp_helpfile.jpg" alt="" width="601" height="93" /></strong></p>
<p>Once you have the location information and have negotiated downtime with your users, now it is time to get exclusive access of the database in order to detach the database. If users are still connected to the database during the downtime, it is possible to <strong>remove</strong> them by using the Obtain Exclusive Access to a SQL Server Database option (i.e. ALTER DATABASE ‘DatabaseName’, SET RESTRICTED_USER/SINGLE_USER, WITH ROLLBACK IMMEDIATE) or you can kill the connections via the Kill SQL Server Process Ids.</p>
<div align="center">
<table width="600" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>Script # 2: Set database to single user mode and detach database</strong></td>
</tr>
<tr>
<td>Use MASTER<br />
GO&#8211; Set database to single user mode<br />
ALTER DATABASE adventureWorks<br />
SET SINGLE_USER<br />
GO&#8211; Detach the database<br />
sp_detach_db &#8216;AdventureWorks&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
</div>
<p>Now the database is detached.  Once the detach process is completed, then you can copy and paste the new transaction log file then <strong>delete</strong> the old transaction log file via Windows Explorer.  Once this is completed, we can attach the database with SQL Server database log file at new location with the following script:</p>
<div align="center">
<table width="600" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>Script # 3: Attach database with log file at new location</strong></td>
</tr>
<tr>
<td>USE master<br />
GO&#8211; Now Attach the database<br />
sp_attach_DB &#8216;AdventureWorks&#8217;,<br />
&#8216;D:\Program Files\Microsoft SQL Server\MSSQL\Data\AdventureWorks_Data.mdf&#8217;,<br />
&#8216;E:\Move LogFile here through T-SQL\AdventureWorks_Log.ldf&#8217;<br />
GO</td>
</tr>
</tbody>
</table>
</div>
<p>After the final attach command our transaction log file has been moved to new location and our database is operational with log file on new location.  Verifying the new database transaction log location can be accomplished by re-running script #1 above.</p>
<p><strong><em>Example &#8211; SQL Server Management Studio </em></strong></p>
<p>In this example, we will complete the detach, move and attach process through SQL Server Management Studio (SSMS).  Here is the general process</p>
<ul>
<li>Open SQL Server Management Studio</li>
<li>Navigate to root | Databases | AdventureWorks database</li>
<li>Right click on the AdventureWorks database</li>
<li>Select the Tasks | Detach&#8230; option</li>
</ul>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-603" title="detach" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/detach.jpg" alt="" width="503" height="266" /></p>
<p>The Detach Database form will load with the applicable information.  Once the status is &#8220;<strong>Ready</strong>&#8221; then you can proceed with the detach process.  (<strong>Note</strong>: Make sure you leave the <strong>Keep</strong> field selected to ensure the file remains after the detachment)</p>
<p>If status the status is &#8220;<strong>Not Ready</strong>&#8221; then you will get a reason under the message column.  Most of the time why the database is not ready is related to users connected to database.  If this is the case, you can select the drop option provided to drop all existing users.</p>
<p><img class="aligncenter size-full wp-image-601" title="ready" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/ready.jpg" alt="" width="604" height="139" /></p>
<p>Once the detach process is completed, then you can <strong>copy</strong> and <strong>paste</strong> the new transaction log file then <strong>delete</strong> the old transaction log file via Windows Explorer.  Once the move process is finished then the following general steps will attach the database via SQL Server Management Studio:</p>
<ul>
<li>Open SQL Server Management Studio</li>
<li>Navigate to root | Databases</li>
<li>Right click on the Databases folder</li>
<li>Select the Attach&#8230; option</li>
<li>Click the Add button to navigate to the database and transaction log files</li>
</ul>
<p><img class="aligncenter size-full wp-image-604" title="locate" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/locate.jpg" alt="" width="603" height="478" /></p>
<p>You may notice an error message that the transaction log file was <strong>not</strong> found after the database file was selected, so <strong>browse</strong> to the directory with the transaction log file and click the OK button.  At this point the attachment should be completed and the database should be online with the new transaction log file location. To <strong>verify</strong> the database is functional with the new file location, run the <strong>first</strong> script from above.</p>
<div class="shr-publisher-598"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/' data-shr_title='HOW+TO%3A+Move+SQL+Server+transaction+log+files+to+a+different+location+via+TSQL+and+SSMS'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/' data-shr_title='HOW+TO%3A+Move+SQL+Server+transaction+log+files+to+a+different+location+via+TSQL+and+SSMS'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/' data-shr_title='HOW+TO%3A+Move+SQL+Server+transaction+log+files+to+a+different+location+via+TSQL+and+SSMS'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/13/how-to-move-sql-server-transaction-log-files-to-a-different-location-via-tsql-and-ssms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Different Ways to Find the Recovery Model for a SQL Server Database</title>
		<link>http://www.smattie.com/2012/02/11/different-ways-to-find-the-recovery-model-for-a-sql-server-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=different-ways-to-find-the-recovery-model-for-a-sql-server-database</link>
		<comments>http://www.smattie.com/2012/02/11/different-ways-to-find-the-recovery-model-for-a-sql-server-database/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 05:10:15 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[recovery model]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=586</guid>
		<description><![CDATA[Perhaps, the best thing about SQL Server and Microsoft products as a whole is that most of the tasks can be executed in more than one way. At times, it is might be useful to know about the various methods of performing a single task. Today, we will observe four different methods to find out [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Perhaps, the best thing about SQL Server and Microsoft products as a whole is that most of the tasks can be executed in more than one way. At times, it is might be useful to know about the various methods of performing a single task. Today, we will observe four different methods to find out a recovery model for any database.</p>
<p><strong>Step 1</strong></p>
<p><strong>This method provides only one database at a time.</strong></p>
<p>Right Click on <strong>Database</strong> &gt;&gt; Go to <strong>Properties</strong> &gt;&gt; Go to <strong>Option</strong>. On the Right side you can find the recovery model.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-592" title="SQL_options" src="http://cdn.smattie.com/wp-content/uploads/2012/02/SQL_options.png" alt="" width="550" height="166" /></p>
<p><strong>Step 2</strong></p>
<p>Click on the <strong>Database</strong> Node in <strong>Object Explorer</strong>.</p>
<p><img class="aligncenter size-full wp-image-590" title="Obj_Explorer" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/Obj_Explorer.png" alt="" width="347" height="142" /></p>
<p>In <strong>Object Explorer Details</strong>, you can see the column Recovery Model.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-589" title="Obj_Exp_Results" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/Obj_Exp_Results.png" alt="" width="560" height="192" /></p>
<p><strong>Step 3</strong></p>
<p>This is a very easy way to get this information and it gives <strong>all</strong> of the database Recovery Model in one script.</p>
<p>&nbsp;</p>
<p><code>SELECT name AS [Database Name],<br />
recovery_model_desc AS [Recovery Model]<br />
FROM sys.databases<br />
GO</code></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-591" title="recovery_model_sql" src="http://cdn2.smattie.com/wp-content/uploads/2012/02/recovery_model_sql.png" alt="" width="570" height="538" /></p>
<p><strong> Step 4</strong></p>
<p><strong>This method provides only one database at a time.</strong></p>
<p><code>SELECT </code><code>'ADVENTUREWORKS' </code><code>AS </code><code>[Database Name]</code><code>,</code><br />
<code>DATABASEPROPERTYEX</code><code>(</code><code>'ADVENTUREWORKS'</code><code>, </code><code>'RECOVERY'</code><code>)</code><br />
<code>AS </code><code>[Recovery Model]</code><br />
<code>GO</code></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-587" title="Database_prop_sql" src="http://cdn.smattie.com/wp-content/uploads/2012/02/Database_prop_sql.png" alt="" width="560" height="367" /></p>
<p><strong> My personal recommendation </strong></p>
<p>Of all the above methods, I prefer Step 3. It is fast and accurate, plus it can be used in T-SQL code. Besides, I can use it for many other purposes as well.</p>
<div class="shr-publisher-586"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/11/different-ways-to-find-the-recovery-model-for-a-sql-server-database/' data-shr_title='Different+Ways+to+Find+the+Recovery+Model+for+a+SQL+Server+Database'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/11/different-ways-to-find-the-recovery-model-for-a-sql-server-database/' data-shr_title='Different+Ways+to+Find+the+Recovery+Model+for+a+SQL+Server+Database'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/11/different-ways-to-find-the-recovery-model-for-a-sql-server-database/' data-shr_title='Different+Ways+to+Find+the+Recovery+Model+for+a+SQL+Server+Database'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/11/different-ways-to-find-the-recovery-model-for-a-sql-server-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Detaching root volumes for both versions of Windows 2008 to Windows 2008 to resolve EC2 connectivity issues. (Part 2 of 2)</title>
		<link>http://www.smattie.com/2012/02/10/video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2</link>
		<comments>http://www.smattie.com/2012/02/10/video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 06:51:11 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=580</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Goals: To successfully detach and attach root drive to EC2 Windows 2008 [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "detach2008.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script><br />
<strong>Goals:</strong></p>
<p>To successfully detach and attach root drive to EC2 Windows 2008 instance plus modify BCD store.</p>
<p><strong>Explain: Why would we do this? </strong></p>
<p>Event Viewer Logs- C:\Windows\System32\winevt\Logs<br />
Change Registry Settings- C:\Windows\System32\config<br />
Memory Dumps (BSOD)- C:\Windows\Minidump or C:\Windows\MEMORY.DMP</p>
<p><strong>Reference:</strong></p>
<p>Boot Configuration Data Editor Frequently Asked Questions<br />
<a href="http://technet.microsoft.com/en-us/library/cc721886%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc721886%28WS.10%29.aspx</a></p>
<p>Windows no longer starts after you install an earlier version of the Windows operating system in a dual-boot configuration<br />
<a href="http://support.microsoft.com/kb/919529">http://support.microsoft.com/kb/919529</a></p>
<p>Bootsect Command-Line Options<br />
<a href="http://technet.microsoft.com/en-us/library/cc749177%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc749177%28WS.10%29.aspx</a></p>
<p>****************************************************************</p>
<p><strong>Tools need:</strong></p>
<p>bootsect: <a href="http://www.sevenforums.com/attachments/installation-setup/47060d1263222191-32-bit-bootsect-bootsect7600x86.zip">http://www.sevenforums.com/attachments/installation-setup/47060d1263222191-32-bit-bootsect-bootsect7600x86.zip</a></p>
<p>bcdboot (Only found on EC2 Windows 2008r2 instances)<br />
bcdedit (Only found on EC2 Windows 2008r2 instances)</p>
<p>Forum Thread: <a href="http://www.sevenforums.com/installation-setup/54443-32-bit-bootsect.html">http://www.sevenforums.com/installation-setup/54443-32-bit-bootsect.html</a></p>
<p>Download 7-Zip for Windows: <a href="http://www.7-zip.org/download.html">http://www.7-zip.org/download.html</a></p>
<p><strong>Commands used:</strong></p>
<p>Create a w2k8r2b folder<br />
bcdedit /store c:\boot\bcd >>C:\w2k8r2b\bcd.txt (Backs up BCD store)</p>
<p>cd \<br />
cd windows\system32</p>
<p>bootsect /nt60 D: /mbr<br />
C:\windows\system32\bcdboot.exe D:\Windows /s D:<br />
bcdedit /store D:\Boot\BCD /set {default} device partition=D:<br />
bcdedit /store D:\Boot\BCD /set {default} osdevice partition=D:<br />
bcdedit /store D:\Boot\BCD /set {bootmgr} device partition=D:</p>
<div class="shr-publisher-580"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/10/video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2/' data-shr_title='Video%3A+Detaching+root+volumes+for+both+versions+of+Windows+2008+to+Windows+2008+to+resolve+EC2+connectivity+issues.+%28Part+2+of+2%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/10/video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2/' data-shr_title='Video%3A+Detaching+root+volumes+for+both+versions+of+Windows+2008+to+Windows+2008+to+resolve+EC2+connectivity+issues.+%28Part+2+of+2%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/10/video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2/' data-shr_title='Video%3A+Detaching+root+volumes+for+both+versions+of+Windows+2008+to+Windows+2008+to+resolve+EC2+connectivity+issues.+%28Part+2+of+2%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/10/video-detaching-root-volumes-for-both-versions-of-windows-2008-to-windows-2008-to-resolve-ec2-connectivity-issues-part-2-of-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Video: Detaching root volumes for both version of Windows 2008 to Windows 2003 to resolve EC2 connectivity issues. (Part 1 of 2)</title>
		<link>http://www.smattie.com/2012/02/03/video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2</link>
		<comments>http://www.smattie.com/2012/02/03/video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 08:13:05 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=441</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Goals: To successfully detach and attach root drive to EC2 Windows 2003 [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "detach2003.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<p><strong>Goals:</strong></p>
<p>To successfully detach and attach root drive to EC2 Windows 2003 instance plus modify BCD store.</p>
<p><strong>Explain: Why would we do this? </strong></p>
<p>Event Viewer Logs- C:\Windows\System32\winevt\Logs<br />
Change Registry Settings- C:\Windows\System32\config<br />
Memory Dumps (BSOD)- C:\Windows\Minidump or C:\Windows\MEMORY.DMP</p>
<p><strong>Reference:</strong></p>
<p>Boot Configuration Data Editor Frequently Asked Questions<br />
<a href="http://technet.microsoft.com/en-us/library/cc721886%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc721886%28WS.10%29.aspx</a></p>
<p>Windows no longer starts after you install an earlier version of the Windows operating system in a dual-boot configuration<br />
<a href="http://support.microsoft.com/kb/919529">http://support.microsoft.com/kb/919529</a></p>
<p>Bootsect Command-Line Options<br />
<a href="http://technet.microsoft.com/en-us/library/cc749177%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc749177%28WS.10%29.aspx</a></p>
<p>****************************************************************</p>
<p><strong>Tools need:</strong></p>
<p>bootsect: <a href="http://www.sevenforums.com/attachments/installation-setup/47060d1263222191-32-bit-bootsect-bootsect7600x86.zip">http://www.sevenforums.com/attachments/installation-setup/47060d1263222191-32-bit-bootsect-bootsect7600x86.zip</a></p>
<p>bcdboot (Only found on EC2 Windows 2008r2 instances)<br />
bcdedit (Only found on EC2 Windows 2008r2 instances)</p>
<p>Forum Thread: <a href="http://www.sevenforums.com/installation-setup/54443-32-bit-bootsect.html">http://www.sevenforums.com/installation-setup/54443-32-bit-bootsect.html</a></p>
<p>Download 7-Zip for Windows: <a href="http://www.7-zip.org/download.html">http://www.7-zip.org/download.html</a></p>
<p><strong>Commands used:</strong></p>
<p>Create a w2k8r2b folder<br />
bcdedit /store c:\boot\bcd >>C:\w2k8r2b\bcd.txt (Backs up BCD store)</p>
<p>cd \<br />
cd windows\system32</p>
<p>bootsect /nt60 D: /mbr<br />
C:\windows\system32\bcdboot.exe D:\Windows /s D:<br />
bcdedit /store D:\Boot\BCD /set {default} device partition=D:<br />
bcdedit /store D:\Boot\BCD /set {default} osdevice partition=D:<br />
bcdedit /store D:\Boot\BCD /set {bootmgr} device partition=D:</p>
<div class="shr-publisher-441"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/03/video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2/' data-shr_title='Video%3A+Detaching+root+volumes+for+both+version+of+Windows+2008+to+Windows+2003+to+resolve+EC2+connectivity+issues.+%28Part+1+of+2%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/03/video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2/' data-shr_title='Video%3A+Detaching+root+volumes+for+both+version+of+Windows+2008+to+Windows+2003+to+resolve+EC2+connectivity+issues.+%28Part+1+of+2%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/03/video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2/' data-shr_title='Video%3A+Detaching+root+volumes+for+both+version+of+Windows+2008+to+Windows+2003+to+resolve+EC2+connectivity+issues.+%28Part+1+of+2%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/03/video-detaching-root-volumes-for-both-version-of-windows-2008-to-resolve-ec2-connectivity-issues-part-1-of-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Keeping Volume Drive Letters the same with an EC2 Windows instance.</title>
		<link>http://www.smattie.com/2012/02/02/video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance</link>
		<comments>http://www.smattie.com/2012/02/02/video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 01:25:05 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=547</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "drives.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<div class="shr-publisher-547"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/02/02/video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance/' data-shr_title='Video%3A+Keeping+Volume+Drive+Letters+the+same+with+an+EC2+Windows+instance.'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/02/02/video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance/' data-shr_title='Video%3A+Keeping+Volume+Drive+Letters+the+same+with+an+EC2+Windows+instance.'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/02/02/video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance/' data-shr_title='Video%3A+Keeping+Volume+Drive+Letters+the+same+with+an+EC2+Windows+instance.'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/02/02/video-keeping-volume-drive-letters-the-same-with-an-ec2-windows-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Manually Set Key Management Server for Windows Activation in EC2</title>
		<link>http://www.smattie.com/2012/01/26/video-manually-set-key-management-server-for-windows-activation-in-ec2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-manually-set-key-management-server-for-windows-activation-in-ec2</link>
		<comments>http://www.smattie.com/2012/01/26/video-manually-set-key-management-server-for-windows-activation-in-ec2/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 20:12:39 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[Activation]]></category>
		<category><![CDATA[Mattie]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[Scott]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=510</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Amazon KMS Server Information as of 26 JAN 2012 VPC (all regions, [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "Windowsactivate.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<p><strong>Amazon KMS Server Information as of 26 JAN 2012</strong></p>
<p>VPC (all regions, except GOV Cloud):<br />
169.254.169.250<br />
169.254.169.251</p>
<p>US East (Virginia) IAD:<br />
ec2-174-129-233-152.compute-1.amazonaws.com<br />
ec2-174-129-233-141.compute-1.amazonaws.com</p>
<p>US West (N.California) SFO:<br />
ec2-204-236-129-123.us-west-1.compute.amazonaws.com<br />
ec2-204-236-129-122.us-west-1.compute.amazonaws.com</p>
<p>US West 2 (Oregon) PDX:<br />
ec2-50-112-127-254.us-west-2.compute.amazonaws.com<br />
ec2-50-112-127-255.us-west-2.compute.amazonaws.com</p>
<p>GOV Cloud- VPC (Oregon) PDT:<br />
96.127.7.195<br />
96.127.7.193</p>
<p>EU West (Ireland) DUB:<br />
ec2-79-125-16-172.eu-west-1.compute.amazonaws.com<br />
ec2-79-125-16-108.eu-west-1.compute.amazonaws.com</p>
<p>South America (Sao Paulo) GRU:<br />
ec2-177-71-187-254.sa-east-1.compute.amazonaws.com<br />
ec2-177-71-187-255.sa-east-1.compute.amazonaws.com</p>
<p>Asia Pacific (Singapore) SIN:<br />
ec2-175-41-130-16.ap-southeast-1.compute.amazonaws.com<br />
ec2-175-41-130-20.ap-southeast-1.compute.amazonaws.com</p>
<p>Asia Pacific (Japan) NRT:<br />
ec2-175-41-251-13.ap-northeast-1.compute.amazonaws.com<br />
ec2-175-41-251-17.ap-northeast-1.compute.amazonaws.com</p>
<div class="shr-publisher-510"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/01/26/video-manually-set-key-management-server-for-windows-activation-in-ec2/' data-shr_title='Video%3A+Manually+Set+Key+Management+Server+for+Windows+Activation+in+EC2'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/01/26/video-manually-set-key-management-server-for-windows-activation-in-ec2/' data-shr_title='Video%3A+Manually+Set+Key+Management+Server+for+Windows+Activation+in+EC2'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/01/26/video-manually-set-key-management-server-for-windows-activation-in-ec2/' data-shr_title='Video%3A+Manually+Set+Key+Management+Server+for+Windows+Activation+in+EC2'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/01/26/video-manually-set-key-management-server-for-windows-activation-in-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Remotely Reset Windows Password via EC2 Config service.</title>
		<link>http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-remotely-reset-windows-password-via-ec2-config-service</link>
		<comments>http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 08:01:57 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[locked out]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=476</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "winlockedout.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<div class="shr-publisher-476"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/' data-shr_title='Video%3A+Remotely+Reset+Windows+Password+via+EC2+Config+service.'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/' data-shr_title='Video%3A+Remotely+Reset+Windows+Password+via+EC2+Config+service.'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/' data-shr_title='Video%3A+Remotely+Reset+Windows+Password+via+EC2+Config+service.'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Video: Gathering helpful information to assist with Windows issues within EC2.</title>
		<link>http://www.smattie.com/2012/01/22/video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2</link>
		<comments>http://www.smattie.com/2012/01/22/video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 08:30:17 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=461</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230; Tools needed: tracetcp: http://tracetcp.sourceforge.net/ wincap: http://www.winpcap.org/install/default.htm tcping: http://www.elifulkerson.com/projects/tcping.php Commands: ipconfig /all &#62;C:\tools\tshoot.txt [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "wintools.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script><br />
<strong>Tools needed:</strong></p>
<p>tracetcp: <a href="http://tracetcp.sourceforge.net/">http://tracetcp.sourceforge.net/</a><br />
wincap: <a href="http://www.winpcap.org/install/default.htm">http://www.winpcap.org/install/default.htm</a><br />
tcping: <a href="http://www.elifulkerson.com/projects/tcping.php">http://www.elifulkerson.com/projects/tcping.php</a></p>
<p><strong>Commands:</strong></p>
<p>ipconfig /all &gt;C:\tools\tshoot.txt<br />
route print &gt;&gt;C:\tools\tshoot.txt<br />
systeminfo &gt;&gt;C:\tools\tshoot.txt<br />
net statistics workstation &gt;&gt;C:\tools\tshoot.txt<br />
netstat -aon &gt;&gt;C:\tools\tshoot.txt<br />
tcping.exe www.google.com &gt;&gt;C:\tools\tshoot.txt<br />
tracetcp.exe www.google.com &gt;&gt;C:\tools\tshoot.txt</p>
<div class="shr-publisher-461"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/01/22/video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2/' data-shr_title='Video%3A+Gathering+helpful+information+to+assist+with+Windows+issues+within+EC2.'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/01/22/video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2/' data-shr_title='Video%3A+Gathering+helpful+information+to+assist+with+Windows+issues+within+EC2.'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/01/22/video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2/' data-shr_title='Video%3A+Gathering+helpful+information+to+assist+with+Windows+issues+within+EC2.'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/01/22/video-gathering-helpful-information-to-assist-with-windows-issues-within-ec2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Video: Recovering EC2 Windows 2008/2008r2 instance due to Windows Firewall issues</title>
		<link>http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues</link>
		<comments>http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 04:26:30 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=326</guid>
		<description><![CDATA[The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps. Loading the player &#8230;]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><script type="text/javascript" src="http://s3.amazonaws.com/smattiecdn/jwplayer.js"></script></p>
<div id="mediaspace">The information provided in this video is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. That said, I hope it helps.</div>
<div id="container">Loading the player &#8230;</div>
<p><script type="text/javascript">
    jwplayer("container").setup({
        flashplayer: "http://s3.amazonaws.com/smattiecdn/player.swf",
        file: "WindowsFirewallReg.mp4",
        height: 270,
        provider: "rtmp",
        streamer: "rtmp://s1qdaqf8zw0cxx.cloudfront.net/cfx/st",
        width: 480
    });
</script></p>
<div class="shr-publisher-326"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/' data-shr_title='Video%3A+Recovering+EC2+Windows+2008%2F2008r2+instance+due+to+Windows+Firewall+issues'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/' data-shr_title='Video%3A+Recovering+EC2+Windows+2008%2F2008r2+instance+due+to+Windows+Firewall+issues'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/' data-shr_title='Video%3A+Recovering+EC2+Windows+2008%2F2008r2+instance+due+to+Windows+Firewall+issues'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EC2 Windows 2008/2008r2 loss of connectivity due to Windows Firewall</title>
		<link>http://www.smattie.com/2012/01/03/ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall</link>
		<comments>http://www.smattie.com/2012/01/03/ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 03:43:25 +0000</pubDate>
		<dc:creator>Scott Mattie</dc:creator>
				<category><![CDATA[EC2]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[registry]]></category>

		<guid isPermaLink="false">http://www.smattie.com/?p=348</guid>
		<description><![CDATA[Happy New Year to everyone and I hope you had a great holiday! I have update this information in the form of a video, which can be found here. Today, I am going to talk about an issue where you might be connecting to a server remotely and all of a sudden you are no [...]]]></description>
				<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong>Happy New Year to everyone and I hope you had a great holiday!</strong></p>
<p>I have update this information in the form of a video, which can be found <a href="http://www.smattie.com/2012/01/16/video-recovering-ec2-windows-20082008r2-instance-due-to-windows-firewall-issues/">here</a>.</p>
<p>Today, I am going to talk about an issue where you might be connecting to a server remotely and all of a sudden you are no longer able to connect via Remote Desktop (RDP). I normally see this issue when either a security update gets applied during Windows Update or someone made a mistake with a Windows Firewall rule. In my example, I will actually break it by removing the RDP access with Windows firewall, but more importantly I will show you how to fix it in the Amazon EC2 cloud environment.</p>
<p>I will do this for both Microsoft Windows Server 2008 and Server 2008r2, since the Windows Firewall is a bit different between the 2 versions. I will also use a Microsoft Windows Server 2003r2 instance to perform the recovery to avoid having to modify  the Boot Configuration Data (BCD) store, so I can perform this recover a bit faster. Later this week, I will show you how to edit the BCD store in the event you need to perform these steps with only Windows 2008 servers.</p>
<p><strong><em>The information provided in this blog is meant as a tutorial. It is not the final word on security or setup for your particular case. In Simpler terms: USE at your own risk. With that being said, I hope it helps.</em></strong></p>
<p>This process only works if we have all instances in the same Availability zone (AZ) because we will need to share the root EBS backed volume. It is important to note the following:</p>
<p>- Instance store instances (s3 backed root devices) do not allow you this flexibility, so you will not be able to detach the C drive<br />
- EBS Volumes can only be shared with one instance at a time<br />
- EBS Volumes can only be shared with the same AZ and can&#8217;t be used for other instances outside the AZ in the same region</p>
<p>Here is how you can find the Windows 2003 public Amazon Machine Images(AMI). First, click on Community AMIs, then in the drop down box choose Amazon Images, then type in 2003 and hit enter. Since, I am not too concerned with this machine, I am going to go for a cheaper machine and will use the 32 bit one. I have highlighted all of these selections in purple below:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-354" title="Select 2003 AMI" src="http://cdn.smattie.com/wp-content/uploads/2012/01/Select-2003-AMI1.png" alt="" width="523" height="340" /></p>
<p>As stated earlier, it is recommended to launch the new instance in the same AZ as seen below:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-355" title="Selectsameregion" src="http://cdn.smattie.com/wp-content/uploads/2012/01/Selectsameregion1.png" alt="" width="603" height="405" /></p>
<p>Now, we will go into the Windows 2008 server and break it by making a change to the firewall which will not respond to RDP requests. First we need to see the Windows Firewall rules:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-375" title="2008firewall" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/2008firewall.png" alt="" width="597" height="474" /></p>
<p>Here is how the firewall is currently allowing RDP:</p>
<p><img class="aligncenter size-full wp-image-380" title="2008rdp_on" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/2008rdp_on.png" alt="" width="428" height="503" /></p>
<p>Then we need to turn <strong>off</strong> RDP by un-selecting it and hitting apply or ok:</p>
<p><img class="aligncenter size-full wp-image-379" title="2008rdp_off" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/2008rdp_off.png" alt="" width="426" height="500" /></p>
<p>Give it a few minutes and it will disconnect and will not longer allow you to connect back to it:</p>
<p><img class="aligncenter size-full wp-image-362" title="2008r2broken" src="http://cdn.smattie.com/wp-content/uploads/2012/01/2008r2broken.png" alt="" width="314" height="199" /></p>
<p><strong>Here is how Windows 2008r2&#8242;s firewall looks:</strong></p>
<p style="text-align: center;"><img class="aligncenter  wp-image-376" title="2008r2firewall" src="http://cdn.smattie.com/wp-content/uploads/2012/01/2008r2firewall.png" alt="" width="571" height="341" /></p>
<p>Here is how the firewall is currently allowing RDP:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-378" title="2008r2rdp_on" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/2008r2rdp_on.png" alt="" width="530" height="410" /></p>
<p>Ok, lets test out theory and turn it off:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-377" title="2008r2rdp_off" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/2008r2rdp_off.png" alt="" width="536" height="418" /></p>
<p>Again, we will get the disconnect and you will also see this error, which is normally what you see <strong>before</strong> you normally start asking for help.</p>
<p><img class="aligncenter size-full wp-image-388" title="RDP_notopen" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/RDP_notopen.png" alt="" width="488" height="262" /></p>
<p>So, let&#8217;s go ahead and fix it. Basically, we will need to do the following and it is the same steps for both versions of Windows 2008:</p>
<p>1. Stop the instances:</p>
<p><img class="aligncenter size-full wp-image-383" title="EC2stop" src="http://cdn.smattie.com/wp-content/uploads/2012/01/EC2stop.png" alt="" width="321" height="533" /></p>
<p>2. Go to EBS volumes menu in AWS Management console:</p>
<p><img class="aligncenter size-full wp-image-371" title="Volume_menu" src="http://cdn.smattie.com/wp-content/uploads/2012/01/Volume_menu.png" alt="" width="172" height="64" /></p>
<p>2. Detach the root volumes</p>
<p><img class="aligncenter size-full wp-image-382" title="detach_volume" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/detach_volume.png" alt="" width="291" height="70" /></p>
<p>3. Attach the root volume to the <strong>w2k3</strong> instance as <strong>xvdf</strong>:</p>
<p><img class="aligncenter size-full wp-image-389" title="attach_oldroot" src="http://cdn.smattie.com/wp-content/uploads/2012/01/attach_oldroot2.png" alt="" width="515" height="214" /></p>
<p>4. Verify volume is attached and online in <strong>Disk Management</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-374" title="2003diskmanage_newvol" src="http://cdn.smattie.com/wp-content/uploads/2012/01/2003diskmanage_newvol.png" alt="" width="554" height="359" /></p>
<p>And <strong>My Computer</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-386" title="w2k3_mycomputer_newvol" src="http://cdn.smattie.com/wp-content/uploads/2012/01/w2k3_mycomputer_newvol.png" alt="" width="542" height="167" /></p>
<p>5. Open <strong>regedit</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-390" title="regedit" src="http://cdn.smattie.com/wp-content/uploads/2012/01/regedit.png" alt="" width="346" height="167" /></p>
<p>6. Navigate to <strong>HKLM</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-391" title="HKLM" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/HKLM.png" alt="" width="223" height="234" /></p>
<p>7.  Load the hive for the system in <strong>Windows 2008</strong> on this Windows 2003 server by going to File and then <strong>Load Hive</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-392" title="Load_Hive" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/Load_Hive.png" alt="" width="232" height="218" /></p>
<p>Select the D drive:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-393" title="Select D" src="http://cdn.smattie.com/wp-content/uploads/2012/01/Select-D.png" alt="" width="557" height="408" /></p>
<p>Browse to <strong>D:\Windows\System32\Config</strong> and select <strong>system</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-394" title="system" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/system.png" alt="" width="560" height="407" /></p>
<p>Hit <strong>open</strong> and rename it to <strong>system_w2k8</strong> to distinguish the difference between the 2 versions in the registry:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-395" title="system_w2k8" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/system_w2k8.png" alt="" width="379" height="105" /></p>
<p>Notice that we now have 2 systems, which is for Windows 2003 (<strong>system</strong>) and Windows 2008 (<strong>system_w2k8</strong>):</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-396" title="systemx2" src="http://cdn.smattie.com/wp-content/uploads/2012/01/systemx2.png" alt="" width="225" height="242" /></p>
<p>8.Browse to the registry settings for your Windows firewall, which is <strong>system_w2k8\CurrentControlset001\services\SharedAccess\Parameters\FirewallPolicy</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-397" title="Reglocation" src="http://cdn.smattie.com/wp-content/uploads/2012/01/Reglocation.png" alt="" width="539" height="226" /></p>
<p>9. Make modifications to the registry to turn off the Windows Firewall for all 3 profiles (<strong>DomainProfile, PublicProfile, StandardProfile</strong>):</p>
<p>Select a <strong>profile</strong> and then double-click on the DWORD <strong>EnableFirewall</strong> and notice it is set to (<strong>1</strong>) which is on:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-398" title="regfwon" src="http://cdn.smattie.com/wp-content/uploads/2012/01/regfwon.png" alt="" width="318" height="189" /></p>
<p>Change the value to a zero (0) to turn it off:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-399" title="regfwoff" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/regfwoff.png" alt="" width="320" height="189" /></p>
<p>Do that exact same step for each profile (<strong>DomainProfile, PublicProfile, StandardProfile</strong>) and then <strong>unload</strong> the hive to save it. You will need to go back up to HKLM and select the <strong>system_w2k8</strong> and then File, <strong>Unload Hive</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-400" title="unload" src="http://cdn.smattie.com/wp-content/uploads/2012/01/unload.png" alt="" width="237" height="221" /></p>
<p>9. Now detach the volume in the AWS Management Console and attach it back to the Windows 2008 version as <strong>/dev/sda1</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-401" title="detachafter" src="http://cdn.smattie.com/wp-content/uploads/2012/01/detachafter.png" alt="" width="640" height="35" /></p>
<p>And attach it back to your original Windows 2008 instance in the AWS Management Console:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-403" title="attach_root" src="http://cdn.smattie.com/wp-content/uploads/2012/01/attach_root.png" alt="" width="584" height="59" /></p>
<p>and name it <strong>/dev/sda1</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-404" title="attach_root2" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/attach_root2.png" alt="" width="517" height="211" /></p>
<p>10. Start your EC2 instance:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-406" title="ec2start" src="http://cdn.smattie.com/wp-content/uploads/2012/01/ec2start.png" alt="" width="314" height="557" /></p>
<p>notice that the IP address has changed after the start. (Originally was <strong>ec2-50-112-36-65.us-west-2.compute.amazonaws.com</strong>)</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-407" title="newname" src="http://cdn.smattie.com/wp-content/uploads/2012/01/newname.png" alt="" width="761" height="34" /></p>
<p>So we need to connect to the new name and now you will see that we can connect <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>11. Verify your work and see that we did in fact turn off the profile:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-408" title="w2k8fw_off" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/w2k8fw_off.png" alt="" width="582" height="258" /></p>
<p>12. Before we turn it on, <strong>allow</strong> RDP access, by clicking on <strong>Turn Windows Firewall on or off</strong> and then hit the <strong>Exceptions</strong> tab:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-409" title="w2k8fw_rdp_off" src="http://cdn.smattie.com/wp-content/uploads/2012/01/w2k8fw_rdp_off.png" alt="" width="430" height="506" /></p>
<p>Click next to <strong>Remote Desktop</strong> to put the check mark next to it and hit Apply or OK. Then click the <strong>Update settings now </strong>to turn it back on <strong>after</strong> you allow RDP:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-410" title="update settings" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/update-settings.png" alt="" width="541" height="65" /></p>
<p><strong> Here is the process in Windows 2008r2:</strong></p>
<p>As you can see the firewall is listed as OFF after we attach the root volume:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-413" title="w2k8r2fw_off" src="http://cdn2.smattie.com/wp-content/uploads/2012/01/w2k8r2fw_off.png" alt="" width="649" height="435" /></p>
<p>Notice that RDP is not enabled in the Windows Firewall and looks like the same as we left it in the beginning:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-414" title="add_rdp" src="http://cdn.smattie.com/wp-content/uploads/2012/01/add_rdp.png" alt="" width="549" height="388" /></p>
<p>Then we will need to add the RDP access, by checking the RDP options <strong>before</strong> enabling the Windows Firewall and note that the firewall is still <strong>off</strong>:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-415" title="fw-off" src="http://cdn.smattie.com/wp-content/uploads/2012/01/fw-off.png" alt="" width="605" height="361" /></p>
<p>So click next to <strong>on</strong> to enable it:</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-416" title="fw-on" src="http://cdn.smattie.com/wp-content/uploads/2012/01/fw-on.png" alt="" width="556" height="563" /></p>
<p>Now you are golden and can RDP into the server <img src='http://cdn2.smattie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="aligncenter  wp-image-417" title="fw_allgood" src="http://cdn.smattie.com/wp-content/uploads/2012/01/fw_allgood.png" alt="" width="650" height="342" /></p>
<div class="shr-publisher-348"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http://www.smattie.com/2012/01/03/ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall/' data-shr_title='EC2+Windows+2008%2F2008r2+loss+of+connectivity+due+to+Windows+Firewall'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http://www.smattie.com/2012/01/03/ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall/' data-shr_title='EC2+Windows+2008%2F2008r2+loss+of+connectivity+due+to+Windows+Firewall'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http://www.smattie.com/2012/01/03/ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall/' data-shr_title='EC2+Windows+2008%2F2008r2+loss+of+connectivity+due+to+Windows+Firewall'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.smattie.com/2012/01/03/ec2-windows-20082008r2-loss-of-connectivity-due-to-windows-firewall/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.smattie.com @ 2013-05-21 02:10:35 by W3 Total Cache -->