﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » UpdateUsingStoredProcedures Error</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 00:19:12 GMT</lastBuildDate><ttl>20</ttl><item><title>UpdateUsingStoredProcedures Error</title><link>http://forum.strataframe.net/FindPost16676.aspx</link><description>I turned this on for all my BO's in an old project. When I go to update now I get the error that the update sproc tablename_UPDATE has provided too many parameters. The spoc on the server has a parameter count equal to the field count in the table. When I turn on debugging for the datasource I see it passing double the amount or parameters, one for easch field and one for each field with "_ORG" addd to the end?&lt;/P&gt;&lt;P&gt;Expected behavior? I have been working with DB2 so I dont have a lot of expereince using sprocs for my CRUD, I have it working but had to set the UpdateUsingStoredProcedures property back to false on the BO.&lt;/P&gt;&lt;P&gt;This was a small app that has to now grow so I think using CRUD sprocs is best, so I need to work this out.</description><pubDate>Thu, 29 May 2008 10:43:36 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: UpdateUsingStoredProcedures Error</title><link>http://forum.strataframe.net/FindPost16682.aspx</link><description>got it, I had a BO instance on a form that didnt have the properties inherited right.</description><pubDate>Thu, 29 May 2008 10:43:36 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: UpdateUsingStoredProcedures Error</title><link>http://forum.strataframe.net/FindPost16680.aspx</link><description>Let's take one table and view it from both the DDT and BO settings.&amp;nbsp; First, if you open the table properties within the DDT, it will look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/c4426683-3784-44e1-a2aa-41ac.png"&gt;&lt;/P&gt;&lt;P&gt;Next, the CRUD settings on the BO will need to match.&amp;nbsp; If you are using the standard DDT naming convention (as shown above: TableName_Update, for example), then you will not have to supply the sproc name on the BO, but if it is a custom name or varies in any way from that naming convention, then you will have to supply the name on the BO.&amp;nbsp; In this example, we are following the standards and do not need to supply the names on the BO, just indicate that we want to use the sprocs:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/682d6bab-1904-4229-b5bc-c3a1.png"&gt;&lt;/P&gt;&lt;P&gt;That is basically it.&amp;nbsp; If you still get errors, then open up your sprocs (through SQL Server Management Studio) and make sure that they are being deployed.</description><pubDate>Thu, 29 May 2008 09:31:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: UpdateUsingStoredProcedures Error</title><link>http://forum.strataframe.net/FindPost16679.aspx</link><description>Im using DDT and have had it set to OptomisticRow version from the start, all my tables are built with this as the default for SQL server. So somewhere, something thinks I am using OptomisticAllRows? Any idea what that might be?</description><pubDate>Thu, 29 May 2008 09:25:07 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: UpdateUsingStoredProcedures Error</title><link>http://forum.strataframe.net/FindPost16677.aspx</link><description>The _ORG parameters are expected when you have the Concurrency set to OptimisticAllFields instead of a row version.&amp;nbsp; Really you always want to use RowVersion over OptimisticAllFields anyway...WAY faster!&amp;nbsp; The problem is that your sprocs do not have the _ORG parms that would be required to use the OptimisticAllFields.&amp;nbsp; So do&amp;nbsp;three things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If you don't have a row version field, create one (an integer field) for the table&lt;/LI&gt;&lt;LI&gt;Update the CRUD settings on the BO to use RowVersion and then supply the RowVersionOrTimeStamp property with the field name of the row version field in the table.&lt;/LI&gt;&lt;LI&gt;If you are using the DDT, update the table properties to use the Row Version as well...but if you are using DB2, you will have to manually update the sprocs.&amp;nbsp; There is a help topic that shows how to create and structure these CRUD sprocs.&lt;/LI&gt;&lt;/OL&gt;</description><pubDate>Thu, 29 May 2008 09:20:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>