<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>LINQ to SQL and multiple result sets in Stored Procedures</title><link>http://blogs.msdn.com/dditweb/archive/2008/05/06/linq-to-sql-and-multiple-result-sets-in-stored-procedures.aspx</link><description>In this post I'm going to demonstrate how you would return and consume multiple result sets from a stored procedure in LINQ to SQL. Imagine you have a stored procedure like this one below. Very simple &amp;#8211; it&amp;#8217;s just returns all customers and</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Discount Airline Tickets &amp;raquo; LINQ to SQL and multiple result sets in Stored Procedures</title><link>http://blogs.msdn.com/dditweb/archive/2008/05/06/linq-to-sql-and-multiple-result-sets-in-stored-procedures.aspx#8464077</link><pubDate>Wed, 07 May 2008 01:15:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8464077</guid><dc:creator>Discount Airline Tickets &amp;raquo; LINQ to SQL and multiple result sets in Stored Procedures</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.travel-hilarity.com/travel-airline-tickets/?p=1147"&gt;http://www.travel-hilarity.com/travel-airline-tickets/?p=1147&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: LINQ to SQL and multiple result sets in Stored Procedures</title><link>http://blogs.msdn.com/dditweb/archive/2008/05/06/linq-to-sql-and-multiple-result-sets-in-stored-procedures.aspx#8464156</link><pubDate>Wed, 07 May 2008 01:48:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8464156</guid><dc:creator>Him</dc:creator><description>&lt;p&gt;Jason, what if we want to return multiple resultsets that are not typed? like anonymous types?&lt;/p&gt;
&lt;p&gt;like for example:&lt;/p&gt;
&lt;p&gt;select pr.Title, pr.Description from products&lt;/p&gt;
&lt;p&gt;select o.orderid, u.userid from orders o&lt;/p&gt;
&lt;p&gt;inner join users u on o.userid = u.userid&lt;/p&gt;
</description></item><item><title>re: LINQ to SQL and multiple result sets in Stored Procedures</title><link>http://blogs.msdn.com/dditweb/archive/2008/05/06/linq-to-sql-and-multiple-result-sets-in-stored-procedures.aspx#9843446</link><pubDate>Tue, 21 Jul 2009 18:02:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9843446</guid><dc:creator>Leakybagel</dc:creator><description>&lt;p&gt;If you get errors like 'Procedure expects parameter &amp;lt;@Name&amp;gt;, which was not supplied:&lt;/p&gt;
&lt;p&gt;Take a look at the stored procedure code created in the Designer.cs file, and copy the parameter list and attributes that match them to the SP params: [Parameter(Name=&amp;quot;CustomerID&amp;quot;, DbType=&amp;quot;Int&amp;quot;)]&lt;/p&gt;
&lt;p&gt;When passing multiple parameters to ExecuteMethodCall, you don't need to create an object array, just list each parameter.&lt;/p&gt;
&lt;p&gt;Can you skip over one of the results, or is each result set returned in order?&lt;/p&gt;
</description></item><item><title>re: LINQ to SQL and multiple result sets in Stored Procedures</title><link>http://blogs.msdn.com/dditweb/archive/2008/05/06/linq-to-sql-and-multiple-result-sets-in-stored-procedures.aspx#9922408</link><pubDate>Sat, 14 Nov 2009 07:46:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9922408</guid><dc:creator>Milind Kansagara</dc:creator><description>&lt;p&gt;Hi!!&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have understand you requierment but here I am having a query that in in combination of another table and returns 2 tables one is having same structure of one of the table of database and other is having just only one field now i want to convert in to dataset how can i do this please help me ? &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am having following error when converting and the 2nd table have the field which is not acctually in the table so how can it be done ?&lt;/p&gt;
&lt;p&gt;[Error]&lt;/p&gt;
&lt;p&gt;The required column 'UserId' does not exist in the results.&lt;/p&gt;
&lt;p&gt;[/Error]&lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;p&gt;Milnd Kansagara&lt;/p&gt;
</description></item></channel></rss>