﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Enterprise Server - V1 » Issues  » Error when calling sproc with varchar OUTPUT parameter</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 18:05:50 GMT</lastBuildDate><ttl>20</ttl><item><title>Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12397.aspx</link><description>I'm getting an error when I attempt to call a stored procedure that has an output parameter that is a varchar.  It reports that the size is invalid with a value of 0.  However, the size is clearly set in code and the code runs fine when connected directly.  &lt;br&gt;
&lt;br&gt;
I've attached a sample solution that highlights this problem.  Just read the Readme.txt for details on how to run the tests.&lt;br&gt;
&lt;br&gt;
This is a show stopper for my project, which I'm attempting to release for beta testing.  &lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Wed, 07 Nov 2007 19:03:51 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12552.aspx</link><description>OK, will do. Thanks again!</description><pubDate>Wed, 07 Nov 2007 19:03:51 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12544.aspx</link><description>Yes.&amp;nbsp; Put this on your client as well.</description><pubDate>Wed, 07 Nov 2007 17:39:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12533.aspx</link><description>Should I update this DLL on my client too?</description><pubDate>Wed, 07 Nov 2007 11:45:26 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12532.aspx</link><description>That did the trick! Thanks Ben!  :D</description><pubDate>Wed, 07 Nov 2007 11:44:27 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12512.aspx</link><description>OK, try this one on the server.</description><pubDate>Wed, 07 Nov 2007 09:06:31 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12511.aspx</link><description>Then it looks like we posted the wrong DLL.&amp;nbsp; Let me get the latest one for you.</description><pubDate>Wed, 07 Nov 2007 09:04:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12493.aspx</link><description>I just updated my client, putting new enterprise dll in the SF folder in Common Files and in the GAC.  I double checked that the server was updated. I restarted IIS, just to be sure.  I'm still getting same error.</description><pubDate>Tue, 06 Nov 2007 10:09:18 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12488.aspx</link><description>Well, the problem was that the value was being serialized, but after being deserialized, it wasn't being set on the parameter, so updating it on the client really shouldn't matter.&amp;nbsp; But, let me know one way or the other.</description><pubDate>Tue, 06 Nov 2007 09:29:25 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12481.aspx</link><description>I only updated the server, but after reading this post [url]http://forum.strataframe.net/FindPost12475.aspx[/url], I realized that I need to update my client as well.  I'm going to give that a try.</description><pubDate>Tue, 06 Nov 2007 09:09:57 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12478.aspx</link><description>Did you replace the assembly within the \bin folder and recycle the application pool through IIS?&amp;nbsp; Either we gave you the wrong DLL, or the server is still looking at the old one.&lt;/P&gt;&lt;P&gt;Also, do you have the assembly in the GAC on the server?</description><pubDate>Tue, 06 Nov 2007 09:07:56 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12458.aspx</link><description>No joy. I'm getting the same error :crying:</description><pubDate>Mon, 05 Nov 2007 14:45:16 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12426.aspx</link><description>Try this to see if it resolves your problem.&amp;nbsp; This will need to replace the Enterprise assembly on your server.</description><pubDate>Mon, 05 Nov 2007 10:07:42 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12399.aspx</link><description>SQL Server allows you to set the value of a single variable using the 'Set' keyword (in addition to being able to do the same thing with 'Select').  The SQL is valid, you can test it in Query Analyzer (or SQL Server Management Studio).  Further, if you run the application using ConnectionManager (direct connect to SQL Server), the BO calls the sproc successfully. &lt;br&gt;
&lt;br&gt;
Thanks for the post in any case  :D</description><pubDate>Sun, 04 Nov 2007 22:43:32 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error when calling sproc with varchar OUTPUT parameter</title><link>http://forum.strataframe.net/FindPost12398.aspx</link><description>Hi Greg,&lt;/P&gt;&lt;P&gt;A thought: should the last statement be a Select rather than a Set, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Select @Details = 'Total amount = ' + Convert(varchar(15),IsNull(@Total,0),1) + CHAR(13) + CHAR(10)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + 'Total Orders = ' + Convert(varchar(12),IsNull(@TotalOrders,0)) + CHAR(13) + CHAR(10)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + 'Total Unique Products = ' + Convert(varchar(12),IsNull(@TotalProducts,0)) + CHAR(13) + CHAR(10)&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Sun, 04 Nov 2007 22:29:16 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item></channel></rss>