<?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>Adventures in Development &#187; Uncategorized</title>
	<atom:link href="http://bitsoftconsulting.com/wordpress/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://bitsoftconsulting.com/wordpress</link>
	<description>Babak&#039;s experiences in software development</description>
	<lastBuildDate>Tue, 31 Aug 2010 23:00:35 +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>Subversion Repository Crash</title>
		<link>http://bitsoftconsulting.com/wordpress/2010/08/subversion-repository-crash/</link>
		<comments>http://bitsoftconsulting.com/wordpress/2010/08/subversion-repository-crash/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 20:06:35 +0000</pubDate>
		<dc:creator>Babak Naffas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://bitsoftconsulting.com/wordpress/?p=220</guid>
		<description><![CDATA[svnadmin dump d:\SVNRepositories\ SVN-fs-dump-format-version: 2 UUID: 21a194ee-da73-c443-af0d-4b52d073379e Revision-number: 0 Prop-content-length: 56 Content-length: 56 K 8 svn:date V 27 2008-06-26T00:04:33.388345Z PROPS-END * Dumped revision 0. Revision-number: 1 Prop-content-length: 97 Content-length: 97 K 7 svn:log V 23 Created folder remotely K 8 svn:date V 27 2008-06-26T00:06:05.949068Z PROPS-END svnadmin: Berkeley DB error for filesystem 'd:/SVNRepositories//db' while moving cursor: [...]]]></description>
			<content:encoded><![CDATA[<p>svnadmin dump d:\SVNRepositories\<repository Folder></p>
<p>SVN-fs-dump-format-version: 2</p>
<p>UUID: 21a194ee-da73-c443-af0d-4b52d073379e</p>
<p>Revision-number: 0<br />
Prop-content-length: 56<br />
Content-length: 56</p>
<p>K 8<br />
svn:date<br />
V 27<br />
2008-06-26T00:04:33.388345Z<br />
PROPS-END</p>
<p>* Dumped revision 0.<br />
Revision-number: 1<br />
Prop-content-length: 97<br />
Content-length: 97</p>
<p>K 7<br />
svn:log<br />
V 23<br />
Created folder remotely<br />
K 8<br />
svn:date<br />
V 27<br />
2008-06-26T00:06:05.949068Z<br />
PROPS-END</p>
<p>svnadmin: Berkeley DB error for filesystem 'd:/SVNRepositories/</repository><repository Folder>/db' while moving cursor:<br />
DB_RUNRECOVERY: Fatal error, run database recovery<br />
svnadmin: bdb: page 0: illegal page type or format<br />
svnadmin: bdb: PANIC: Invalid argument<br />
svnadmin: bdb: PANIC: fatal region error detected; run recovery</p>
<p>Any ideas as to how to resolve this are welcome.</repository></p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbitsoftconsulting.com%2Fwordpress%2F2010%2F08%2Fsubversion-repository-crash%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:80px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://bitsoftconsulting.com/wordpress/2010/08/subversion-repository-crash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enterprise Library Data Access Application Block + SQL Optional Parameters</title>
		<link>http://bitsoftconsulting.com/wordpress/2010/05/enterprise-library-data-access-application-block-sql-optional-parameters/</link>
		<comments>http://bitsoftconsulting.com/wordpress/2010/05/enterprise-library-data-access-application-block-sql-optional-parameters/#comments</comments>
		<pubDate>Mon, 03 May 2010 22:49:31 +0000</pubDate>
		<dc:creator>Babak Naffas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ado.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Enterprise Library]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://bitsoftconsulting.com/wordpress/?p=202</guid>
		<description><![CDATA[The Enterprise Library Data Access Block provides a number of ways of calling a stored procedure. Database _db = DatabaseFactory.CreateDatabase(&#60;Connection String Name&#62;); Let's now assume that we have a stored procedure usp_MyStoredProc that takes a single parameter @param1. If this is a require parameter, both of the following statement blocks will result in the same [...]]]></description>
			<content:encoded><![CDATA[<p>The Enterprise Library Data Access Block provides a number of ways of calling a stored procedure.</p>
<p class="code">Database _db = DatabaseFactory.CreateDatabase(&lt;Connection String Name&gt;);</p>
<p>Let's now assume that we have a stored procedure <strong>usp_MyStoredProc</strong> that takes a single parameter <strong>@param1</strong>. If this is a require parameter, both of the following statement blocks will result in the same outcome:</p>
<p class="code">public DataSet CallMyStoredProc( int value ){<br />
return _db.ExecuteDataSet( "usp_MyStoredProc", value )<br />
}</p>
<p class="code">public DataSet CallMyStoredProc( int value ){<br />
DbCommand command = _db.GetStoredProcCommand("usp_MyStoredProc" );<br />
_db.AddInParameter( command, "param1", value );<br />
return _db.ExecuteDataSet( command );<br />
}</p>
<p>However, now let's assume that <strong>@param1</strong> is an optional parameter that we don't want to pass in from our data access method, we are limited in our options.</p>
<p class="code">public DataSet CallMyStoredProc(){<br />
return _db.ExecuteDataSet( "usp_MyStoredProc")<br />
}</p>
<p>This method will fail with an exception because the parameters provided to the stored procedure (none) don't match the parameter count for the stored procedure (1).</p>
<p>Creating an actual DbCommand and executing it, however, will not cause an exception. In this scenario, the following code block will work without causing an exception:</p>
<p class="code">public DataSet CallMyStoredProc( int value ){<br />
DbCommand command = _db.GetStoredProcCommand("usp_MyStoredProc" );<br />
return _db.ExecuteDataSet( command );<br />
}</p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbitsoftconsulting.com%2Fwordpress%2F2010%2F05%2Fenterprise-library-data-access-application-block-sql-optional-parameters%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:80px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://bitsoftconsulting.com/wordpress/2010/05/enterprise-library-data-access-application-block-sql-optional-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performance and Load Testing with WebLoad</title>
		<link>http://bitsoftconsulting.com/wordpress/2009/10/performance-and-load-testing-with-webload/</link>
		<comments>http://bitsoftconsulting.com/wordpress/2009/10/performance-and-load-testing-with-webload/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 02:30:32 +0000</pubDate>
		<dc:creator>Babak Naffas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[perfmon]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[webload]]></category>

		<guid isPermaLink="false">http://bitsoftconsulting.com/wordpress/?p=18</guid>
		<description><![CDATA[Recently, I had to perform a load test on our new project. We are using WebLoad to test the performance at different levels of load to see how it holds up. While WebLoad offers its own set of analytics, I am also using perfmon to see how each tier is performing under the stress. I originally planned [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had to perform a load test on our new project. We are using WebLoad to test the performance at different levels of load to see how it holds up. While WebLoad offers its own set of analytics, I am also using perfmon to see how each tier is performing under the stress.</p>
<p>I originally planned on using WebLoad 8.4 for the performance testing but have decided to stick with version 8.1. The free license for 8.4 limits you to 10 virtual users (the load size) where as V8.1 does not have any limitation.</p>
<p>WebLoad 8.1 can be downloaded <a title="WebLoad 8.1" href="http://sourceforge.net/projects/webload/files/" target="_blank">here</a>.</p>
<h3>Perfmon Counters</h3>
<p>The following counters will give the most pertinent results.<br />
<strong>ASP.NET</strong></p>
<ul>
<li>Requests Queued</li>
<li>Requests Current</li>
<li>Request Execution Time (lower is better)</li>
<li>Request Wait Time (lower is better)</li>
<li>Requests Rejected (lower is better, is best)</li>
</ul>
<p><strong>System</strong></p>
<ul>
<li>Context Switches / sec</li>
</ul>
<p><strong>Memory</strong></p>
<ul>
<li>Pages / sec</li>
<li>Available Bytes</li>
<li>Committed Bytes</li>
</ul>
<p><strong>Processor</strong></p>
<ul>
<li>% Processor Time</li>
<li>Active Server Pages</li>
<li>Request Wait Time</li>
<li>Requests Queued</li>
</ul>
<p><strong>Web Service</strong></p>
<ul>
<li>Current Connections</li>
<li>Bytes Send / sec</li>
<li>Connection Attempts / sec</li>
<li>Current Blocked Async I/O Requests</li>
<li>Current Blocked bandwidth bytes</li>
</ul>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbitsoftconsulting.com%2Fwordpress%2F2009%2F10%2Fperformance-and-load-testing-with-webload%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:80px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://bitsoftconsulting.com/wordpress/2009/10/performance-and-load-testing-with-webload/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
