<?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>Michael Phillips Blog &#187; SQL</title>
	<atom:link href="http://nukeitmike.com/blog/tag/sql/feed" rel="self" type="application/rss+xml" />
	<link>http://nukeitmike.com/blog</link>
	<description>My place to speak about things</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:57:31 +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>Error installing DPM 2010 Beta</title>
		<link>http://nukeitmike.com/blog/2009/11/17/error-installing-dpm-2010-beta/</link>
		<comments>http://nukeitmike.com/blog/2009/11/17/error-installing-dpm-2010-beta/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 23:04:32 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[Data Protection Manager]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[DPM]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2009/11/17/error-installing-dpm-2010-beta/</guid>
		<description><![CDATA[I was installing the DPM 2010 Beta (finally) and had an issue trying to get the SQL 2008 to install.&#160; Finally figured out that I had the install files stored too deeply in a network share.&#160; I figure this out by running the SQL install directly and when it when to check prereq’s it had [...]]]></description>
			<content:encoded><![CDATA[<p>I was installing the DPM 2010 Beta (finally) and had an issue trying to get the SQL 2008 to install.&#160; Finally figured out that I had the install files stored too deeply in a network share.&#160; I figure this out by running the SQL install directly and when it when to check prereq’s it had an error on one section and when you click for more info this is what you get:</p>
<blockquote><p>Rule &quot;Long path names to files on SQL Server installation media&quot; failed. </p>
<p>SQL Server installation media on a network share or in a custom folder can cause installation failure if the total length of the path exceeds 260 characters. To correct this issue, utilize Net Use functionality or shorten the path name to the SQL Server setup.exe file.</p>
</blockquote>
<p>So, I moved it to a shorter path and it installed just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2009/11/17/error-installing-dpm-2010-beta//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The stub received bad data &#8211; DPM backup of a SQL DB</title>
		<link>http://nukeitmike.com/blog/2009/03/26/the-stub-received-bad-data-dpm-backup-of-a-sql-db/</link>
		<comments>http://nukeitmike.com/blog/2009/03/26/the-stub-received-bad-data-dpm-backup-of-a-sql-db/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 13:27:54 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Data Protection Manager]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[DPM]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2009/03/26/the-stub-received-bad-data-dpm-backup-of-a-sql-db/</guid>
		<description><![CDATA[My DPM Server: Server 2008 x64 DPM 2007 SP1 SQL 2005 SP3 (local to DPM) Protecting: Server 2003 SP2 x64 SQL 2005 SP3 I have about 30 databases being backed up from the one client machine.&#160; All of them backup just fine except one.&#160; Every time I try to do a synchronization or a full [...]]]></description>
			<content:encoded><![CDATA[<p>My DPM Server:    <br />Server 2008 x64     <br />DPM 2007 SP1    <br />SQL 2005 SP3 (local to DPM)    </p>
<p> Protecting:    <br /> Server 2003 SP2 x64    <br /> SQL 2005 SP3    </p>
<p> I have about 30 databases being backed up from the one client machine.&#160; All of them backup just fine except one.&#160; Every time I try to do a synchronization or a full backup I get the following error: </p>
<blockquote><p>Triggering synchronization on *myserver\mydatabase* failed: Error 46: DPM failed to perform the operation because too many objects have been selected. Select fewer objects and then retry this operation. </p>
<p>Error details: The stub received bad data (0x800706F7) </p>
<p>Recommended action: Select fewer objects. 1) If you are trying to protect a large number of data sources on a volume, consider protecting the whole volume instead of individual data sources. 2)If you are trying to recover a large number of folders or files from a volume, consider recovering the parent folder, or divide the recovery into multiple operations. </p>
</blockquote>
<p>This happens even if I just select the one database.&#160; All the other databases backup correctly.</p>
<p>After posting in the <a title="The stub received bad data" href="http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.dataprotectionmanager&amp;mid=e2aa6c05-b4bc-4792-a33d-9e8b8c6d49fd" target="_blank">news group</a>, I got a question from a Microsoft person whether full text indexing was enabled, and if so how many catalogs.&#160; Upon investigation, it appears that this is one of the only databases that i have that has full text indexing enabled.&#160; It has 32 indexes.&#160; </p>
<p>So with the suggestion of a colleague, I did a rebuild of the indexes:</p>
<ol>
<ol>
<li>In SQL Server Management Studio (SSMS) expand the database/Storage/Full Text Catalogs</li>
<li>Right click on the Full Text Catalogs folder and select Rebuild All</li>
</ol>
</ol>
<p>Then I went back to my DPM server, to the protection group and selected the database in question.&#160; I did a “Create recovery point – Disk”, “Create a recovery point by using express full backup”.</p>
<p>That worked, so maybe that means the problem is fixed…</p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2009/03/26/the-stub-received-bad-data-dpm-backup-of-a-sql-db//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Queries</title>
		<link>http://nukeitmike.com/blog/2009/03/24/sql-queries/</link>
		<comments>http://nukeitmike.com/blog/2009/03/24/sql-queries/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 15:45:21 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Blogs]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2009/03/24/sql-queries/</guid>
		<description><![CDATA[I don’t usually do a lot with SQL, but lately I have found myself having to look at, and work with SQL a good bit.&#160; It seems that things come in waves.&#160; Anyway, I was looking for a quick way to copy a table from one Database to another and came across this blog which [...]]]></description>
			<content:encoded><![CDATA[<p>I don’t usually do a lot with SQL, but lately I have found myself having to look at, and work with SQL a good bit.&#160; It seems that things come in waves.&#160; </p>
<p>Anyway, I was looking for a quick way to copy a table from one Database to another and came across this blog which I think has a lot of good queries just waiting to be tinkered with:</p>
<blockquote><p><a title="http://www.sqlservercurry.com/" href="http://www.sqlservercurry.com/">http://www.sqlservercurry.com/</a></p>
</blockquote>
<p>And the particular post that got me there was:</p>
<blockquote><h5><a href="http://www.sqlservercurry.com/2008/03/copy-table-from-one-database-to-another.html">Copy a table from one database to another in SQL Server 2005</a></h5>
<p>4:09 AM Posted by Suprotim Agarwal      <br />Labels: <a href="http://www.sqlservercurry.com/search/label/SQL%20Server%20Administration">SQL Server Administration</a> </p>
<p>If you have a table in a database and you would like to copy the table to another database, use this query:      <br />SELECT * INTO AdventureWorks.dbo.CustomersTemp FROM Northwind.dbo.Customers       <br />Just remember that using this query will only transfer the schema and data. It does not transfer the indexes, foreign keys, statistics etc.       <br />If you want to transfer all the objects from one database to another, open Sql Server Management Studio &gt; Right click on your database &gt; All Tasks &gt; Generate SQL Scripts. Then run these scripts against the new database.       <br /><strong>Transfer both schema and data</strong>       <br />To copy both data and schema, use the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&amp;displaylang=en">Microsoft SQL Server Database Publishing Wizard 1.1.</a> This tool works for both SQL 2000 and SQL 2005 and generates a single SQL script file which can be used to recreate a database (both schema and data). </p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2009/03/24/sql-queries//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
