﻿<?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?)  » CRUD via Stored Procedures or not?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 22 Apr 2026 08:18:29 GMT</lastBuildDate><ttl>20</ttl><item><title>CRUD via Stored Procedures or not?</title><link>http://forum.strataframe.net/FindPost32059.aspx</link><description>I've been using StrataFrame for over five years now and I've never pondered this question too hard ... until now.&lt;br/&gt;&lt;br/&gt;You have two options when choosing the methods to perform an Update, Insert and Delete ... either provide a CRUD stored procedure (automatically generated by the DDT) or let the framework handle it.&lt;br/&gt;&lt;br/&gt;I've currently made the choice to used Stored Procedures ... but I am beginning to doubt my decision for the following reasons:&amp;nbsp; 1) it loads up the stored procedure list with the number of tables times three 2) I have to set six additional properties on each of the BOs.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;As everyone knows, the more code there is and the more properties modified the&amp;nbsp;more opportunities there are to introduce bugs into the system.&lt;br/&gt;&lt;br/&gt;So,&amp;nbsp;the big question is this:&amp;nbsp; Why would anyone choose to go the stored procedure route?&lt;br/&gt;&lt;br/&gt;PS:&amp;nbsp; If one looks at the Table Properties for one of the RBS tables like SFSRoles, the M4 guys use the stored procedure&amp;nbsp;option.&amp;nbsp; So, what is their reasoning for it?&lt;br/&gt;&lt;br/&gt;Thanks,</description><pubDate>Wed, 29 May 2013 09:27:54 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: CRUD via Stored Procedures or not?</title><link>http://forum.strataframe.net/FindPost32083.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;[quote][b]Ben Chase (5/20/2013)[/b][hr]It's really all semantics. &amp;nbsp;We went the route of stored procedures initially, but we have since switched over to just letting the BOs generate the dynamic SQL. &amp;nbsp;In SFv2, the dynamic SQL is much better than v1. &amp;nbsp;For instance, updates only include the fields that have changed rather than blindly updating all fields.[/quote]&lt;br/&gt;That is an excellent enhancement since I have been bitten before in a multi-user application where some flag fields are updated from different forms and then noticed some of my data changed without knowing the reason, so I had to create stored procedures to handle these flag fields updates.</description><pubDate>Wed, 29 May 2013 09:27:54 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: CRUD via Stored Procedures or not?</title><link>http://forum.strataframe.net/FindPost32062.aspx</link><description>It's really all semantics. &amp;nbsp;We went the route of stored procedures initially, but we have since switched over to just letting the BOs generate the dynamic SQL. &amp;nbsp;In SFv2, the dynamic SQL is much better than v1. &amp;nbsp;For instance, updates only include the fields that have changed rather than blindly updating all fields.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;The real reasons you would want to use stored procedures are:&lt;br/&gt;&lt;br/&gt;&lt;div&gt;1. Using an indexed view instead of a table for the business object; you would need to use an "instead of" trigger or a sproc to update the multiple tables&lt;div&gt;2. A DBA is running the database and wants to control CRUD access to individual users based upon permissions on the stored procedures.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;SF uses parameterized queries, so the execution plan is cached off just like a sproc is, so the performance isn't really different between the two. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Some people just like using sprocs or have a DBA that requires the use of sprocs, so we give you the option of using them.</description><pubDate>Mon, 20 May 2013 07:50:49 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>