 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting error</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/getting-error-invalid-procedure-call-or-argument-in-vb-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/getting-error-invalid-procedure-call-or-argument-in-vb-script/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 01:41:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: kccrosser</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/getting-error-invalid-procedure-call-or-argument-in-vb-script/#comment-99155</link>
		<dc:creator>kccrosser</dc:creator>
		<pubDate>Thu, 17 Nov 2011 16:07:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-99155</guid>
		<description><![CDATA[I am dealing with a VB application that generates this error (less now than it did a while ago).

By far the most common cause is failure to deal with NULL values in the results.  Adding code to check and resolve NULL results cleaned up a lot of these problems.  You may want to add some explicit NULL tests for the Parameter column.

The second most common problem was code that &quot;assumed&quot; columns with &quot;number&quot; in the name only contained numeric data and tried to assign the column values to a numeric variable.

Last, if the Parameter column is defined as something larger than VARCHAR(2000) (e.g., VARCHAR(MAX), TEXT, etc.), then you may need to rewrite the VB code to deal with the data in &quot;chunks&quot;.  Assuming you are using SQL Server, open the Books Online and search for &quot;chunk&quot;.  There is plenty of material on how to handle large text columns.]]></description>
		<content:encoded><![CDATA[<p>I am dealing with a VB application that generates this error (less now than it did a while ago).</p>
<p>By far the most common cause is failure to deal with NULL values in the results.  Adding code to check and resolve NULL results cleaned up a lot of these problems.  You may want to add some explicit NULL tests for the Parameter column.</p>
<p>The second most common problem was code that &#8220;assumed&#8221; columns with &#8220;number&#8221; in the name only contained numeric data and tried to assign the column values to a numeric variable.</p>
<p>Last, if the Parameter column is defined as something larger than VARCHAR(2000) (e.g., VARCHAR(MAX), TEXT, etc.), then you may need to rewrite the VB code to deal with the data in &#8220;chunks&#8221;.  Assuming you are using SQL Server, open the Books Online and search for &#8220;chunk&#8221;.  There is plenty of material on how to handle large text columns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/getting-error-invalid-procedure-call-or-argument-in-vb-script/#comment-99132</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 16 Nov 2011 17:33:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-99132</guid>
		<description><![CDATA[You might want to edit your question or post your script again using the editor&#039;s &quot;&lt;b&gt;code&lt;/b&gt;&quot; tool.  I doubt someone will want to review it as it is right now.

As for the error, is there something different in this problematic field&#039;s data ?  Maybe special characters ?]]></description>
		<content:encoded><![CDATA[<p>You might want to edit your question or post your script again using the editor&#8217;s &#8220;<b>code</b>&#8221; tool.  I doubt someone will want to review it as it is right now.</p>
<p>As for the error, is there something different in this problematic field&#8217;s data ?  Maybe special characters ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.012 seconds using memcached
Object Caching 283/284 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 02:25:11 -->