<?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>Alfaj0r.com &#187; services</title>
	<atom:link href="http://www.alfaj0r.com/blog/tag/services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alfaj0r.com</link>
	<description>It's all fun and games,'till someone loses an eye. Then it's a sport!</description>
	<lastBuildDate>Mon, 02 Jan 2012 05:21:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Restoring a Sharepoint Services site from backup</title>
		<link>http://www.alfaj0r.com/blog/2009/08/25/restoring-a-sharepoint-services-site-from-backup/</link>
		<comments>http://www.alfaj0r.com/blog/2009/08/25/restoring-a-sharepoint-services-site-from-backup/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 18:40:52 +0000</pubDate>
		<dc:creator>Nico</dc:creator>
				<category><![CDATA[Nico]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[SP2]]></category>
		<category><![CDATA[Todd Klindt]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.alfaj0r.com/?p=502</guid>
		<description><![CDATA[A while back, a server running Sharepoint Services 3.0 went down. Of course that we had to get it back up and running immediately, so I was tasked with reviving a Sharepoint site and I didn&#8217;t know how to do it. Enter the internet. Seriously, unless you&#8217;re doing something with brand new technology, chances are [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, a server running Sharepoint Services 3.0 went down. Of course that we had to get it back up and running immediately, so I was tasked with reviving a Sharepoint site and I didn&#8217;t know how to do it.</p>
<p>Enter the <a href="http://www.youtube.com/watch?v=EtOoQFa5ug8" target="_blank">internet</a>.</p>
<p>Seriously, unless you&#8217;re doing something with brand new technology, chances are that someone&#8217;s already had the exact same problem that you&#8217;re having. And if they take the time to share and document their process, other people can use that to their benefit. This is also why I&#8217;m re-telling the story, so that if anyone comes across the problem, hopefully they find this and can use it for an answer to their issue.</p>
<p>After arduous searching and much head-desk contact, I decided that this <a href="http://www.eggheadcafe.com/conversation.aspx?messageid=32880764&amp;threadid=32880744" target="_blank">little</a> post on EggHeadCafe.com would be my main point of reference.</p>
<p>So here&#8217;s what I started with:</p>
<ul>
<li>A server with a fresh install of Windows 2003 server.</li>
<li>Installed a clean version of Windows <a href="http://www.microsoft.com/downloads/details.aspx?familyid=EF93E453-75F1-45DF-8C6F-4565E8549C2A&amp;displaylang=en" target="_blank">Sharepoint</a> Services (with Service Pack 2)</li>
<li>A few database files floating around, recovered from a backup that basically just copied everything on the drive to somewhere else. The files were: <span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">STS_Config.mdf, STS_Config_log.LDF,  STS_controlfreak_1.mdf, STS_controlfreak_1_log.LDF, WSS_AdminContent.mdf and WSS_AdminContent_log.LDF.</span></li>
<li><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">A lot of pressure to get this done quickly, and no idea on how to do it.</span></li>
</ul>
<p>I then installed Microsoft SQL Server <a href="http://www.microsoft.com/downloadS/details.aspx?familyid=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;displaylang=en" target="_blank">Management Studio</a> Express. There are ways to do all the work via command line, but since I didn&#8217;t really know what was going on, and didn&#8217;t have the luxury of time, a visual interface made things much easier for me.<br />
When running the Management Studio, I connected entering for the server name &#8220;\\.\pipe\mssql$microsoft##ssee\sql\query&#8221;. For Authentication, Windows Authentication did it, because the database was setup like so when I ran the WSS installer.<br />
Once inside, if you right click on &#8220;Databases&#8221; there&#8217;s an option to attach. I attached the STS_controlreak_1.mdf file that I&#8217;d recovered, and bam! It was in the database. Ok, that was easy.</p>
<p>Next, I went into WSS Central Administration, which is the localhost and port 36459. From there, there&#8217;s a section for Application Management. This is where the magic happened.</p>
<p>Under &#8220;Content Databases&#8221; you see what databases the Sharepoint sites was using. The top right of the screen shows what Web Application you&#8217;re working on, and I could chose from Sharepoint (port 80) or the Central Admin site. Of course I wanted the Sharepoint one on port 80.<br />
It was showing me a Database called &#8220;WSS_Content&#8221; as listed. I clicked on it, and at the bottom of the page that opens, chose &#8220;Remove content database&#8221;. Then hit OK, and felt my heart beat rise. Luckily, nothing exploded, and all that happened was that the site was no longer using that database. Turns out that &#8220;WSS_Content&#8221; is the default site that comes with WSS, so it&#8217;s safe to remove. No harm done.</p>
<p>Now, after clicking on &#8220;add a content database&#8221; all that I had to do was enter the name of the database holding the site. The name had to be like it appears on SQL, which in this case was &#8220;STS_controlfreak_1&#8243;. The Database Server name I used was &#8220;<span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; ">CONTROLFREAK\Microsoft##SSEE&#8221; (CONTROLFREAK is the server&#8217;s name, to make things even more fun).</span></p>
<p><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; ">Then panic ensued. I got an error message, saying &#8220;Attaching this database requires upgrade, which could time out the browser session.  You must use the STSADM command &#8216;addcontentdb&#8217; to attach this database.&#8221; This was because the install I was doing was more recent than what was there before. In other words, I had a brand new SP2 install, and the old site apparently wasn&#8217;t Service Pack 2.<br />
The visual interface would have worked just fine, but I was going to have to add the database manually so that it could update it at the same time, and so it was time for command line action: Windows Key + R. &#8220;cmd&#8221;. Enter.</span></p>
<p><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px; "><strong>cd c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN</strong><br />
stsadm -help addcontentdb (just to get a clue for what&#8217;s up)<br />
<strong> stsadm -o addcontentdb -url </strong><span style="color: #0000ff; text-decoration: underline;"><strong>http://controlfreak</strong></span><strong> -databaseName STS_controlfreak_1&#8243;</strong></span></p>
<p>That took a while to process, but eventually I got a nice message telling me &#8220;<span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">operation completed successfully&#8221;. Apparently this was good. To make sure, wanted to make sure the site was listed, so I ran:</span></p>
<p><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;"><strong>stsadm -o enumsites</strong></span></p>
<p><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">Sure enough, my site was listed there. And then, the glory. Browsing http://controlfreak had my old site back, running as if nothing had ever happened! I went all <a href="http://technoviking.ytmnd.com/" target="_blank">TechnoViking</a> and the problem was gone!</span></p>
<p><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">Now, the truth is, I was lucky in resolving this. After many a google search, and many different attempts, I was about ready to give up. As a venting channel, I expressed my frustrations on <a href="http://twitter.com/alfaj0r" target="_blank">twitter</a>&#8230; and then the real magic happened.<br />
A guy named <a href="http://twitter.com/ToddKlindt" target="_blank">Todd Klindt</a> replied, saying he could help me. We exchanged a few messages, got on messenger, and he held my hand through the last steps.</span></p>
<p><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">Turns out I was close, but I needed some more clear idea on how to add the database to Sharepoint. It it hadn&#8217;t been for Todd, who knows how much longer it would have taken me to figure it out.<br />
What I do know is that I was very thankful that Todd found my rants on Twitter, and that he volunteered his time to help me out. He is very knowledgeable on Sharepoint overall, and he runs a site on the thing! I checked it out, and bookmarked for future reference: <a href="http://www.toddklindt.com/blog/default.aspx" target="_blank">http://www.toddklindt.com</a>. If I ever have to work with Sharepoint again, I&#8217;ll make sure to check there first for guidance, how-to&#8217;s and best practices. If I was a super-user of Sharepoint, I&#8217;d probably be checking out his podcast too.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alfaj0r.com/blog/2009/08/25/restoring-a-sharepoint-services-site-from-backup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.795 seconds -->

