<?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/"
	
	>
<channel>
	<title>Comments on: Import Dmoz Content through C# to SQL Server</title>
	<atom:link href="http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=import-dmoz-content-through-c-to-sql-server</link>
	<description>Because the world needs another Business Intelligence blog!</description>
	<lastBuildDate>Fri, 14 Sep 2018 19:30:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>By: Links Naji</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-2483</link>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
		<pubDate>Wed, 10 Jul 2013 08:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-2483</guid>
		<description><![CDATA[Hi Adam,

Regarding the PRIMARY filegroup, it looks like it ran out of space, that is an easy fix, all you need to do is right click on your database, then select &quot;&lt;strong&gt;Properties&lt;/strong&gt;&quot;, go to the &quot;Files&quot; tab, you will be able to see the database file associated with the PRIMARY filegroup, there you will need to set an &quot;&lt;strong&gt;Autogrowth/Maxsize&lt;/strong&gt;&quot; value to allow the filegroup to expand. That should be it really!

There is also the possibility that you have hit the 10GB limit on SQL Server Express, if that is the case then you will need to empty some space on the DMOZ database (particularly the PRIMARY filegroup) to allow new data to be added, or split data on two databases... The total size of my DMOZ database is about 9.8 GB, almost hitting the SQL Express limit.

Hope this helps, let me know how you get on!]]></description>
		<content:encoded><![CDATA[<p>Hi Adam,</p>
<p>Regarding the PRIMARY filegroup, it looks like it ran out of space, that is an easy fix, all you need to do is right click on your database, then select &#8220;<strong>Properties</strong>&#8220;, go to the &#8220;Files&#8221; tab, you will be able to see the database file associated with the PRIMARY filegroup, there you will need to set an &#8220;<strong>Autogrowth/Maxsize</strong>&#8221; value to allow the filegroup to expand. That should be it really!</p>
<p>There is also the possibility that you have hit the 10GB limit on SQL Server Express, if that is the case then you will need to empty some space on the DMOZ database (particularly the PRIMARY filegroup) to allow new data to be added, or split data on two databases&#8230; The total size of my DMOZ database is about 9.8 GB, almost hitting the SQL Express limit.</p>
<p>Hope this helps, let me know how you get on!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links Naji</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-2482</link>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
		<pubDate>Wed, 10 Jul 2013 08:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-2482</guid>
		<description><![CDATA[Hey Adam,

That is a strange issue indeed, TRY_PARSE is a SQL 2012 function and should work in Express edition without problems.

Can you try running a select the version variable on the server instance were the DMOZ database is located, like this:

Select @@version

And reporting back the results?

There are ways to get around the Try_Parse function by substituting SQL 08 functions, and returning NULL if the casting fails (or is unsuitable), but would&#039;ve not thought you needed that in SQL 2012, this is rather odd!.]]></description>
		<content:encoded><![CDATA[<p>Hey Adam,</p>
<p>That is a strange issue indeed, TRY_PARSE is a SQL 2012 function and should work in Express edition without problems.</p>
<p>Can you try running a select the version variable on the server instance were the DMOZ database is located, like this:</p>
<p>Select @@version</p>
<p>And reporting back the results?</p>
<p>There are ways to get around the Try_Parse function by substituting SQL 08 functions, and returning NULL if the casting fails (or is unsuitable), but would&#8217;ve not thought you needed that in SQL 2012, this is rather odd!.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Knights</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-2477</link>
		<dc:creator><![CDATA[Adam Knights]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 22:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-2477</guid>
		<description><![CDATA[Should also say - running that stored proc having removed the try_parse gave:

Msg 1105, Level 17, State 2, Procedure usp_Import_ImportContentData, Line 10
Could not allocate space for object &#039;dbo.ExternalPage&#039;.&#039;PK__External__3214EC075BE2A6F2&#039; in database &#039;dmoz&#039; because the &#039;PRIMARY&#039; filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

But this may well be due to the face that I removed the truncate_only line in bods solution as that function isn&#039;t in sql 2012 anymore.]]></description>
		<content:encoded><![CDATA[<p>Should also say &#8211; running that stored proc having removed the try_parse gave:</p>
<p>Msg 1105, Level 17, State 2, Procedure usp_Import_ImportContentData, Line 10<br />
Could not allocate space for object &#8216;dbo.ExternalPage&#8217;.&#8217;PK__External__3214EC075BE2A6F2&#8242; in database &#8216;dmoz&#8217; because the &#8216;PRIMARY&#8217; filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.</p>
<p>But this may well be due to the face that I removed the truncate_only line in bods solution as that function isn&#8217;t in sql 2012 anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Knights</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-2476</link>
		<dc:creator><![CDATA[Adam Knights]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 22:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-2476</guid>
		<description><![CDATA[Nice work, I think i&#039;ve got everything I need for now to test dmoz data by getting some of it together. Had a few issues with bods bits which I will contact him about (similar to the last commenter).

Did have one issue running your sql script though:

Msg 195, Level 15, State 10, Procedure usp_Import_ImportContentData, Line 41
&#039;TRY_PARSE&#039; is not a recognized built-in function name.

Seemed really odd, especially as Google didnt through up people having similar issues - using sql express 2012 but couldnt see any reason why this wouldnt work.. any thoughts?

I got round it by removing the try_parse but then later the app fell over, presumably due to hitting something that didnt quite look like a date - so would be good to work this out to move forward.]]></description>
		<content:encoded><![CDATA[<p>Nice work, I think i&#8217;ve got everything I need for now to test dmoz data by getting some of it together. Had a few issues with bods bits which I will contact him about (similar to the last commenter).</p>
<p>Did have one issue running your sql script though:</p>
<p>Msg 195, Level 15, State 10, Procedure usp_Import_ImportContentData, Line 41<br />
&#8216;TRY_PARSE&#8217; is not a recognized built-in function name.</p>
<p>Seemed really odd, especially as Google didnt through up people having similar issues &#8211; using sql express 2012 but couldnt see any reason why this wouldnt work.. any thoughts?</p>
<p>I got round it by removing the try_parse but then later the app fell over, presumably due to hitting something that didnt quite look like a date &#8211; so would be good to work this out to move forward.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-1857</link>
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 09 May 2013 09:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-1857</guid>
		<description><![CDATA[Hey Jon,

Thats pretty strange.

Technically the app should have called the database procedure: &lt;b&gt;[dbo].[usp_Import_ImportContentData]&lt;/b&gt; in order to move data from the staging tables to live. You could try running that stored procedure manually instead?

Let me know if running the SP causes any issues!

Cheers
/&gt;L]]></description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>Thats pretty strange.</p>
<p>Technically the app should have called the database procedure: <b>[dbo].[usp_Import_ImportContentData]</b> in order to move data from the staging tables to live. You could try running that stored procedure manually instead?</p>
<p>Let me know if running the SP causes any issues!</p>
<p>Cheers<br />
/>L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-1856</link>
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Thu, 09 May 2013 02:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-1856</guid>
		<description><![CDATA[It looks like the content importer worked most the way, but it looks like a procedure to move tmp data to final tables wasn&#039;t performed. The two tmp tables have data (TmpExternalPage and TmpTopic), but the ExternalPage and ExternalPageToCategory tables are empty :(

At least the data is basically there, so I should be able to consume that for my test project.

I don&#039;t recall seeing an error along the way, so cannot provide any info on that...]]></description>
		<content:encoded><![CDATA[<p>It looks like the content importer worked most the way, but it looks like a procedure to move tmp data to final tables wasn&#8217;t performed. The two tmp tables have data (TmpExternalPage and TmpTopic), but the ExternalPage and ExternalPageToCategory tables are empty <img src="http://thinknook.com/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="wp-smiley" /></p>
<p>At least the data is basically there, so I should be able to consume that for my test project.</p>
<p>I don&#8217;t recall seeing an error along the way, so cannot provide any info on that&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-1853</link>
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 May 2013 08:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-1853</guid>
		<description><![CDATA[Hey Jon,

Thanks, glad someone is using the DMOZ Content Importer to be honest :)

I haven&#039;t looked at &lt;strong&gt;bodzebod&lt;/strong&gt; code for a while now, but I seem to remember running into the same issue regarding file path. I think the file path location is actually taken from the Settings.settings file (in the Properties folder of the DMOZ_Importer project), rather than from the App.Config file.

Regarding the error you received, am not entirely sure how that came about, there is no table in the database, only the view... you can either email bodzebod about it or (I would) ignore it unless something is broken :). The view looks like this (just incase you need to rebuild it).

SELECT     
	dbo.Category.id, dbo.Category.idLabel, 
	dbo.Category.parentId, dbo.LocalizedName.name AS LocalizedName, 
	dbo.LocalizedName.idLanguage, dbo.Language.name AS LanguageName
FROM dbo.Category INNER JOIN
	dbo.LocalizedName ON dbo.Category.idLabel = dbo.LocalizedName.id INNER JOIN
	dbo.Language ON dbo.LocalizedName.idLanguage = dbo.Language.id


I hope the content program runs ok, as I mentioned I still haven&#039;t fixed the issue with the character encoding, but if you do please do not hesitate to post the solution up here or on bodzebod&#039;s Codeplex page.

Cheers!
/&gt;L]]></description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>Thanks, glad someone is using the DMOZ Content Importer to be honest <img src="http://thinknook.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>I haven&#8217;t looked at <strong>bodzebod</strong> code for a while now, but I seem to remember running into the same issue regarding file path. I think the file path location is actually taken from the Settings.settings file (in the Properties folder of the DMOZ_Importer project), rather than from the App.Config file.</p>
<p>Regarding the error you received, am not entirely sure how that came about, there is no table in the database, only the view&#8230; you can either email bodzebod about it or (I would) ignore it unless something is broken :). The view looks like this (just incase you need to rebuild it).</p>
<p>SELECT<br />
	dbo.Category.id, dbo.Category.idLabel,<br />
	dbo.Category.parentId, dbo.LocalizedName.name AS LocalizedName,<br />
	dbo.LocalizedName.idLanguage, dbo.Language.name AS LanguageName<br />
FROM dbo.Category INNER JOIN<br />
	dbo.LocalizedName ON dbo.Category.idLabel = dbo.LocalizedName.id INNER JOIN<br />
	dbo.Language ON dbo.LocalizedName.idLanguage = dbo.Language.id</p>
<p>I hope the content program runs ok, as I mentioned I still haven&#8217;t fixed the issue with the character encoding, but if you do please do not hesitate to post the solution up here or on bodzebod&#8217;s Codeplex page.</p>
<p>Cheers!<br />
/>L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://thinknook.com/import-dmoz-content-through-c-to-sql-server-2012-09-24/#comment-1850</link>
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Mon, 06 May 2013 06:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=718#comment-1850</guid>
		<description><![CDATA[Thanks for putting this together. By any chance, were you able to run the structure program without issue? I had a couple issues. First, it seems the path&#039;s are hard-coded in the program, because updating the config file with my path didn&#039;t do anything. I actually had to mount a H:\ drive in order to run it.

Second, at the end of the structure program, I was hit with this error:

Ouch! an error : System.Data.SqlClient.SqlException: Table &#039;CategoryWithLocalize
dName&#039; does not exist.

This table doesn&#039;t exist, only the view does. It seems the data imported fine, but I&#039;m not sure yet as I haven&#039;t had a chance to validate. Did you have any of these problems?

BTW - I&#039;m running your content program now. So far, so good. I&#039;ll post back if I run into any issues.

Thanks again.]]></description>
		<content:encoded><![CDATA[<p>Thanks for putting this together. By any chance, were you able to run the structure program without issue? I had a couple issues. First, it seems the path&#8217;s are hard-coded in the program, because updating the config file with my path didn&#8217;t do anything. I actually had to mount a H:\ drive in order to run it.</p>
<p>Second, at the end of the structure program, I was hit with this error:</p>
<p>Ouch! an error : System.Data.SqlClient.SqlException: Table &#8216;CategoryWithLocalize<br />
dName&#8217; does not exist.</p>
<p>This table doesn&#8217;t exist, only the view does. It seems the data imported fine, but I&#8217;m not sure yet as I haven&#8217;t had a chance to validate. Did you have any of these problems?</p>
<p>BTW &#8211; I&#8217;m running your content program now. So far, so good. I&#8217;ll post back if I run into any issues.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/


Served from: thinknook.com @ 2026-05-05 03:33:42 by W3 Total Cache
-->