<?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>mylifeinaminute.com &#187; SQL Server 2005</title>
	<atom:link href="http://www.mylifeinaminute.com/tag/sql-server-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifeinaminute.com</link>
	<description>You can learn a lot in a minute</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:33:27 +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>Exception: The content type is in use</title>
		<link>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/</link>
		<comments>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 13:53:14 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[Content Types]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=344</guid>
		<description><![CDATA[I&#8217;ve found that working with InfoPath is becoming more and more of a chore.  A form I&#8217;ve been working on has had its promoted columns changed a number of times (Side note: I would just love to have a defined specification). Today when I attempted to completely retract my form (inlcuding manually deleting the content [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found that working with InfoPath is becoming more and more of a chore.  A form I&#8217;ve been working on has had its promoted columns changed a number of times (Side note: I would just love to have a defined specification).</p>
<p>Today when I attempted to completely retract my form (inlcuding manually deleting the content type associated with the form), I was presented with the always helpful error &#8220;<span style="color: red;"><em>The content type is in use</em></span>&#8220;.  This is by far one of the more helpful errors you will ever see from SharePoint.  Unfortunately it isn&#8217;t clear how to discover where the content type is actually in use.  A quick trip to the content database for the site collection you are working in can show us:</p>
<pre>
<pre class="brush: sql; title: ; notranslate">
DECLARE @ContentTypeName nvarchar(128)

SET @ContentTypeName='Content Type Name Here'

SELECT w.Title AS [Web Site], w.FullUrl AS [Web Url], al.tp_Title AS [List Title],
	ct2.*
FROM ContentTypes ct1
	JOIN ContentTypes ct2 ON LEFT(ct2.ContentTypeId, Len(ct1.ContentTypeId))=ct1.ContentTypeId
	LEFT OUTER JOIN dbo.ContentTypeUsage ctu ON LEFT(ctu.ContentTypeId, Len(ct2.ContentTypeId)) = ct2.ContentTypeId
	LEFT OUTER JOIN dbo.AllLists al ON ctu.ListId = al.tp_Id AND ctu.WebId=al.tp_WebId
	LEFT OUTER JOIN dbo.Webs w ON al.tp_WebId = w.Id WHERE ct1.ResourceDir=@ContentTypeName
</pre>
</pre>
<p>[Credit to <a href="http://social.msdn.microsoft.com/en-US/profile/?user=Curtis%20Ruppe%20_MicroStaff%20IT_&#038;referrer=http%3A//social.msdn.microsoft.com/Forums/en-US/sharepointadmin/thread/0a558f4f-cd1e-4432-85bb-caaa3a3b57ae/#sort=recent&#038;page=0&#038;filter=allcontent" target="_blank">Curtis Ruppe</a>]</p>
<p>Once we know where the content type is in use, deleting it through the GUI is a trivial matter.</p>
<p><map name='google_ad_map_344_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/344?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_344_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=344&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2009%2F03%2F17%2Fexception-the-content-type-is-in-use%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Migrating a Content database from a RTM farm to a SP1 farm in SharePoint</title>
		<link>http://www.mylifeinaminute.com/2008/12/10/migrating-a-content-database-from-a-rtm-farm-to-a-sp1-farm-in-sharepoint/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/10/migrating-a-content-database-from-a-rtm-farm-to-a-sp1-farm-in-sharepoint/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 16:23:06 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[content database]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[moss service pack]]></category>
		<category><![CDATA[service pack]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql server 2000]]></category>
		<category><![CDATA[stsadm]]></category>
		<category><![CDATA[upgrade content database]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=232</guid>
		<description><![CDATA[Recently, we came across a need to migrate an existing (SharePoint 2007) RTM content database to a new farm, which had SP1 pre-installed.  After taking a full backup of the existing database (through SQL Server), the backup was restored in the new farm. Note: I should also mention that the database was migrating from SQL [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, we came across a need to migrate an existing (<a title="SharePoint" href="/tag/sharepoint/">SharePoint</a> <a title="SharePoint 2007" href="/tag/moss-2007/">2007</a>) RTM content database to a new farm, which had SP1 pre-installed.  After taking a full backup of the existing database (through <a title="SQL Server" href="/tag/sql-server/">SQL Server</a>), the backup was restored in the new farm.</p>
<p><strong><em>Note:</em></strong> I should also mention that the database was migrating from SQL Server 2000 to SQL Server 2005.</p>
<p>After resetting the SharePoint servers, browsing to the site in question brought the following error:</p>
<blockquote><p><span style="color: #ff0000;">Server error: http://go.microsoft.com/fwlink?LinkID=96177</span></p></blockquote>
<p>At this point, we detached the content database in question (Central Administration » Application Management »  Content databases).  Once the database was successfully detached from the farm, it was reattached using the following STSADM command:</p>
<blockquote><p>stsadm -o addcontentdb -url ‹URL›  -databasename ‹DBNAME›</p></blockquote>
<p>Reattaching the content database with the above command completely successfully, and as an added benefit performed an inplace upgrade, bringing the database schema up to SP1.  This might prove to be a helping hand when it comes to migrating to MOSS 2007 SP1 if your wish is to start with a new farm, but retain your original content.</p>
<p><map name='google_ad_map_232_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/232?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_232_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=232&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F10%2Fmigrating-a-content-database-from-a-rtm-farm-to-a-sp1-farm-in-sharepoint%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/10/migrating-a-content-database-from-a-rtm-farm-to-a-sp1-farm-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.mylifeinaminute.com @ 2012-02-07 15:33:23 by W3 Total Cache -->
