<?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: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>public class ben:harrell</title>
	<atom:link href="http://benharrell.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://benharrell.wordpress.com</link>
	<description>[developing developers]</description>
	<lastBuildDate>Tue, 30 Dec 2008 20:28:11 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='benharrell.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9be0a4251f8038aabd11fd47dd2da50c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>public class ben:harrell</title>
		<link>http://benharrell.wordpress.com</link>
	</image>
			<item>
		<title>Beware of the &#8220;middleman&#8221;</title>
		<link>http://benharrell.wordpress.com/2008/12/30/beware-of-the-middleman/</link>
		<comments>http://benharrell.wordpress.com/2008/12/30/beware-of-the-middleman/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:28:11 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[consulting]]></category>
		<category><![CDATA[vendor]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/?p=39</guid>
		<description><![CDATA[I&#8217;ve consulted for many years and usually had good success going through recruiters, third parties, etc.  They normally provide a valuable service of &#8220;buffering&#8221; your corporate consulting pay essentially allowing you to get paid more frequently and also allowing a large company (such as an investment bank) to contract to several smaller corporations without dealing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=39&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve consulted for many years and usually had good success going through recruiters, third parties, etc.  They normally provide a valuable service of &#8220;buffering&#8221; your corporate consulting pay essentially allowing you to get paid more frequently and also allowing a large company (such as an investment bank) to contract to several smaller corporations without dealing with each individually.  My warning comes from this relationship and the leverage that such a large entity has with both parties once they&#8217;ve established&#8230;errr entrenched themselves into the system.  Whenever the middleman has too much leverage he can actually screw both parties and squeeze out all sorts of profits through junk fees, delay of payment (to gain interest on the float), fee increases, etc.  Not only is it a complete scam that I wait on average 45 days to get paid for my work, this &#8220;middleman&#8221; now wants $2.50 out of every $100 I make!  We call that taxation where I come from and my only choice is to walk away but wait&#8230;that can&#8217;t be done because my &#8220;employer&#8221; only works with this 1 company so I&#8217;m forced to bendover and accept this increase.  Just remember this question when you get it:  Do you have a preferred vendor?  My new answer is NOT ZEROCHAOS&#8230;please let me know if any of you have had similar issues or if I&#8217;m way off base.</p>
<p>The following is an email from my &#8220;middleman&#8221;, ZeroChaos (can&#8217;t you just hear the sarcasm in the email?):</p>
<blockquote>
<p style="text-align:left;"><em><em><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;font-style:normal;">Dear <strong>Valued Partner</strong>-</span></span></em></em><span style="font-family:a;"></span></p>
<p style="text-align:left;"><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;"> </span></span><em><em><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;font-style:normal;">Pursuant to the attached notification, the ZeroChaos administrative fee for all placements made at &#8220;Feral Wench&#8221; is now 2.50% for each billable hour. Continuing to provide Services on any ZeroChaos assignment at </span></span></em></em><em><em><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;font-style:normal;">&#8220;Feral Wench&#8221;</span></span></em></em><em><em><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;font-style:normal;"> after December 19, 2008 will indicate Supplier’s acceptance of these terms. All invoiced time worked after 12/19/2008 will incur this updated administrative fee. Please direct any questions to the Workforce Support Services Team at 877-937-6242 Option 1 or <a title="mailto:service@zerochaos.com" href="mailto:service@zerochaos.com" target="_blank">service@zerochaos.com</a>.</span></span></em></em><em><em><span style="font-family:Times New Roman;"></span></em></em></p>
<p style="text-align:left;"><em><em><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;font-style:normal;"><strong>Best regards</strong>,</span></span></em></em></p>
<p style="text-align:left;"><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;">ZeroChaos Workforce Support Services</span></span></p>
</blockquote>
<p style="text-align:left;"><span style="font-family:a;font-size:small;"><span style="font-size:12pt;font-family:a;"><br />
</span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=39&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2008/12/30/beware-of-the-middleman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>PSConfig.exe Beware!</title>
		<link>http://benharrell.wordpress.com/2008/08/14/psconfigexe-beware/</link>
		<comments>http://benharrell.wordpress.com/2008/08/14/psconfigexe-beware/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 02:09:44 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[tfs 2008 wss 3.0 psconfig bug]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/?p=37</guid>
		<description><![CDATA[I&#8217;m at the end of a 2 day TFS 2008 install marathon (yes, the one with the &#8220;fixed&#8221; installer) and I needed to move my WSS 3.0 config database (wss_config) to a new database which requires essentially creating a new wss_config database with the proper settings and I found an article about using PSConfig.exe to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=37&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m at the end of a 2 day TFS 2008 install marathon (yes, the one with the &#8220;fixed&#8221; installer) and I needed to move my WSS 3.0 config database (wss_config) to a new database which requires essentially creating a new wss_config database with the proper settings and I found an article about using PSConfig.exe to create/configure everything magically for you.  Now remember this is a Microsoft tool, recommended in MSDN and installed by WSS 3.0 so of course I trust that it does what it says.  Well, let me just say this</p>
<p>NEVER, EVER, EVER, EVER use this tool!</p>
<p>I ran it with the configdb command -create and oh yes I got my shiny new database but in the process it deleted my ENTIRE wwwroot folder.  I have no idea how or why but something is REALLY wrong deep down in this code.  If you wrote this code PLEASE feel free to contact me to discuss and I will gladly retract my statements but in the meantime save yourself the trouble.  I think STSAdm.exe might still do the job or perhaps you can do it from the Admin screens (not sure) but avoid this tool</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=37&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2008/08/14/psconfigexe-beware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>SSIS Custom Source Component for EBCDIC</title>
		<link>http://benharrell.wordpress.com/2008/06/08/ssis-custom-source-component-for-ebcdic/</link>
		<comments>http://benharrell.wordpress.com/2008/06/08/ssis-custom-source-component-for-ebcdic/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 17:27:22 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[Integration Servicees]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SSIS EBCDIC Source Component Integration Services Packe]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/?p=36</guid>
		<description><![CDATA[Well, it&#8217;s finally done!  Patrick and I finished version 1 of the EBCDIC Source Component which aids tremendously in the importing of EBCDIC (mainframe, IBM, old school stuff) data into SQL Server Integration Services.  We think this component will allow a number of shops to focus on getting the data right in their ETL solution [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=36&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well, it&#8217;s finally done!  Patrick and I finished version 1 of the EBCDIC Source Component which aids tremendously in the importing of EBCDIC (mainframe, IBM, old school stuff) data into SQL Server Integration Services.  We think this component will allow a number of shops to focus on getting the data right in their ETL solution within Integration Services rather than beating their head against an older data format that doesn&#8217;t always play well with others.</p>
<p>This component, named Lysine, works like most other Sources in SSIS so it should be easy to get started.  Currently, the component has the following features:</p>
<ul>
<li> Several EBCDIC code pages supported</li>
<li>Intuitive Layout UI for rapid  development</li>
<li>Quick Preview to show you if your layout is correct</li>
<li>All major column types supported Redefines, Occurs, Occurs Depending, Packed (Comp-3), Zoned</li>
<li>Single Pass conversion for scalable performance</li>
<li>Export/Import of layout for team development</li>
</ul>
<p>Please come check out the <a href="http://www.aminosoftware.com/lysine/download/">demo</a>, browse the <a href="http://www.aminosoftware.com/lysine/">User Guide</a>, try some <a href="http://www.aminosoftware.com/lysine/download/">Samples</a> and let us know what <a href="http://www.aminosoftware.com/support/">you think</a>!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=36&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2008/06/08/ssis-custom-source-component-for-ebcdic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>SSIS Custom Component &#8211; ProvideComponentProperties vs ReInitializeMetadata</title>
		<link>http://benharrell.wordpress.com/2007/09/18/ssis-custom-component-providecomponentproperties-vs-reinitializemetadata/</link>
		<comments>http://benharrell.wordpress.com/2007/09/18/ssis-custom-component-providecomponentproperties-vs-reinitializemetadata/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 14:47:38 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Custom Source Component]]></category>
		<category><![CDATA[Integration Servicees]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2007/09/18/ssis-custom-component-providecomponentproperties-vs-reinitializemetadata/</guid>
		<description><![CDATA[&#160;
I am currently working on a custom source component in SSIS that converts EBCDIC data to ASCII inline and one of the challenges I face is creating dynamic outputs and output columns based on the layout process of the source component.  Normally, when you want to additional outputs on your component you create them in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=30&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="margin:0;" class="MsoPlainText">&nbsp;</p>
<p style="margin:0;" class="MsoPlainText"><font face="Consolas">I am currently working on a custom source component in SSIS that converts EBCDIC data to ASCII inline and one of the challenges I face is creating dynamic outputs and output columns based on the layout process of the source component.  Normally, when you want to additional outputs on your component you create them in by override ProvideComponentProperties like this:</font></p>
<blockquote>
<blockquote><address>public override void <strong>ProvideComponentProperties</strong>()</address>
<address>{</address>
<address>    // add the outputComponentMetaData.UsesDispositions = true;</address>
<address>   IDTSOutput90 output =     ComponentMetaData.OutputCollection.New();</address>
<address>   output.Name = &#8220;My New Output&#8221;;</address>
<address>   output.ExternalMetadataColumnCollection.IsUsed = true;</address>
<address>} </address>
</blockquote>
</blockquote>
<p><font face="Consolas">This works really well if all of your output information is available at design time (in the SSIS ui) but what happens if your dynamic outputs are determined at runtime?  ProvideComponentProperties is only called one time, when the component is added to designer surface.  In order to dynamically add outputs at a later point you must use ReInitializeMetaData which is called whenever Validate returns VS_NEEDSNEWMETADATA.</font></p>
<blockquote>
<blockquote><address>public override void <strong>ReinitializeMetaData</strong>()</address>
<address>{</address>
<address>   // add the output</address>
<address>   ComponentMetaData.UsesDispositions = true;</address>
<address>   IDTSOutput90 output = ComponentMetaData.OutputCollection.New();</address>
<address>   output.Name = &#8220;My New Output&#8221;;</address>
<address>   output.ExternalMetadataColumnCollection.IsUsed = true;</address>
<address> }</address>
<pre> </pre>
</blockquote>
<p><font face="Consolas">Note that I have not shown the additional work of adding columns to either of these scenarios, you will need to add that code yourself. </font></p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=30&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2007/09/18/ssis-custom-component-providecomponentproperties-vs-reinitializemetadata/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>SSIS Row Limits and DefaultBufferMaxRows (Part 2)</title>
		<link>http://benharrell.wordpress.com/2007/07/14/ssis-row-limits-and-defaultbuffermaxrows-part-2/</link>
		<comments>http://benharrell.wordpress.com/2007/07/14/ssis-row-limits-and-defaultbuffermaxrows-part-2/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 15:44:34 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Custom Source Component]]></category>
		<category><![CDATA[Integration Servicees]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2007/07/14/ssis-row-limits-and-defaultbuffermaxrows-part-2/</guid>
		<description><![CDATA[I believe the mystery is solved and I&#8217;m sad to say that (as usual) it was something silly but crucial.  In a custom source component you must create a new PipelineBuffer in order to write your rows out.  SSIS has provided a way for us to let the engine know when we are done adding [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=27&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I believe the mystery is solved and I&#8217;m sad to say that (as usual) it was something silly but crucial.  In a custom source component you must create a new PipelineBuffer in order to write your rows out.  SSIS has provided a way for us to let the engine know when we are done adding rows with a simple method &#8220;SetEndOfRowset&#8221;.  The name says it all and even the MSDN documentation is clear that you must call this.  In addition, your error logs if you don&#8217;t call this method will say something like:</p>
<p>The PrimeOutput method on &lt;your component&gt; returned success, but did not report an end of the rowset. </p>
<p> You would think that this error message would be enough to warn any developer that they were missing a key line of code but sadly that wasn&#8217;t the case.  In my case I had actually allocated 2 buffers, 1 for data rows and 1 for error rows.  I set a breakpoint on my SetEndOfRowset call and watched it execute so I just knew this wasn&#8217;t my problem.  But I forgot the second buffer!  So just a note to all you brave souls commanding bits on the SSIS battlefield.  Call SetEndOfRowset for EACH buffer you allocate. Good Luck! </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=27&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2007/07/14/ssis-row-limits-and-defaultbuffermaxrows-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>SSIS Row Limits and DefaultBufferMaxRows</title>
		<link>http://benharrell.wordpress.com/2007/07/10/ssis-row-limits-and-defaultbuffermaxrows/</link>
		<comments>http://benharrell.wordpress.com/2007/07/10/ssis-row-limits-and-defaultbuffermaxrows/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 02:51:58 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Integration Servicees]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2007/07/10/ssis-row-limits-and-defaultbuffermaxrows/</guid>
		<description><![CDATA[I had an odd issue during some testing I was doing on a custom source component I&#8217;m writing for EBCDIC data conversion.  I first assumed that surely my code was at fault but the test just seemed to simple to be &#8220;my code&#8221;.  So here&#8217;s the scenario,  I have a file with 100,000 bytes of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=26&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I had an odd issue during some testing I was doing on a custom source component I&#8217;m writing for EBCDIC data conversion.  I first assumed that surely my code was at fault but the test just seemed to simple to be &#8220;my code&#8221;.  So here&#8217;s the scenario,  I have a file with 100,000 bytes of the number &#8216;1&#8242; in EBCDIC.  I created a simple package to import the file as 1 byte rows into a Dataset Destination.  I was surprised when I executed the package and found that only 65,536 rows were processed.  Now if you have been around software for more than a week you probably recognize this magic number and unfortunately it triggers all sorts of theories about what could possibly be going wrong.  Well, I&#8217;m still trying to investigate the &#8220;why&#8221; and I&#8217;ll update this post and welcome comments if anyone has input but for now the solution to this oddity is to increase the DefaultBufferMaxRows to greater than your number of records.  This seems like a horrible workaround for a situation that should happen quite often so the hunt continues&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=26&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2007/07/10/ssis-row-limits-and-defaultbuffermaxrows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>UPDATE: Cannot open user default database. Login failed. Login failed for user ‘UserName’. (Microsoft SQL Server, Error: 4064)</title>
		<link>http://benharrell.wordpress.com/2007/06/18/update-cannot-open-user-default-database-login-failed-login-failed-for-user-%e2%80%98username%e2%80%99-microsoft-sql-server-error-4064/</link>
		<comments>http://benharrell.wordpress.com/2007/06/18/update-cannot-open-user-default-database-login-failed-login-failed-for-user-%e2%80%98username%e2%80%99-microsoft-sql-server-error-4064/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 15:24:42 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dba]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2007/06/18/update-cannot-open-user-default-database-login-failed-login-failed-for-user-%e2%80%98username%e2%80%99-microsoft-sql-server-error-4064/</guid>
		<description><![CDATA[ Thanks to Fritz Laurel for adding this in the comments section, after you gain access you may need to run this script to store the new default database for the Login you used.
ALTER LOGIN loginid
WITH DEFAULT_DATABASE = master
GO
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=25&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> Thanks to Fritz Laurel for adding this in the comments section, after you gain access you may need to run this script to store the new default database for the Login you used.</p>
<blockquote><p>ALTER LOGIN loginid<br />
WITH DEFAULT_DATABASE = master<br />
GO</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=25&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2007/06/18/update-cannot-open-user-default-database-login-failed-login-failed-for-user-%e2%80%98username%e2%80%99-microsoft-sql-server-error-4064/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>Reporting Services 2005 Rotation and Orientation</title>
		<link>http://benharrell.wordpress.com/2007/03/01/reporting-services-2005-rotation-and-orientation/</link>
		<comments>http://benharrell.wordpress.com/2007/03/01/reporting-services-2005-rotation-and-orientation/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 21:54:52 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Reporting Services 2005]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2007/03/01/reporting-services-2005-rotation-and-orientation/</guid>
		<description><![CDATA[As many of you might have figured out by now Reporting Services 2005 doesn&#8217;t support rotating objects or multiple orientation (as in per sub report).  Depending on your situation there might still be an answer.  I was in a situation recently where I need certain pages of a report in landscape and some in portrait.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=24&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As many of you might have figured out by now Reporting Services 2005 doesn&#8217;t support rotating objects or multiple orientation (as in per sub report).  Depending on your situation there might still be an answer.  I was in a situation recently where I need certain pages of a report in landscape and some in portrait.  I was told that this is not possible out of the box in Reporting Services 2005 but have since found a workaround that might work for you.  Microsoft has done a great job with making SSRS an open architecture and the web services are a key part of this approach.  Behind the scenes of your Report Viewer control (in &#8220;remote&#8221; mode) it is actually making a request to the Render command of the SSRS Web Service.  So to pull of the rotation of a report I created a new web page with a web reference to the ReportService.  I then request the report in IMAGE format and store the byte[].  I create a new Bitmap object and stream in the byte[] so that I have full control over my newly created report Image in GDI.NET.  Bitmap supports a RotateFlip method that has just what we need and then I save the Bitmap to the Response.OutputStream object.  You are probably familiar with the concept of pointing an Image to an ASPX page that dynamically generates the bytes of the Image and this solution is no different.  Once you have an ASPX that can generate a rotated Image of the report then you treat it just like any other Image in the Report or on a WebForm.</p>
<p>This solution was adapted from Bryan Kelly&#8217;s post on Programmatically Printing RS 2000 Reports found <strong><a href="http://blogs.msdn.com/bryanke/articles/71491.aspx">HERE</a></strong></p>
<p>The source code for the page is below:</p>
<p> using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Collections;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Web.UI.HtmlControls;<br />
using System.Drawing.Imaging;<br />
using System.Drawing;<br />
using System.Runtime.InteropServices; // For Marshal.Copy<br />
using System.IO;<br />
using System.Web.Services.Protocols;</p>
<p>public partial class ASR_ReportAsImage : System.Web.UI.Page<br />
{<br />
    ReportService.ReportingService rs;<br />
    private byte[][] m_renderedReport;<br />
    private System.Drawing.Graphics.EnumerateMetafileProc m_delegate = null;<br />
    private System.IO.MemoryStream m_currentPageStream;<br />
    private System.Drawing.Imaging.Metafile m_metafile = null;<br />
    int m_numberOfPages;<br />
 <br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
       <br />
        rs = new ReportService.ReportingService();<br />
        rs.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
        PrintReportAsImage();<br />
    }</p>
<p>    public byte[][] RenderReport(string reportPath)<br />
    {<br />
        // Private variables for rendering<br />
        string deviceInfo = null;<br />
        string format = &#8220;IMAGE&#8221;;<br />
        Byte[] firstPage = null;<br />
        string encoding;<br />
        string mimeType;<br />
        ReportService.Warning[] warnings = null;<br />
        ReportService.ParameterValue[] reportHistoryParameters = null;<br />
        string[] streamIDs = null;<br />
        Byte[][] pages = null;</p>
<p>        // Build device info based on the start page<br />
        deviceInfo =<br />
           String.Format(@&#8221;&lt;DeviceInfo&gt;&lt;OutputFormat&gt;{0}&lt;/OutputFormat&gt;&lt;/DeviceInfo&gt;&#8221;, &#8220;emf&#8221;);</p>
<p>        //Exectute the report and get page count.</p>
<p>        // Renders the first page of the report and returns streamIDs for<br />
        // subsequent pages<br />
        firstPage = rs.Render(<br />
           reportPath,<br />
           format,<br />
           null,<br />
           deviceInfo,<br />
           null,<br />
           null,<br />
           null,<br />
           out encoding,<br />
           out mimeType,<br />
           out reportHistoryParameters,<br />
           out warnings,<br />
           out streamIDs);<br />
        // The total number of pages of the report is 1 + the streamIDs        <br />
        m_numberOfPages = streamIDs.Length + 1;<br />
        pages = new Byte[m_numberOfPages][];</p>
<p>        // The first page was already rendered<br />
        pages[0] = firstPage;</p>
<p>        for (int pageIndex = 1; pageIndex &lt; m_numberOfPages; pageIndex++)<br />
        {<br />
            // Build device info based on start page<br />
            deviceInfo =<br />
               String.Format(@&#8221;&lt;DeviceInfo&gt;&lt;OutputFormat&gt;{0}&lt;/OutputFormat&gt;&lt;StartPage&gt;{1}&lt;/StartPage&gt;&lt;/DeviceInfo&gt;&#8221;,<br />
                 &#8220;emf&#8221;, pageIndex + 1);<br />
            pages[pageIndex] = rs.Render(<br />
               reportPath,<br />
               format,<br />
               null,<br />
               deviceInfo,<br />
               null,<br />
               null,<br />
               null,<br />
               out encoding,<br />
               out mimeType,<br />
               out reportHistoryParameters,<br />
               out warnings,<br />
               out streamIDs);<br />
        }</p>
<p>        return pages;<br />
    }</p>
<p>    public bool PrintReportAsImage()<br />
    {<br />
        this.RenderedReport = this.RenderReport(&#8220;/ASR Prototype/ASR_TransactionOverview&#8221;);</p>
<p>        // Wait for the report to completely render.<br />
        if (m_numberOfPages &lt; 1)<br />
            return false;</p>
<p>        for (int i = 0; i &lt; m_renderedReport.Length; i++)<br />
        {<br />
            //write all of the pages to stream&#8230;.</p>
<p>            System.IO.MemoryStream memstream = new System.IO.MemoryStream(m_renderedReport[i], false);<br />
            System.Drawing.Bitmap oBitmap = new System.Drawing.Bitmap(memstream, true);<br />
            //now rotate the bitmap 90 degrees<br />
            oBitmap.RotateFlip(RotateFlipType.Rotate270FlipNone);<br />
            //write it to the output stream<br />
            Response.ContentType = &#8220;image/jpeg&#8221;;<br />
            oBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);</p>
<p>        }<br />
        return true;<br />
    }<br />
 </p>
<p>    // Method to draw the current emf memory stream<br />
    private void ReportDrawPage(Graphics g)<br />
    {<br />
        if (null == m_currentPageStream || 0 == m_currentPageStream.Length || null == m_metafile)<br />
            return;<br />
        lock (this)<br />
        {<br />
            // Set the metafile delegate.<br />
            int width = m_metafile.Width;<br />
            int height = m_metafile.Height;<br />
            m_delegate = new Graphics.EnumerateMetafileProc(MetafileCallback);<br />
            // Draw in the rectangle<br />
            Point destPoint = new Point(0, 0);<br />
            g.EnumerateMetafile(m_metafile, destPoint, m_delegate);<br />
            // Clean up<br />
            m_delegate = null;<br />
        }<br />
    }<br />
    private bool MoveToPage(Int32 page)<br />
    {<br />
        // Check to make sure that the current page exists in<br />
        // the array list<br />
        if (null == this.RenderedReport[m_currentPrintingPage - 1])<br />
            return false;<br />
        // Set current page stream equal to the rendered page<br />
        m_currentPageStream = new MemoryStream(this.RenderedReport[m_currentPrintingPage - 1]);<br />
        // Set its postion to start.<br />
        m_currentPageStream.Position = 0;<br />
        // Initialize the metafile<br />
        if (null != m_metafile)<br />
        {<br />
            m_metafile.Dispose();<br />
            m_metafile = null;<br />
        }<br />
        // Load the metafile image for this page<br />
        m_metafile = new Metafile((Stream)m_currentPageStream);<br />
        return true;<br />
    }<br />
    private bool MetafileCallback(<br />
       EmfPlusRecordType recordType,<br />
       int flags,<br />
       int dataSize,<br />
       IntPtr data,<br />
       PlayRecordCallback callbackData)<br />
    {<br />
        byte[] dataArray = null;<br />
        // Dance around unmanaged code.<br />
        if (data != IntPtr.Zero)<br />
        {<br />
            // Copy the unmanaged record to a managed byte buffer<br />
            // that can be used by PlayRecord.<br />
            dataArray = new byte[dataSize];<br />
            Marshal.Copy(data, dataArray, 0, dataSize);<br />
        }<br />
        // play the record.     <br />
        m_metafile.PlayRecord(recordType, flags, dataSize, dataArray);</p>
<p>        return true;<br />
    }<br />
    public byte[][] RenderedReport<br />
    {<br />
        get<br />
        {<br />
            return m_renderedReport;<br />
        }<br />
        set<br />
        {<br />
            m_renderedReport = value;<br />
        }<br />
    }</p>
<p>}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=24&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2007/03/01/reporting-services-2005-rotation-and-orientation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>Cannot open user default database. Login failed. Login failed for user &#8216;UserName&#8217;. (Microsoft SQL Server, Error: 4064)</title>
		<link>http://benharrell.wordpress.com/2007/01/15/cannot-open-user-default-database-login-failed-login-failed-for-user-username-microsoft-sql-server-error-4064/</link>
		<comments>http://benharrell.wordpress.com/2007/01/15/cannot-open-user-default-database-login-failed-login-failed-for-user-username-microsoft-sql-server-error-4064/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 01:28:22 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2007/01/15/cannot-open-user-default-database-login-failed-login-failed-for-user-username-microsoft-sql-server-error-4064/</guid>
		<description><![CDATA[Cannot open user default database. Login failed. Login failed for user &#8216;UserName&#8217;. (Microsoft SQL Server, Error: 4064)
This error bugged the crap out of me tonight and I saw all kinds of crazy answers usually involving some sort of SQLCMD -blah -blah&#8230;i think this maybe the problem with command line happy developers/dbas but to make a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=23&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Cannot open user default database. Login failed. Login failed for user &#8216;UserName&#8217;. (Microsoft SQL Server, Error: 4064)</strong></p>
<p>This error bugged the crap out of me tonight and I saw all kinds of crazy answers usually involving some sort of SQLCMD -blah -blah&#8230;i think this maybe the problem with command line happy developers/dbas but to make a long story short the fix is EASY and you will kick yourself for not trying this. </p>
<p>1.  click the options button if the options are not showing.</p>
<p>2.  click the connection properties tab if it is not active</p>
<p>3.  click on the Connect to database: dropdown</p>
<p>4.  type in the name of a database that still exists (ex. &#8216;master&#8217;)</p>
<p>5. connect!</p>
<p> I heard all kinds of rants and raves about how atrocious it was that microsoft did this to us and I agree it does suck that SQL Server doesn&#8217;t do something about this automagically but what would you suggest it do?</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=23&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2007/01/15/cannot-open-user-default-database-login-failed-login-failed-for-user-username-microsoft-sql-server-error-4064/feed/</wfw:commentRss>
		<slash:comments>64</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
		<item>
		<title>Object Data Source Gotcha</title>
		<link>http://benharrell.wordpress.com/2006/10/07/object-data-source-gotcha/</link>
		<comments>http://benharrell.wordpress.com/2006/10/07/object-data-source-gotcha/#comments</comments>
		<pubDate>Sun, 08 Oct 2006 03:37:00 +0000</pubDate>
		<dc:creator>benjamin harrell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://benharrell.wordpress.com/2006/10/07/object-data-source-gotcha/</guid>
		<description><![CDATA[So you just created your super cool Business Object and you want to bind some control to it but when you add new data source you can&#8217;t see your object!!!
Not to worry, if you can&#8217;t see your object try this:

cancel out of the dialog
rebuild your project
now re-add the datasource

Not sure how or why but, as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=13&subd=benharrell&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So you just created your super cool Business Object and you want to bind some control to it but when you add new data source you can&#8217;t see your object!!!</p>
<p>Not to worry, if you can&#8217;t see your object try this:</p>
<ol>
<li>cancel out of the dialog</li>
<li>rebuild your project</li>
<li>now re-add the datasource</li>
</ol>
<p>Not sure how or why but, as usual, Visual Studio is caching objects <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/benharrell.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/benharrell.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/benharrell.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/benharrell.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/benharrell.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/benharrell.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/benharrell.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/benharrell.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/benharrell.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/benharrell.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/benharrell.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/benharrell.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=benharrell.wordpress.com&blog=209924&post=13&subd=benharrell&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://benharrell.wordpress.com/2006/10/07/object-data-source-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df537331ff8c4d9aa1fbb7fe1fedbf80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">benjamin harrell</media:title>
		</media:content>
	</item>
	</channel>
</rss>