<?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>sides of march &#187; errors</title>
	<atom:link href="http://www.sidesofmarch.com/index.php/archive/tag/errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sidesofmarch.com</link>
	<description>Thoughts on life, liberty, and information technology</description>
	<lastBuildDate>Mon, 16 Jan 2012 02:43:26 +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>Fixing &#8216;State code or status code is invalid&#8217; errors when deleting solutions in Dynamics CRM 2011</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2012/01/13/fixing-state-code-or-status-code-is-invalid-errors-when-deleting-solutions-in-dynamics-crm-2011/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2012/01/13/fixing-state-code-or-status-code-is-invalid-errors-when-deleting-solutions-in-dynamics-crm-2011/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 20:29:08 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Dynamics CRM]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[solutions]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=590</guid>
		<description><![CDATA[<p>Working with <a href="http://crm.dynamics.com">Dynamics CRM 2011</a>, I started getting an error when attempting to delete a managed solution:</p>
<blockquote><p><strong>Error deleting a managed solution: State code or status code is invalid
</strong>State code is invalid or state code is valid but status code is invalid for a specified state code.<strong> </strong></p></blockquote>
<p>The ErrorDetails.txt file states the following &#8212; note the text in bold.</p>
<blockquote><p>Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: <strong>1 is not a valid status code for state code SavedQueryState.Inactive on savedquery.Detail</strong>:</p>
<p>Error Code -2147187704</p>
<p>CallStack
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
</p></blockquote>
<p>This error came about after we marked some of the out-of-the-box views as Inactive (like &#8220;Accounts: Responded to Campaigns in Last 6 Months&#8221;). Looking at the database, the <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2012/01/13/fixing-state-code-or-status-code-is-invalid-errors-when-deleting-solutions-in-dynamics-crm-2011/">Fixing &#8216;State code or status code is invalid&#8217; errors when deleting solutions in Dynamics CRM 2011</a></span>]]></description>
			<content:encoded><![CDATA[<p>Working with <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcrm.dynamics.com&sref=rss">Dynamics CRM 2011</a>, I started getting an error when attempting to delete a managed solution:</p>
<blockquote><p><strong>Error deleting a managed solution: State code or status code is invalid<br />
</strong>State code is invalid or state code is valid but status code is invalid for a specified state code.<strong> </strong></p></blockquote>
<p>The ErrorDetails.txt file states the following &#8212; note the text in bold.</p>
<blockquote><p>Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: <strong>1 is not a valid status code for state code SavedQueryState.Inactive on savedquery.Detail</strong>:</p>
<p>Error Code -2147187704</p>
<p>CallStack<br />
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)<br />
at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)<br />
at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)<br />
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)<br />
at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)<br />
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)<br />
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
</p></blockquote>
<p>This error came about after we marked some of the out-of-the-box views as Inactive (like &#8220;Accounts: Responded to Campaigns in Last 6 Months&#8221;). Looking at the database, the statecode (Status) and statuscode (Status Reason) for these views (in table SavedQueryBase) were both &#8220;1&#8243;. There was a simple workaround to this: change the statuscode to &#8220;2&#8243;, using the following SQL.</p>
<pre class="brush: sql; ">
update savedquerybase
set statuscode = 2
where statuscode = 1
and statecode = 1
</pre>
<p>That allowed the solution to delete without error, and the views I wanted inactivated were still inactive. Seems a bug in Dynamics CRM 2011, but I can&#8217;t say for sure.</p>
<p>Of course, use this as your own risk!</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=590&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2012/01/13/fixing-state-code-or-status-code-is-invalid-errors-when-deleting-solutions-in-dynamics-crm-2011/' addthis:title='Fixing &#8216;State code or status code is invalid&#8217; errors when deleting solutions in Dynamics CRM 2011 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2012/01/13/fixing-state-code-or-status-code-is-invalid-errors-when-deleting-solutions-in-dynamics-crm-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t install TFS, or the .Net Framework, or almost anything? Check your security policies!</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2009/09/14/cant-install-tfs-or-the-net-framework-or-almost-anything-check-your-security-policies/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2009/09/14/cant-install-tfs-or-the-net-framework-or-almost-anything-check-your-security-policies/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 19:21:26 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Installer]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=380</guid>
		<description><![CDATA[<p>On a newly-rebuild Windows 2003 server, I set out to <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=FF12844F-398C-4FE9-8B0D-9E84181D9923&#38;displaylang=en">install TFS 2008</a>. After installing SQL 2005, and SQL Reporting Services, and SQL Analysis Services, and SQL 2005 Service Pack 3, I fired up the TFS installer, only to ultimately get <a title="Microsoft: What we do with a bug report (neowin.net)" href="http://www.neowin.net/news/main/09/08/10/microsoft-what-we-do-with-a-bug-report">the dreaded &#8220;Send Report/Don&#8217;t Send Report&#8221; dialog box</a>.</p>
<p><a href="http://www.sidesofmarch.com/wp-content/uploads/tfs-install-unexpected-error.png"></a></p>
<p>Nice! Looking at the install log was so much more revealing.</p>
<p style="padding-left: 30px;">[09/14/09,13:33:33] Microsoft .NET Framework 3.5: ***ERRORLOG EVENT*** : Error code 1603 for this component means "Fatal error during installation."
[09/14/09,13:33:33] Setup.exe: AddGlobalCustomProperty
[09/14/09,13:33:33] Microsoft .NET Framework 3.5: ***ERRORLOG EVENT*** : Setup Failed on component Microsoft .NET Framework 3.5</p>
<p>Odd, why won&#8217;t the .Net Framework 3.5 install? Shouldn&#8217;t be hard to fix by <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&#38;displaylang=en">downloading the .Net 3.5 installer</a> and installing it manually. Or should it? That didn&#8217;t work, either. Again from the install log.</p>
<p style="padding-left: 30px;">[09/14/09,13:42:31] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation."
[09/14/09,13:42:31] WIC Installer: <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2009/09/14/cant-install-tfs-or-the-net-framework-or-almost-anything-check-your-security-policies/">Can&#8217;t install TFS, or the .Net Framework, or almost anything? Check your security policies!</a></span>]]></description>
			<content:encoded><![CDATA[<p>On a newly-rebuild Windows 2003 server, I set out to <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3FFamilyID%3DFF12844F-398C-4FE9-8B0D-9E84181D9923%26amp%3Bdisplaylang%3Den&sref=rss">install TFS 2008</a>. After installing SQL 2005, and SQL Reporting Services, and SQL Analysis Services, and SQL 2005 Service Pack 3, I fired up the TFS installer, only to ultimately get <a title="Microsoft: What we do with a bug report (neowin.net)" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.neowin.net%2Fnews%2Fmain%2F09%2F08%2F10%2Fmicrosoft-what-we-do-with-a-bug-report&sref=rss">the dreaded &#8220;Send Report/Don&#8217;t Send Report&#8221; dialog box</a>.</p>
<p><a href="http://www.sidesofmarch.com/wp-content/uploads/tfs-install-unexpected-error.png"><img class="aligncenter size-medium wp-image-381" title="Team Foundation Server 2008 setup error" src="http://www.sidesofmarch.com/wp-content/uploads/tfs-install-unexpected-error-300x260.png" alt="Team Foundation Server encountered a problem during setup" width="300" height="260" /></a></p>
<p>Nice! Looking at the install log was so much more revealing.</p>
<p style="padding-left: 30px;"><code>[09/14/09,13:33:33] Microsoft .NET Framework 3.5: ***ERRORLOG EVENT*** : Error code 1603 for this component means "Fatal error during installation."<br />
[09/14/09,13:33:33] Setup.exe: AddGlobalCustomProperty<br />
[09/14/09,13:33:33] Microsoft .NET Framework 3.5: ***ERRORLOG EVENT*** : Setup Failed on component Microsoft .NET Framework 3.5</code></p>
<p>Odd, why won&#8217;t the .Net Framework 3.5 install? Shouldn&#8217;t be hard to fix by <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3FFamilyId%3D333325FD-AE52-4E35-B531-508D977D32A6%26amp%3Bdisplaylang%3Den&sref=rss">downloading the .Net 3.5 installer</a> and installing it manually. Or should it? That didn&#8217;t work, either. Again from the install log.</p>
<p style="padding-left: 30px;"><code>[09/14/09,13:42:31] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation."<br />
[09/14/09,13:42:31] WIC Installer: [2] Setup Failed on component WIC Installer<br />
[09/14/09,13:42:33] WapUI: [2] DepCheck indicates WIC Installer is not installed.</code></p>
<p>What does <a title="Windows Imaging Component (MSDN)" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fms735422%2528VS.85%2529.aspx&sref=rss">Windows Imaging Component</a> have to do with anything? Probably nothing, but Windows Installer does, so let&#8217;s take that route. I download <a title="Windows Installer 4.5 download (Microsoft)" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.microsoft.com%2FdownloadS%2Fdetails.aspx%3Ffamilyid%3D5A58B56F-60B6-4412-95B9-54D056D6F9F4%26amp%3Bdisplaylang%3Den&sref=rss">the latest Windows Installer installer</a> (!) and attempt to install (!!) manually. Too bad that didn&#8217;t help, either &#8212; but at least this time I got an error message seemed to point me in the right direction.</p>
<p><a href="http://www.sidesofmarch.com/wp-content/uploads/error-no-permissions-to-update.png"><img class="aligncenter size-full wp-image-382" title="Error screenshot: Don\'t have permissions to update Windows" src="http://www.sidesofmarch.com/wp-content/uploads/error-no-permissions-to-update.png" alt="Setup Error: You do not have permissions to update Windows Server 2003." width="370" height="121" /></a></p>
<p>Now we&#8217;re getting somewhere. <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.lmgtfy.com%2F%3Fq%3Dyou%2Bdo%2Bnot%2Bhave%2Bpermission%2Bto%2Bupdate%2Bwindows%2Bserver%2B2003&sref=rss">Googling that exact error message</a> brought me to a Microsoft knowledge base article (<a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F888791&sref=rss">KB888791</a>) which told me:</p>
<blockquote><p>Update.exe version 5.4.1.0 and later versions require that the user who installs the software update is an administrator with certain user rights.</p></blockquote>
<p>A quick look at the policy settings on the server showed me that the Administrators group didn&#8217;t have the &#8220;<a title="Back up files and directories: Security (TechNet)" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fcc787956%2528WS.10%2529.aspx&sref=rss">Back up files and directories</a>&#8221; right, as shown below.</p>
<p><a href="http://www.sidesofmarch.com/wp-content/uploads/windows-back-up-files-policy-missing.png"><img class="aligncenter size-full wp-image-383" title="\" src="http://www.sidesofmarch.com/wp-content/uploads/windows-back-up-files-policy-missing.png" alt="" width="500" height="101" /></a></p>
<p>A quick request to IT to grant the Administrators group the missing right, and viola! TFS, and other software, is finally installing.</p>
<p>Apparently, this may have been the root cause issue for software not installing or uninstalling properly a week or so ago, when I put in the original request to have the server rebuilt, which leads me to wonder. <em><strong>If Update.exe knows what rights it requires, why doesn&#8217;t it check for them, why doesn&#8217;t it provide a clear error message indicating what is missing, and why doesn&#8217;t this information bubble up appropriately to MSI installers that use Update.exe?</strong></em></p>
<p>The world may never know.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=380&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2009/09/14/cant-install-tfs-or-the-net-framework-or-almost-anything-check-your-security-policies/' addthis:title='Can&#8217;t install TFS, or the .Net Framework, or almost anything? Check your security policies! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2009/09/14/cant-install-tfs-or-the-net-framework-or-almost-anything-check-your-security-policies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging &#8216;Multiple-step operation generated errors&#8217; errors in VB6 and SQL 2005</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2008/06/26/debugging-multiple-step-operation-generated-errors-errors-in-vb6-andsql-2005/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2008/06/26/debugging-multiple-step-operation-generated-errors-errors-in-vb6-andsql-2005/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 18:03:14 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[sql 2005]]></category>
		<category><![CDATA[visual basic 6]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=258</guid>
		<description><![CDATA[<p>I just blogged about CSFBL moving to its new server. All was going well, until I tried to kick off the sim engine, a big part of which is written in Visual Basic 6.0 (cringe, I know, but who has time to rewrite legacy code?).</p>
<p>The sim engine is implemented as a DLL which gets invoked via COM. This part works fine; the DLL is activated, properties are sent to it, and it runs&#8230; then crashes, with the following obscure error:</p>
<blockquote><p>Error Number: -2147217887
Description: Multiple-step operation generated errors. Check each status value.</p></blockquote>
<p>I searched, and searched&#8230; nothing. I recompiled, and checked settings&#8230; nothing. I prayed, and finally found this post: <a href="http://www.developersdex.com/sql/message.asp?p=581&#38;r=4737805">http://www.developersdex.com/sql/message.asp?p=581&#38;r=4737805</a></p>
<p>Here&#8217;s what caught my eye first in the post:</p>
<blockquote><p>Database: SQL Server 2000 Standard (works fine)
Database: SQL Server 2005 Standard (fails)</p></blockquote>
<p>Hey, that&#8217;s exactly the change in my production environment! Reading more, I find that they&#8217;re talking about legacy VB6 code, and client-side RecordSets &#8212; two things I make extensive use of. Please, don&#8217;t make <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2008/06/26/debugging-multiple-step-operation-generated-errors-errors-in-vb6-andsql-2005/">Debugging &#8216;Multiple-step operation generated errors&#8217; errors in VB6 and SQL 2005</a></span>]]></description>
			<content:encoded><![CDATA[<p>I just blogged about CSFBL moving to its new server. All was going well, until I tried to kick off the sim engine, a big part of which is written in Visual Basic 6.0 (cringe, I know, but who has time to rewrite legacy code?).</p>
<p>The sim engine is implemented as a DLL which gets invoked via COM. This part works fine; the DLL is activated, properties are sent to it, and it runs&#8230; then crashes, with the following obscure error:</p>
<blockquote><p>Error Number: -2147217887<br />
Description: Multiple-step operation generated errors. Check each status value.</p></blockquote>
<p>I searched, and searched&#8230; nothing. I recompiled, and checked settings&#8230; nothing. I prayed, and finally found this post: <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.developersdex.com%2Fsql%2Fmessage.asp%3Fp%3D581%26amp%3Br%3D4737805&sref=rss">http://www.developersdex.com/sql/message.asp?p=581&amp;r=4737805</a></p>
<p><span id="more-258"></span>Here&#8217;s what caught my eye first in the post:</p>
<blockquote><p>Database: SQL Server 2000 Standard (works fine)<br />
Database: SQL Server 2005 Standard (fails)</p></blockquote>
<p>Hey, that&#8217;s exactly the change in my production environment! Reading more, I find that they&#8217;re talking about legacy VB6 code, and client-side RecordSets &#8212; two things I make extensive use of. Please, don&#8217;t make me rewrite all this code, not today&#8230;</p>
<p>Reading more (on <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.developersdex.com%2Fsql%2Fmessage.asp%3Fp%3D581%26amp%3Br%3D4737805%26amp%3Bpage%3D2&sref=rss">page two of the thread</a>), I find this:</p>
<blockquote><p><span style="font-family: Verdana,Arial; font-size: x-small;">Now, at last, I have isolated the problem and wasn&#8217;t the SHAPE command that<br />
raised the error, but a UNION SELECT in a query of one of my subrecordsets.</span></p></blockquote>
<p>Hey, that&#8217;s <em>exactly</em> the type of query that is running early on in my code, where I call a stored procedure that uses a UNION SELECT statement. Could this be it?</p>
<p>A hint at a possible fix comes from a <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fforums.devx.com%2Fshowthread.php%3Ft%3D166263&sref=rss">DevX forums post</a>, which details the same problem and ends with this:</p>
<blockquote><p><strong>The workaround I can think of is to bounce data over a temp table.</strong></p></blockquote>
<p>I quickly opened up the stored procedure with the UNION SELECT statements, rewrote it to remove the UNION statements (using a temp table for temporary data), and recompiled. Rerunning my code yielded&#8230;</p>
<p><em><strong>SUCCESS!!!</strong></em></p>
<p>It is situations like this where I am reminded how much I can absolutely hate Microsoft. It also reminds me that no two production environments are the same, and a database that is identical in both SQL 2000 and SQL 2005 may not be identical in implementation.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=258&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2008/06/26/debugging-multiple-step-operation-generated-errors-errors-in-vb6-andsql-2005/' addthis:title='Debugging &#8216;Multiple-step operation generated errors&#8217; errors in VB6 and SQL 2005 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2008/06/26/debugging-multiple-step-operation-generated-errors-errors-in-vb6-andsql-2005/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

