<?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>The Iterative Life &#187; SQL Server</title>
	<atom:link href="http://www.marcstober.com/blog/category/software-blog/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcstober.com/blog</link>
	<description>// Repairing the world, one byte at a time. Marc Stober&#039;s blog.</description>
	<lastBuildDate>Thu, 12 Jan 2012 01:24:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>MSDE to SQL Express upgrade manifests problems with msdb database during a restore</title>
		<link>http://www.marcstober.com/blog/2006/05/12/msde-to-sql-express-upgrade-manifests-problems-with-msdb-database-during-a-restore/</link>
		<comments>http://www.marcstober.com/blog/2006/05/12/msde-to-sql-express-upgrade-manifests-problems-with-msdb-database-during-a-restore/#comments</comments>
		<pubDate>Fri, 12 May 2006 21:15:10 +0000</pubDate>
		<dc:creator>marcstober</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.marcstober.com/blog/2006/05/12/msde-to-sql-express-upgrade-manifests-problems-with-msdb-database-during-a-restore/</guid>
		<description><![CDATA[When restoring a database to an SQL Server 2005 Express server, where that server had been upgraded from MSDE, we get errors like the following: Msg 207, Level 16, State 1, Line 2 Invalid column name 'mirror_count'. Msg 207, Level 16, State 1, Line 2 Invalid column name 'is_password_protected'. ... Could not insert a backup [...]]]></description>
			<content:encoded><![CDATA[<p>When restoring a database to an SQL Server 2005 Express server, where that server had been upgraded from MSDE, we get errors like the following:</p>
<p><code>Msg 207, Level 16, State 1, Line 2<br />
Invalid column name 'mirror_count'.<br />
Msg 207, Level 16, State 1, Line 2<br />
Invalid column name 'is_password_protected'.<br />
...<br />
Could not insert a backup or restore history/detail record in the msdb database. This may indicate a problem with the msdb database. The backup/restore operation was still successful.<br />
RESTORE DATABASE successfully processed 8081 pages in 10.138 seconds (6.529 MB/sec).</code></p>
<p>This is running the RESTORE command through SQL Server Management Studio (SSMS), or through our own utility, which is where we found the problem. We don&#8217;t get the error doing a restore through SSMS, but there&#8217;s no record of the restore in the MSDB restore history table so it&#8217;s probably just ignoring the error; in either case the database actually is restored.</p>
<p>Googling the error returned only <a href="http://groups.google.com/group/microsoft.public.sqlserver.programming/msg/0f6286f9ebd94109">this thread</a> but a little more searching found <a href="http://groups.google.com/group/microsoft.public.sqlserver.msde/msg/4d4484d82adba7d3?hl=en&#038;">this thread</a> and Knowledge Base article called <a href="http://support.microsoft.com/kb/907284"> Changes to the readme file for SQL Server 2005</a> says that &#8220;During upgrade from MSDE to SQL Server Express, the msdb database is not upgraded.&#8221;  This explains the problem but isn&#8217;t a solution. Apparently there&#8217;s a file called instmsdb.sql that will rebuild your msdb database, or we could just ignore the error, but neither seems like a foolproof solution. Interesting the master database is still version 80 in the upgraded-from-MSDE server. It&#8217;s not fixed in SP1 but we can hope for SP2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcstober.com/blog/2006/05/12/msde-to-sql-express-upgrade-manifests-problems-with-msdb-database-during-a-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

