<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Using Oracle Store Procedure In Silverlight</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Using Oracle Store Procedure In Silverlight</description>
  <pubDate>Tue, 12 May 2026 22:30:07 -700</pubDate>
  <lastBuildDate>Fri, 08 Feb 2013 01:34:10 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3958</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Using Oracle Store Procedure In Silverlight : Hi EH,  StoredProcs in Oracle...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3958&amp;PID=15854#15854</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3958<br /><strong>Posted:</strong> 08-Feb-2013 at 1:34am<br /><br />Hi EH,<br /><br />StoredProcs in Oracle work similar as in SQL Server. You'll find information at <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/stored-procedure-queries" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/stored-procedure-queries</a> and <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/code-sample-stored-procedure-queries-silverlight" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/code-sample-stored-procedure-queries-silverlight</a>.<br /><br />In your stored proc sample I noticed that you are using an OUT parameter. You'd be able to retrieve it as follows:<br /><table width="99%"><tr><td><pre class="BBcode"><br />x.ExecuteQueryAsync(query, op =&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var myOutputParam = op.Parameters&#091;1&#093;.Value;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ...<br /></pre></td></tr></table><br />or<br /><table width="99%"><tr><td><pre class="BBcode"><br />query.Execute();<br />var myOutputParam = query.Parameters&#091;1&#093;.Value;<br /></pre></td></tr></table><br />Note that you will need to cast <em>op.Parameters&#091;1&#093;.Value</em> to the appropriate type, as <em>op.Parameters&#091;1&#093;.Value</em> alone is of type object.<br /><br />It's worth mentioning that, if working with SQL Server, the first OUT parameter would be retrieved at <em>.Parameters&#091;0&#093;</em>. (as opposed to index = 1)<br /><br />sbelini]]>
   </description>
   <pubDate>Fri, 08 Feb 2013 01:34:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3958&amp;PID=15854#15854</guid>
  </item> 
  <item>
   <title>Using Oracle Store Procedure In Silverlight : I Search Forum and did not find...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3958&amp;PID=15737#15737</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1685" rel="nofollow">EH</a><br /><strong>Subject:</strong> 3958<br /><strong>Posted:</strong> 28-Jan-2013 at 1:23am<br /><br />I Search Forum and did not find any sample to use oracle SP <br><br>for example i have SP Like. <br><br>PROCEDURE Get_CLSU_CANPENKA<br>(<br>&nbsp;&nbsp;&nbsp; v_SQL IN&nbsp; varchar2 ,<br>&nbsp;&nbsp;&nbsp; cv_1 IN OUT SYS_REFCURSOR<br>)<br>AS<br>v_SQLTEMP VARCHAR2(2000) := v_SQL;<br><br>BEGIN<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OPEN cv_1&nbsp;&nbsp;&nbsp; FOR&nbsp; SELECT * FROM CLSU_CANPENKA where rownum &lt;3;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v_SQLTEMP;<br><br><br>&nbsp;&nbsp; EXCEPTION<br>&nbsp;&nbsp;&nbsp;&nbsp; WHEN NO_DATA_FOUND THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL;<br><br>END Get_CLSU_CANPENKA;<br><br>code is like ...<br><br>x.ExecuteQueryAsync(query, op =&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op.Results.ForEach(VWCLSU_CANPENKAs.Add);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CurrentVWCLSU_CANPENKA = VWCLSU_CANPENKAs.FirstOrDefault();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RaisePropertyChanged("CurrentVWCLSU_CANPENKA");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br>]]>
   </description>
   <pubDate>Mon, 28 Jan 2013 01:23:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3958&amp;PID=15737#15737</guid>
  </item> 
 </channel>
</rss>