﻿<?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?)  » Stored Procedure Example</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 17:45:32 GMT</lastBuildDate><ttl>20</ttl><item><title>Stored Procedure Example</title><link>http://forum.strataframe.net/FindPost19359.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;I am looking for a sample program that uses stored procedures,&amp;nbsp; Save, New, Delete, FindAll, FindByName&lt;/P&gt;&lt;P&gt;Or some good documentation on how to do this.&lt;/P&gt;&lt;P&gt;Thanks it would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Mike</description><pubDate>Fri, 12 Sep 2008 13:56:31 GMT</pubDate><dc:creator>Mike Rogers</dc:creator></item><item><title>RE: Stored Procedure Example</title><link>http://forum.strataframe.net/FindPost19364.aspx</link><description>The StrataFlix sample shows every bit of this.&amp;nbsp; The StrataFlix sample shows how to populate using sprocs, edit, save, etc.&amp;nbsp; It also takes the approach of not using sprocs as well in certain programs this way there is a good mix of examples.&lt;/P&gt;&lt;P&gt;In the StrataFlix sample, there is a shared function called PeopleMaintenance_AllData in teh ApplicationQueries class in the Business assembly that shows how to define a sproc and setup parms.&amp;nbsp; This method is used for a report to populate multiple business objects using the FillMultipleDataTables command.&lt;/P&gt;&lt;P&gt;Also, if you would try a search here on the forum you will find a lot of code and posts regarding sprocs.&amp;nbsp; Finally, you can find more information in the docs including the FillByStoredProcedure method on the BO.&lt;/P&gt;&lt;P&gt;Also, in short, you can easily execute a sproc within a BO like this:&lt;/P&gt;&lt;P&gt;[codesnippet]Dim cmd As New SqlCommand("MyStoredProc")&lt;/P&gt;&lt;P&gt;cmd.Parameters.Add("@parm1", SqlDbType.bigInt).Value = MyValue&lt;/P&gt;&lt;P&gt;cmd.CommandType = StoredProcedure&lt;/P&gt;&lt;P&gt;Me.FillDataTable(cmd)[/codesnippet]&lt;BR&gt;&lt;BR&gt;You can also call ExecuteNonQuery, ExecuteScalar, or GetDataTable if you do not want to populate the BO and are just looking for records, etc.</description><pubDate>Fri, 12 Sep 2008 13:56:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>