<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Exporting site content from a SharePoint Content Database for recovery purposes.</title>
	<atom:link href="http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/</link>
	<description>Random musings</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:28:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: tronmcp</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-8193</link>
		<dc:creator><![CDATA[tronmcp]]></dc:creator>
		<pubDate>Wed, 01 Feb 2012 17:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-8193</guid>
		<description><![CDATA[Awesome, this is exactly what I needed! Thank you!!]]></description>
		<content:encoded><![CDATA[<p>Awesome, this is exactly what I needed! Thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-8050</link>
		<dc:creator><![CDATA[Neil]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 23:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-8050</guid>
		<description><![CDATA[You saved our bacon with this.  Thank you so much!]]></description>
		<content:encoded><![CDATA[<p>You saved our bacon with this.  Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Richie</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7988</link>
		<dc:creator><![CDATA[Keith Richie]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 13:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7988</guid>
		<description><![CDATA[I should handle that as is Dennis]]></description>
		<content:encoded><![CDATA[<p>I should handle that as is Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7987</link>
		<dc:creator><![CDATA[Dennis]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 09:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7987</guid>
		<description><![CDATA[Hello, 

Great post! It helped me alot. 

Is there a possiblity to also export .docx and .xlsx files?]]></description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>Great post! It helped me alot. </p>
<p>Is there a possiblity to also export .docx and .xlsx files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7748</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Wed, 04 May 2011 07:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7748</guid>
		<description><![CDATA[After posting my findings, the text is not rendered correctly. The statements I added had the not equal to (&#039;&#039;) sign in them.

 &quot; AND ad.Id &#039;&#039; &#039;B25E2773-456C-4A29-974A-029E8DF7CCF2&#039; &quot; +

etc.]]></description>
		<content:encoded><![CDATA[<p>After posting my findings, the text is not rendered correctly. The statements I added had the not equal to (&#8221;) sign in them.</p>
<p> &#8221; AND ad.Id &#8221; &#8216;B25E2773-456C-4A29-974A-029E8DF7CCF2&#8242; &#8221; +</p>
<p>etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7747</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Wed, 04 May 2011 07:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7747</guid>
		<description><![CDATA[Hello Keith,

the problem is solved. There were indeed empty fields in de Dirname column and therefore the script gave the correct error message and couldn&#039;t create a folder.

I did the following to investigate the error message:
From your script I copied the SQL statements and adapted them so I could run it in a query window.
The output showed that in the first five lines the field Dirname contained no data.
I jotted down the ID&#039;s of these lines and added five lines to the SQL query:
AND ad.Id  &#039;B25E2773-456C-4A29-974A-029E8DF7CCF2&#039; 
AND ad.Id  &#039;9CC53E20-171E-445B-A33B-3B41E6C3A764&#039; 
AND ad.Id  &#039;07AA120D-B316-4A08-BF0B-59D786056E26&#039; 
AND ad.Id  &#039;8FF0D288-9D2B-493D-8584-7755DB55A1FD&#039; 
AND ad.Id  &#039;2B32C357-4516-4EC9-9159-A83F0240E6A2&#039; 

I ran the query again and the five lines were left out of the output.

Then I edited your script and added the adapted SQL statement:
// the query to grab all the files.
            SqlCommand com = con.CreateCommand();
            com.CommandText = &quot;SELECT ad.SiteId, ad.Id, ad.DirName,&quot; +
                &quot; ad.LeafName, ads.Content&quot; +
                &quot; FROM AllDocs ad, AllDocStreams ads&quot; +
                &quot; WHERE ad.SiteId = ads.SiteId&quot; +
                &quot; AND ad.Id = ads.Id&quot; +
                &quot; AND ads.Content IS NOT NULL&quot; +
                &quot; AND ad.Id  &#039;B25E2773-456C-4A29-974A-029E8DF7CCF2&#039; &quot; +
                &quot; AND ad.Id  &#039;9CC53E20-171E-445B-A33B-3B41E6C3A764&#039; &quot; +
                &quot; AND ad.Id  &#039;07AA120D-B316-4A08-BF0B-59D786056E26&#039; &quot; +
                &quot; AND ad.Id  &#039;8FF0D288-9D2B-493D-8584-7755DB55A1FD&#039; &quot; +
                &quot; AND ad.Id  &#039;2B32C357-4516-4EC9-9159-A83F0240E6A2&#039; &quot; +
                &quot; Order by DirName&quot;;

After compiling the script I ran it and all the data was wonderfully extracted and put in a file structure.

Many thanks for your help. I hope my findings will be of help to others.

Kind regards, 
Wim.]]></description>
		<content:encoded><![CDATA[<p>Hello Keith,</p>
<p>the problem is solved. There were indeed empty fields in de Dirname column and therefore the script gave the correct error message and couldn&#8217;t create a folder.</p>
<p>I did the following to investigate the error message:<br />
From your script I copied the SQL statements and adapted them so I could run it in a query window.<br />
The output showed that in the first five lines the field Dirname contained no data.<br />
I jotted down the ID&#8217;s of these lines and added five lines to the SQL query:<br />
AND ad.Id  &#8216;B25E2773-456C-4A29-974A-029E8DF7CCF2&#8242;<br />
AND ad.Id  &#8217;9CC53E20-171E-445B-A33B-3B41E6C3A764&#8242;<br />
AND ad.Id  &#8217;07AA120D-B316-4A08-BF0B-59D786056E26&#8242;<br />
AND ad.Id  &#8217;8FF0D288-9D2B-493D-8584-7755DB55A1FD&#8217;<br />
AND ad.Id  &#8217;2B32C357-4516-4EC9-9159-A83F0240E6A2&#8242; </p>
<p>I ran the query again and the five lines were left out of the output.</p>
<p>Then I edited your script and added the adapted SQL statement:<br />
// the query to grab all the files.<br />
            SqlCommand com = con.CreateCommand();<br />
            com.CommandText = &#8220;SELECT ad.SiteId, ad.Id, ad.DirName,&#8221; +<br />
                &#8221; ad.LeafName, ads.Content&#8221; +<br />
                &#8221; FROM AllDocs ad, AllDocStreams ads&#8221; +<br />
                &#8221; WHERE ad.SiteId = ads.SiteId&#8221; +<br />
                &#8221; AND ad.Id = ads.Id&#8221; +<br />
                &#8221; AND ads.Content IS NOT NULL&#8221; +<br />
                &#8221; AND ad.Id  &#8216;B25E2773-456C-4A29-974A-029E8DF7CCF2&#8242; &#8221; +<br />
                &#8221; AND ad.Id  &#8217;9CC53E20-171E-445B-A33B-3B41E6C3A764&#8242; &#8221; +<br />
                &#8221; AND ad.Id  &#8217;07AA120D-B316-4A08-BF0B-59D786056E26&#8242; &#8221; +<br />
                &#8221; AND ad.Id  &#8217;8FF0D288-9D2B-493D-8584-7755DB55A1FD&#8217; &#8221; +<br />
                &#8221; AND ad.Id  &#8217;2B32C357-4516-4EC9-9159-A83F0240E6A2&#8242; &#8221; +<br />
                &#8221; Order by DirName&#8221;;</p>
<p>After compiling the script I ran it and all the data was wonderfully extracted and put in a file structure.</p>
<p>Many thanks for your help. I hope my findings will be of help to others.</p>
<p>Kind regards,<br />
Wim.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7744</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Fri, 22 Apr 2011 13:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7744</guid>
		<description><![CDATA[hello, sorry to respond only now.
I run it on a local drive. To me it seems as if the content is about to be extracted, but cannot be placed in a directory (maybe because it is from a root sourcen in Sharepoint?).

I do appreciate you help, because I (still) need to get all the dat out of the content database.

Kind regards, Wim]]></description>
		<content:encoded><![CDATA[<p>hello, sorry to respond only now.<br />
I run it on a local drive. To me it seems as if the content is about to be extracted, but cannot be placed in a directory (maybe because it is from a root sourcen in Sharepoint?).</p>
<p>I do appreciate you help, because I (still) need to get all the dat out of the content database.</p>
<p>Kind regards, Wim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Richie</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7711</link>
		<dc:creator><![CDATA[Keith Richie]]></dc:creator>
		<pubDate>Tue, 12 Apr 2011 12:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7711</guid>
		<description><![CDATA[Wim, is the directory you&#039;re running it in a local directory? Or a network share? make sure you run it on a local drive.]]></description>
		<content:encoded><![CDATA[<p>Wim, is the directory you&#8217;re running it in a local directory? Or a network share? make sure you run it on a local drive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wim</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7710</link>
		<dc:creator><![CDATA[Wim]]></dc:creator>
		<pubDate>Mon, 11 Apr 2011 09:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7710</guid>
		<description><![CDATA[Hello,

I was happy to come across this post, because I need to extract all data from a MOSS 2007 content database.

I followed all the steps stated in this post and changde the server- and database name according to our situation.
When I run the exe I get the following error-message:
E:\111&gt;spdbex.exe
Unhandled Exception: System.ArgumentException: Path cannot be the empty string or all whitespace.
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
   at spdbex.Program.Main(String[] args)

What could I have forgotten or done wrong? can you enlighten me?]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I was happy to come across this post, because I need to extract all data from a MOSS 2007 content database.</p>
<p>I followed all the steps stated in this post and changde the server- and database name according to our situation.<br />
When I run the exe I get the following error-message:<br />
E:\111&gt;spdbex.exe<br />
Unhandled Exception: System.ArgumentException: Path cannot be the empty string or all whitespace.<br />
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)<br />
   at spdbex.Program.Main(String[] args)</p>
<p>What could I have forgotten or done wrong? can you enlighten me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samah</title>
		<link>http://blog.krichie.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7703</link>
		<dc:creator><![CDATA[Samah]]></dc:creator>
		<pubDate>Thu, 07 Apr 2011 06:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://krichie.wordpress.com/2008/07/06/exporting-site-content-from-a-sharepoint-content-database-for-recovery-purposes/#comment-7703</guid>
		<description><![CDATA[Hello Richie, 

I need to access an entire sharepoint site&#039;s content in order to build a new PHP/MySQL site. I thought your code will help me extract that content. Am I mistaken? If you know of a tool that can get the pages content that would be a life saver. Thanks]]></description>
		<content:encoded><![CDATA[<p>Hello Richie, </p>
<p>I need to access an entire sharepoint site&#8217;s content in order to build a new PHP/MySQL site. I thought your code will help me extract that content. Am I mistaken? If you know of a tool that can get the pages content that would be a life saver. Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

