<?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>Sentiment &#187; microsoft office sharepoint server</title>
	<atom:link href="http://wouter.shush.com/tag/microsoft-office-sharepoint-server/feed" rel="self" type="application/rss+xml" />
	<link>http://wouter.shush.com</link>
	<description>About Life, the Universe, and Everything...</description>
	<lastBuildDate>Sun, 04 Jul 2010 13:47:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Moving stuff breaks stuff</title>
		<link>http://wouter.shush.com/2008/11/moving-stuff-breaks-stuff</link>
		<comments>http://wouter.shush.com/2008/11/moving-stuff-breaks-stuff#comments</comments>
		<pubDate>Mon, 03 Nov 2008 09:05:18 +0000</pubDate>
		<dc:creator>wooter</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[microsoft office sharepoint server]]></category>
		<category><![CDATA[stsadm]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[windows sharepoint services]]></category>

		<guid isPermaLink="false">http://wouter.shush.com/?p=141&amp;lang=en-us</guid>
		<description><![CDATA[If you&#8217;re toying around with SharePoint and want to move a site to another location, you might run into what I&#8217;ve run into: broken Lookup field links. SharePoint Server 2003 and Windows SharePoint Services 3.0 feature 20 server templates you can integrate within your SharePoint infrastructure with the command line utility stsadm.exe. This command line [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re toying around with SharePoint and want to move a site to another location, you might run into what I&#8217;ve run into: broken Lookup field links.</p>
<p>SharePoint Server 2003 and Windows SharePoint Services 3.0 feature <a title="The 40 Application Templates" href="http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx" target="_blank">20 server templates</a> you can integrate within your SharePoint infrastructure with the command line utility stsadm.exe.</p>
<p>This command line utility also allows you to <em>move</em> sites. Windows SharePoint Services (WSS) does not have any features to really move sites, and so the advised way to move sites within and over WSS web farms is to use <a title="stsadm.exe export and import operations" href="http://technet.microsoft.com/en-us/library/cc262465.aspx" target="_blank">stsadm.exe export and import operations</a> to export a given site, and import it on another location.</p>
<p>For instance, exporting a site from your WSS web farm goes somewhat like this:</p>
<blockquote>
<pre>stsadm.exe -o export -url http://mysharepoint/site/subsite -filename subsite.bak</pre>
</blockquote>
<p>Importing this site back into your WSS web farm goes like this:</p>
<blockquote>
<pre>stsadm.exe -o import -url http://mysharepoint/subsite -filename subsite.bak</pre>
</blockquote>
<p>You now have <em>moved </em>your subsite to the root site.  Or did you?<span id="more-141"></span></p>
<p>The data is present in the new location, but you can run into two problems.</p>
<p>If you exported the site to another Site Farm, you risk that you forgot to load up the server templates.  Make sure you do this before continuïng.</p>
<p>Second, when using your site, you might notice that some lookup fields have lost their links. You can have Knowledge Base articles without keywords, or Request for Change files without status.  When trying to edit these Keywords or Status columns, you notice you cannot modify their lookup list.  This behaviour will be especially apparent when you have removed the source site. Bummer!</p>
<p>To fix this, you need to go deep into your content database to fix the references.</p>
<p>When importing the site, the import process creates new elements in your SharePoint web farm, but it does not modify the <a title="Globally Unique Identifier" href="http://en.wikipedia.org/wiki/Globally_Unique_Identifier" target="_blank">GUID</a>&#8216;s of the elements it creates.  So you are stuck with Lookup fields which are protected (because they are set up in a server template) and wrongfully point to non-existing lists.</p>
<p>So dive into your SQL Server, open Microsoft SQL Server Management Studio, go down the tree to your content database, make sure there is a recent backup (you can make a backup to disk from within SQL Server) and open the table dbo.AllLists.</p>
<p>In this table, you can find the name of the list you have trouble with, by checking the tp_Title field.  If you need to reconnect the keywords of the Knowledge Base template, you need to look for Knoledge Base, since it is the main list that has the lookup field pointing to the wrong keywords list. Also, try to find the list containing your missing information, such as the Keywords list which needs to be linked to the Knowledge Base list.</p>
<p>Once you found these two entries in the table, take note of the tp_ID field of the Keywords entry.  This <a title="Globally Unique Identifier" href="http://en.wikipedia.org/wiki/Globally_Unique_Identifier" target="_blank">GUID </a>is the reference you need to use to change the Knowledge Base entry.  Go back to that Knowledge Base entry and go all the way to the right, checking out the column tp_Fields.</p>
<p>tp_Fields contains in XML all fields that are defined in the List.  This is an ntext column, meaning that there will be more text than you can easily read on one line.  A good way to get a better overview, is to copy the contents of this entry and paste it into Notepad.  Make sure you turn word-wrapping on.</p>
<div id="attachment_142" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-142" title="Contents of the tp_Fields column for the Knowledge Base template" src="http://wouter.shush.com/wordpress/wp-content/uploads/field.png" alt="Contents of the tp_Fields column for the Knowledge Base template" width="500" height="377" /><p class="wp-caption-text">Contents of the tp_Fields column for the Knowledge Base template</p></div>
<p>You see this is not really written to be read by a human, but alas.  We only need to care for one field; &#8220;<em>Keywords</em>&#8220;.</p>
<p>As you can see, there is this bit of XML that defines the field &#8220;<em>Keywords</em>&#8220;:</p>
<blockquote><p>&lt;Field Name=&#8221;KBKeywords&#8221; DisplayName=&#8221;Keywords&#8221; ID=&#8221;{F6DC7D70-CDF6-4ae4-B9E6-7A5BDD79F0C7}&#8221; Type=&#8221;LookupMulti&#8221; Mult=&#8221;TRUE&#8221; Group=&#8221;_Hidden&#8221; ShowField=&#8221;Title&#8221; List=&#8221;{c0065a1c-4391-4cc5-b49a-d300e0f7fa5b}&#8221; Sealed=&#8221;TRUE&#8221; ColName=&#8221;int1&#8243; RowOrdinal=&#8221;0&#8243; StaticName=&#8221;KBKeywords&#8221; SourceID=&#8221;{FB8B32C7-E58D-4CD4-AB4C-9CBBFCE2BC89}&#8221; Description=&#8221;"/&gt;</p></blockquote>
<p>As you can see, there are two GUIDs in this field defined.  The first, ID, is a GUID to define that this field in the <em>Knowledge Base </em>list is unique because of that number.  The second, SourceID, is our prize winner.</p>
<p>Make sure you keep one copy of the original XML, in case you mess up.  Modify the other copy so that SourceID contains the new GUID as defined by the tp_ID column for the record that defines the <em>Keywords </em>list.  Paste this new XML into the tp_Fields column for the record that defines the <em>Knowledge Base</em> list.</p>
<p>Make sure the change is committed to the database and reload the <em>Knowledge Base </em>list in your site.  You should now see the missing <em>Keywords </em>again, and be able to add and modify keywords for new and existing Knowledge Base articles and files.</p>
<p>Now you need to perform this logic to all other missing Lookup fields throughout your imported sites.  Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://wouter.shush.com/2008/11/moving-stuff-breaks-stuff/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search Scopes not visible in Search dropdown</title>
		<link>http://wouter.shush.com/2008/10/search-scopes-not-visible-in-search-dropdown</link>
		<comments>http://wouter.shush.com/2008/10/search-scopes-not-visible-in-search-dropdown#comments</comments>
		<pubDate>Thu, 23 Oct 2008 12:44:45 +0000</pubDate>
		<dc:creator>wooter</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[microsoft office sharepoint server]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[search server]]></category>
		<category><![CDATA[search server express]]></category>
		<category><![CDATA[sharepoint server]]></category>
		<category><![CDATA[windows sharepoint services]]></category>
		<category><![CDATA[wss]]></category>

		<guid isPermaLink="false">http://wouter.shush.com/?p=130&amp;lang=en-us</guid>
		<description><![CDATA[When you have rolled out your Microsoft Office Sharepoint Server or Windows Sharepoint Services together with Microsoft Search Server, you probably want to be able to search all sites through any search field on any site.  But you still only see &#8220;This Site&#8221; as the only scope to select. This is not fun. First make [...]]]></description>
			<content:encoded><![CDATA[<p>When you have rolled out your Microsoft Office Sharepoint Server or Windows Sharepoint Services together with Microsoft Search Server, you probably want to be able to search all sites through any search field on any site.  But you still only see &#8220;This Site&#8221; as the only scope to select.</p>
<p style="text-align: center;"><img class="size-full wp-image-131 aligncenter" title="Search Server: This Site" src="http://wouter.shush.com/wordpress/wp-content/uploads/searchserver_thissite.png" alt="" width="486" height="70" /></p>
<p>This is not fun.</p>
<p><span id="more-130"></span></p>
<p>First make sure you have created a Search Site.  Go to<strong> Site Actions</strong>, <strong>Create </strong>and select <strong>Sites and Workspaces</strong>.  Inthere, create a new site, with the <strong>Enterprise </strong>template <strong>Search Center</strong>.  Give it an url such as http://mysharepointserver/search/.</p>
<p>Next, go back to your main site, go into <strong>Site Actions</strong>,<strong> Site Settings</strong>, <strong>Search Settings</strong> and define a custom scope which links to your Search site, in this case /search/.</p>
<p>This will make the search scopes as defined in your Search Settings available, but chances are that your results are incorrect!</p>
<p>Next, you follow the advice written in <a title="Search Scoped not visible in the Search textbox" href="http://social.technet.microsoft.com/forums/en-US/sharepointsearch/thread/690f0698-ea8c-43aa-ac22-ce4d9d9298dc/" target="_blank">this thread</a> on the Technet Forums:</p>
<p>Modify <strong>C:\Program Files\Common Files\Microsoft Shared\Web Server  Extensions\12\TEMPLATE\FEATURES\OSearchEnhancedFeature\SearchArea.xml</strong> with adding the two following lines within the &lt;Control&gt; XML tag:</p>
<pre lang="xml" line="14">
<property Name="DropDownMode">ShowDD</property>
<property Name="UseSiteDefaults">false</property></pre>
<p>Next, modify <strong>C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\osssearchresults.aspx</strong> with the modification on line 101:</p>
<pre lang="asp" line="89"><asp :Content ContentPlaceHolderID="PlaceHolderTitleBreadcrumb"  runat="server">
    <a name="mainContent"></a>  
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td height="25px"><img SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""/></td>
</tr>
<tr>
<td>
        <spswcearchboxex id="SearchBox" runat="server"
       GoImageUrl="/_layouts/images/gosearch.gif"
       GoImageUrlRTL="/_layouts/images/gosearch.gif"
          DropdownModeEx=ShowDD_DefaultURL
          ScopeDisplayGroupName = "Search DropDown"
          FrameType="None"
          ShouldTakeFocusIfEmpty=true />
      </td>
</tr>
<tr>
<td height="10" colspan="8"><img SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""/></td>
</tr>
</table>

</asp></pre>
<p>This turns your search box into a Search site throughout your Sharepoint environment.</p>
<p style="text-align: center;"><img class="size-full wp-image-132 aligncenter" title="Search Server: all scopes are available" src="http://wouter.shush.com/wordpress/wp-content/uploads/searchserver_allscopes.png" alt="" width="364" height="73" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wouter.shush.com/2008/10/search-scopes-not-visible-in-search-dropdown/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
