<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Don't Repeat Yourself</title>
	<atom:link href="http://dontrepeatyourself.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dontrepeatyourself.wordpress.com</link>
	<description>Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.</description>
	<lastBuildDate>Mon, 28 May 2007 15:13:12 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dontrepeatyourself.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e4847b0352d7b0ab91e53d2b47c5f559?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Don't Repeat Yourself</title>
		<link>http://dontrepeatyourself.wordpress.com</link>
	</image>
			<item>
		<title>Relocated blog to www.thechrisoshow.com</title>
		<link>http://dontrepeatyourself.wordpress.com/2007/05/28/relocated-blog/</link>
		<comments>http://dontrepeatyourself.wordpress.com/2007/05/28/relocated-blog/#comments</comments>
		<pubDate>Mon, 28 May 2007 15:06:28 +0000</pubDate>
		<dc:creator>dontrepeatyourself</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dontrepeatyourself.wordpress.com/2007/05/28/relocated-blog/</guid>
		<description><![CDATA[This blog has now been relocated to www.thechrisoshow.com
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=9&subd=dontrepeatyourself&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This blog has now been relocated to <a href="http://www.thechrisoshow.com">www.thechrisoshow.com</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dontrepeatyourself.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dontrepeatyourself.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dontrepeatyourself.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dontrepeatyourself.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dontrepeatyourself.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dontrepeatyourself.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dontrepeatyourself.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dontrepeatyourself.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dontrepeatyourself.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dontrepeatyourself.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dontrepeatyourself.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dontrepeatyourself.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=9&subd=dontrepeatyourself&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dontrepeatyourself.wordpress.com/2007/05/28/relocated-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6df52d66587c2fa8cf9178b20869a843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dontrepeatyourself</media:title>
		</media:content>
	</item>
		<item>
		<title>Batch Insert of Records in .Net</title>
		<link>http://dontrepeatyourself.wordpress.com/2007/05/18/batch-insert-of-records-in-net/</link>
		<comments>http://dontrepeatyourself.wordpress.com/2007/05/18/batch-insert-of-records-in-net/#comments</comments>
		<pubDate>Fri, 18 May 2007 14:07:52 +0000</pubDate>
		<dc:creator>dontrepeatyourself</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://dontrepeatyourself.wordpress.com/2007/05/18/batch-insert-of-records-in-net/</guid>
		<description><![CDATA[So, I&#8217;ve got a DataTable behind the scenes practically packed with data (1000s of rows) &#8211; and I want to insert this into a table on sql server using a stored procedure.
The wrong way:

//The dsSourceDataSet is a populated dataset with1 table with tonnes of rows
foreach (DataRow row in dsSourceDataSet[0].Rows)
{
  SqlCommand command = new SqlCommand("sp_my_proc", [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=6&subd=dontrepeatyourself&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, I&#8217;ve got a DataTable behind the scenes practically <strong>packed</strong> with data (1000s of rows) &#8211; and I want to insert this into a table on sql server using a stored procedure.</p>
<p><strong>The wrong way:</strong></p>
<p><code><br />
//The dsSourceDataSet is a populated dataset with1 table with tonnes of rows<br />
foreach (DataRow row in dsSourceDataSet[0].Rows)<br />
{<br />
  SqlCommand command = new SqlCommand("sp_my_proc", connection)<br />
  command.Parameters.AddWithValue("@param1", row["field1"].Value);<br />
  command.Parameters.AddWithValue("@param2", row["field2"].Value);<br />
  //Yada yada<br />
  command.ExecuteNonQuery();<br />
}<br />
</code><br />
I mean, let&#8217;s face it &#8211; this <em>works</em> so I thought &#8220;Hey, that&#8217;s good enough for me!&#8221;<br />
But man was it sloooow!</p>
<p>Then my boss showed me the CORRECT way of doing things:</p>
<p><strong>The right way:</strong><br />
<code><br />
  SqlCommand command = new SqlCommand("sp_my_proc", oConnSource);<br />
  SqlDataAdapter dataAdapter = new SqlDataAdapter(command);<br />
  SqlParameter param1 = dataAdapter.InsertCommand.Parameters.Add("@param1", SqlDbType.VarChar);<br />
  param1 .SourceColumn = "field1";<br />
  param1 .SourceVersion = DataRowVersion.Original;<br />
  dataAdapter.Update(dsSourceDataSet);<br />
</code></p>
<p>So what&#8217;s happening?  Instead of looping through the table like a crazy gooloot &#8211; everything gets crammed into the dataset and fired off to the database!</p>
<p>And it is SOOO much faster!  This process took a little over an hour before, now it takes a few minutes!</p>
<p>Hooray!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dontrepeatyourself.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dontrepeatyourself.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dontrepeatyourself.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dontrepeatyourself.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dontrepeatyourself.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dontrepeatyourself.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dontrepeatyourself.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dontrepeatyourself.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dontrepeatyourself.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dontrepeatyourself.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dontrepeatyourself.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dontrepeatyourself.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=6&subd=dontrepeatyourself&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dontrepeatyourself.wordpress.com/2007/05/18/batch-insert-of-records-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6df52d66587c2fa8cf9178b20869a843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dontrepeatyourself</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatically load the Asp.net Web Server</title>
		<link>http://dontrepeatyourself.wordpress.com/2007/05/15/automatically-load-the-aspnet-web-server/</link>
		<comments>http://dontrepeatyourself.wordpress.com/2007/05/15/automatically-load-the-aspnet-web-server/#comments</comments>
		<pubDate>Tue, 15 May 2007 09:09:19 +0000</pubDate>
		<dc:creator>dontrepeatyourself</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://dontrepeatyourself.wordpress.com/2007/05/15/automatically-load-the-aspnet-web-server/</guid>
		<description><![CDATA[When I&#8217;m debugging my Asp.net applications, I find myself just wanting a quick and easy way of starting the asp.net web server.  You can do this from the command line like this:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.exe" /path:[PATH OF YOUR WEB APP] /port:[WEB PORT]  /vpath:[/mywebapp]
You can also use the funky explorer plug-in designed by Robert McClaws here.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=5&subd=dontrepeatyourself&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I&#8217;m debugging my Asp.net applications, I find myself just wanting a quick and easy way of starting the asp.net web server.  You can do this from the command line like this:</p>
<p><code>"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.exe" /path:[PATH OF YOUR WEB APP] /port:[WEB PORT]  /vpath:[/mywebapp]</code></p>
<p>You can also use the funky explorer plug-in designed by Robert McClaws <a href="http://weblogs.asp.net/rmclaws/archive/2005/10/25/428422.aspx">here</a>.  This lets you run the webserver just by right clicking on a folder path.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dontrepeatyourself.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dontrepeatyourself.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dontrepeatyourself.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dontrepeatyourself.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dontrepeatyourself.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dontrepeatyourself.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dontrepeatyourself.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dontrepeatyourself.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dontrepeatyourself.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dontrepeatyourself.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dontrepeatyourself.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dontrepeatyourself.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=5&subd=dontrepeatyourself&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dontrepeatyourself.wordpress.com/2007/05/15/automatically-load-the-aspnet-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6df52d66587c2fa8cf9178b20869a843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dontrepeatyourself</media:title>
		</media:content>
	</item>
		<item>
		<title>Zlib:BufError</title>
		<link>http://dontrepeatyourself.wordpress.com/2007/05/14/zlibbuferror/</link>
		<comments>http://dontrepeatyourself.wordpress.com/2007/05/14/zlibbuferror/#comments</comments>
		<pubDate>Mon, 14 May 2007 20:15:21 +0000</pubDate>
		<dc:creator>dontrepeatyourself</dc:creator>
				<category><![CDATA[Error Messages]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://dontrepeatyourself.wordpress.com/2007/05/14/zlibbuferror/</guid>
		<description><![CDATA[So, I started installing Capistrano yesterday using:
gems install capistrano
Annoyingly, the net-ssh dependency failed with the hideous error message:
ERROR: While executing gem … (Zlib::BufError) buffer error
This seems to only happen on windows &#8211; and there doesn&#8217;t  seem to be any documentation on how to fix this.
Thankfully, you can fix this problem by upgrading your RubyGems [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=3&subd=dontrepeatyourself&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, I started installing Capistrano yesterday using:</p>
<p><code>gems install capistrano</code></p>
<p>Annoyingly, the net-ssh dependency failed with the hideous error message:<br />
<code><font size="-1"><strong>ERROR</strong>: While executing gem … (Zlib::BufError) <strong>buffer error</strong></font></code></p>
<p>This seems to only happen on windows &#8211; and there doesn&#8217;t  seem to be any documentation on how to fix this.</p>
<p>Thankfully, you can fix this problem by upgrading your RubyGems install using</p>
<p><code>gem update --system</code></p>
<p>I then installed Capistrano with no probs!<br />
<span class="left"><img src="http://dontrepeatyourself.files.wordpress.com/2007/05/liquid-a.thumbnail.jpg" alt="white out" /></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dontrepeatyourself.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dontrepeatyourself.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dontrepeatyourself.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dontrepeatyourself.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dontrepeatyourself.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dontrepeatyourself.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dontrepeatyourself.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dontrepeatyourself.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dontrepeatyourself.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dontrepeatyourself.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dontrepeatyourself.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dontrepeatyourself.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dontrepeatyourself.wordpress.com&blog=1098757&post=3&subd=dontrepeatyourself&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dontrepeatyourself.wordpress.com/2007/05/14/zlibbuferror/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6df52d66587c2fa8cf9178b20869a843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dontrepeatyourself</media:title>
		</media:content>

		<media:content url="http://dontrepeatyourself.files.wordpress.com/2007/05/liquid-a.thumbnail.jpg" medium="image">
			<media:title type="html">white out</media:title>
		</media:content>
	</item>
	</channel>
</rss>