﻿<?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?)  » Fill By Stored Procedure</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 27 Sep 2026 02:29:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Fill By Stored Procedure</title><link>http://forum.strataframe.net/FindPost8697.aspx</link><description>I'm filling a business object based on a stored procedure that handles paging of data. &amp;nbsp;The business object is filled correctly but there is a section in the stored procedure to return the total record count, which is not related to the records count in the business object. &lt;/P&gt;&lt;P&gt;Example: I may have 100,000 records in the customer file but I am only requesting 1000 at a time. The stored procedure returnss the 1000 records into my business object and also return a total record count of 100,000 so I can display the page count.&amp;nbsp; How can I return this value to my business object when I call the stored procedure?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 09 May 2007 09:24:40 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Fill By Stored Procedure</title><link>http://forum.strataframe.net/FindPost8702.aspx</link><description>Does the stored procedure return the value as a second result set, or is it returned as an output parameter?&amp;nbsp; You could probably add a parameter to your stored procedure as an output parameter and set the value of that parameter to the record count.&amp;nbsp; After the stored procedure is executed, the SqlParameter will be filled with the value.</description><pubDate>Wed, 09 May 2007 09:24:40 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Fill By Stored Procedure</title><link>http://forum.strataframe.net/FindPost8698.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I guess you could just use the BO's ExecuteScalar method to return the record cound.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Tue, 08 May 2007 17:18:54 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item></channel></rss>