<?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>Edwin Vriethoff &#187; SQL Server</title>
	<atom:link href="http://edwin.vriethoff.net/category/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwin.vriethoff.net</link>
	<description>Edwin Vriethoff</description>
	<lastBuildDate>Fri, 04 Jun 2010 06:16:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Front-end file system cache problems might occur after a SharePoint configuration database restore.</title>
		<link>http://edwin.vriethoff.net/2010/03/25/front-end-file-system-cache-problems-might-occur-after-a-sharepoint-configuration-database-restore/</link>
		<comments>http://edwin.vriethoff.net/2010/03/25/front-end-file-system-cache-problems-might-occur-after-a-sharepoint-configuration-database-restore/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:41:57 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Configuration database]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[Infopath]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[WSP]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=370</guid>
		<description><![CDATA[Last week I was working at a client who just restored one of their SharePoint environments because of a site error. Everything was functioning like normal, until we discovered a major issue with the InfoPath forms publishing mechanism.
For some of the Infopath forms we received an error while upgrading the form to a newer version. The [...]]]></description>
			<content:encoded><![CDATA[<p><img title="database_restore_file_cache_problems" src="http://edwin.vriethoff.net/wp-content/database_restore_file_cache_problems.jpg" alt="database_restore_file_cache_problems" width="140" height="142" align="left" />Last week I was working at a client who just restored one of their SharePoint environments because of a site error. Everything was functioning like normal, until we discovered a major issue with the InfoPath forms publishing mechanism.</p>
<p>For some of the Infopath forms we received an error while upgrading the form to a newer version. The error statement told us that we could not update the form because of an object in the database with the same ID.</p>
<p>To resolve the error we tried to remove the existing form, but instead of removing the form, SharePoint decided to do the opposite and it tried to start some kind of upgrade process. We had no more options to upgrade or even delete the existing form.</p>
<p><span id="more-370"></span>We knew that SharePoint generates a WSP for each InfoPath form that is published in the Central Administration. The deployment status of each WSP file can be seen in the Solution Management section. Right here we found the source of our problem. The Solution Management page informed us that the WSP package of the forms where Globally deployed, but they gave an Error status. The error status blocked every option to retract or re-deploy the WSP. Looking at the error details the following message was displayed:</p>
<div class="Code">SharePointServer : C:\WINDOWS\Temp\solution-fc4c343f-f8f7-4724-b6c0-8e658496bda9\form-template_myform.wsp could not be created because the contents could not be found under id 4795693a-2ec7-4a92-810f-eb9931a498e6 in the configuration database.</div>
<p>Somehow the environment was thinking that the content of the missing WSP package was deployed.</p>
<p>Finally the IT Pro of our client found the solution for the problem in <a href="http://support.microsoft.com/kb/939308" onclick="javascript:pageTracker._trackPageview('/outbound/article/support.microsoft.com');" target="_blank">KB939308</a>. It turns out that after a database restore, the contents of the file system cache on the front-end servers can be different from that of the contents of the configuration database.</p>
<p>The only way to fix this is by performing some manual steps:</p>
<ol>
<li>All the XML configuration files have to be removed from the SharePoint config directory.</li>
<li>The contents of the cache.ini file has to be cleared.</li>
<li>The Windows SharePoint Services Timer has to be restarted.</li>
</ol>
<p>A detailed guide of these steps is provided in the description of <a href="http://support.microsoft.com/kb/939308" onclick="javascript:pageTracker._trackPageview('/outbound/article/support.microsoft.com');" target="_blank">KB939308</a>.</p>
<p>So next time if you have to do a database restore of your SharePoint Server, keep in mind some cache problems might occur.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2010/03/25/front-end-file-system-cache-problems-might-occur-after-a-sharepoint-configuration-database-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshoot disconnected SQL Server users</title>
		<link>http://edwin.vriethoff.net/2007/07/03/troubleshoot-disconnected-sql-server-users/</link>
		<comments>http://edwin.vriethoff.net/2007/07/03/troubleshoot-disconnected-sql-server-users/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 10:15:22 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[database users]]></category>
		<category><![CDATA[disconnected]]></category>
		<category><![CDATA[login problems]]></category>
		<category><![CDATA[logins]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SQL_Server]]></category>
		<category><![CDATA[stored procedure]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/2007/07/03/troubleshoot-disconnected-sql-server-users/</guid>
		<description><![CDATA[If you move a database export to a new server, you might experience login problems inside your applications. 
The exported database will contain your users, but they are no longer connected to valid SQL Server logins. Even if the same users are existing on the new SQL Server, their ID&#8217;s might be different. One of [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://edwin.vriethoff.net/wp-content/disconnected.jpg' alt='Disconnected users' align='right' />If you move a database export to a new server, you might experience login problems inside your applications. </p>
<p>The exported database will contain your users, but they are no longer connected to valid SQL Server logins. Even if the same users are existing on the new SQL Server, their ID&#8217;s might be different. One of the options is to just recreate and configure the users, but sometimes this is not an option; You might have a lot of users or complicated user rights that you don&#8217;t want to check, test and document.</p>
<p>SQL Server contains stored procedure in the Master database to connect your database users with the available SQL Server users. This stored procedure is called &#8220;sp_change_users_login&#8221;. Just take the steps below to attach your users:</p>
<ol>
<li>Create the (new) required login in the Security database if it doesn&#8217;t exist.</li>
<li>Run the following SQL and replace the coloured items with your values:
<div class="code">USE [<font color='blue'>Your database</font>]<br />
go<br />
EXEC sp_change_users_login &#8216;Update_One&#8217;, &#8216;<font color='blue'>Original username</font>&#8216;, &#8216;<font color='blue'>SQL Server user name</font>&#8216;
</div>
</li>
</ol>
<p>Narayana Vyas Kondreddi has written more detailed information about this subject at <a href="http://vyaskn.tripod.com/troubleshooting_orphan_users.htm" onclick="javascript:pageTracker._trackPageview('/outbound/article/vyaskn.tripod.com');" target="_blank">his website</a> which contains a handy stored procedure &#8220;ShowOrphanUsers&#8221; which provides you with a list of all unconnected users.</p>
<p>Documentation about the &#8220;sp_change_users_login&#8221; stored procedure can be found at the <a href="http://blogs.meslab.nl/mes/ct.ashx?id=df1c0520-e6a5-4384-9632-ffe73cbaf9d0&#038;url=http%3a%2f%2fmsdn2.microsoft.com%2fen-us%2flibrary%2faa259633(SQL.80).aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/blogs.meslab.nl');" target="_blank">MSDN website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2007/07/03/troubleshoot-disconnected-sql-server-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
