| | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Today @ 3:11:51 PM Posts: 1,148, Visits: 2,831 |
| 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.
I've attached a sample solution that highlights this problem. Just read the Readme.txt for details on how to run the tests.
This is a show stopper for my project, which I'm attempting to release for beta testing.
Thanks!
|
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 12:50:49 AM Posts: 217, Visits: 1,057 |
| | Hi Greg, A thought: should the last statement be a Select rather than a Set, i.e. Select @Details = 'Total amount = ' + Convert(varchar(15),IsNull(@Total,0),1) + CHAR(13) + CHAR(10) + 'Total Orders = ' + Convert(varchar(12),IsNull(@TotalOrders,0)) + CHAR(13) + CHAR(10) + 'Total Unique Products = ' + Convert(varchar(12),IsNull(@TotalProducts,0)) + CHAR(13) + CHAR(10) Cheers, Peter |
| | | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Today @ 3:11:51 PM Posts: 1,148, Visits: 2,831 |
| 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.
Thanks for the post in any case |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 11:54:01 AM Posts: 4,104, Visits: 4,177 |
| Try this to see if it resolves your problem. This will need to replace the Enterprise assembly on your server.
|
| | | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Today @ 3:11:51 PM Posts: 1,148, Visits: 2,831 |
| No joy. I'm getting the same error |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 06/17/2008 9:28:35 AM Posts: 2,649, Visits: 1,863 |
| | Did you replace the assembly within the \bin folder and recycle the application pool through IIS? Either we gave you the wrong DLL, or the server is still looking at the old one. Also, do you have the assembly in the GAC on the server?
www.bungie.net |
| | | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Today @ 3:11:51 PM Posts: 1,148, Visits: 2,831 |
| | | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 06/17/2008 9:28:35 AM Posts: 2,649, Visits: 1,863 |
| 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. But, let me know one way or the other.
www.bungie.net |
| | | |
|