<?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>Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx</link><description>This post assumes you’ve read Converting SQL to LINQ, Part 1: The Basics . I’ve made the following name changes since the last post, which I hope will make the code examples clearer: · Customers -&amp;gt; CustomerTable · Orders -&amp;gt; OrderTable · cust -&amp;gt;</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Free People Searches &amp;raquo; Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6583719</link><pubDate>Wed, 28 Nov 2007 22:36:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6583719</guid><dc:creator>Free People Searches » Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.absolutely-people-search.info/?p=718"&gt;http://www.absolutely-people-search.info/?p=718&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6656775</link><pubDate>Tue, 04 Dec 2007 22:14:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6656775</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6656878</link><pubDate>Tue, 04 Dec 2007 22:23:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6656878</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Aprendiendo LINQ para Visual Basic 2008</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6662737</link><pubDate>Wed, 05 Dec 2007 09:16:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6662737</guid><dc:creator>Jorge Serrano - MVP Visual Developer - Visual Basic</dc:creator><description>&lt;p&gt;Si quieres aprender LINQ para Visual Basic 2008, quiz&amp;#225;s te interesen los siguientes art&amp;#237;culos que el&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 4: Functions (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6749620</link><pubDate>Wed, 12 Dec 2007 21:35:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6749620</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6789635</link><pubDate>Mon, 17 Dec 2007 16:31:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6789635</guid><dc:creator>Lennart</dc:creator><description>&lt;p&gt;Hi Bill,&lt;/p&gt;
&lt;p&gt;One addition: when using an alias, the member name must be preceded by a period. So it must be:&lt;/p&gt;
&lt;p&gt;Select .ContactName = Contact.Name, ContactID = Contact.CustomerID&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6792901</link><pubDate>Tue, 18 Dec 2007 01:43:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6792901</guid><dc:creator>Name (required)*</dc:creator><description>&lt;p&gt;How do you Select all columns from two tables?&lt;/p&gt;
&lt;p&gt;Dim igetanerror = from i in db1, j in db2 Select i, j&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6800653</link><pubDate>Wed, 19 Dec 2007 03:03:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6800653</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;Hi Lennart,&lt;/p&gt;
&lt;p&gt;Which version of VS are you using? &amp;nbsp;I don't think this period should be necessary.&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6800658</link><pubDate>Wed, 19 Dec 2007 03:05:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6800658</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;To the anonymous poster above, what error are you seeing?&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 5: GROUP BY and HAVING (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6800697</link><pubDate>Wed, 19 Dec 2007 03:09:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6800697</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 5: GROUP BY and HAVING (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6801089</link><pubDate>Wed, 19 Dec 2007 04:00:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6801089</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6810156</link><pubDate>Thu, 20 Dec 2007 01:01:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6810156</guid><dc:creator>Name (required)*</dc:creator><description>&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim iiresult = From ii In db.InventoryItems, il In db.InventoryLogs Select ii, il &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GridView2.DataSource = iiresult&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GridView2.DataBind()&lt;/p&gt;
&lt;p&gt;Server Error in '/' Application.&lt;/p&gt;
&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;The data source for GridView with id 'GridView2' did not have any properties or attributes from which to generate columns. &amp;nbsp;Ensure that your data source has content. &lt;/p&gt;
&lt;p&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;/p&gt;
&lt;p&gt;Exception Details: System.Web.HttpException: The data source for GridView with id 'GridView2' did not have any properties or attributes from which to generate columns. &amp;nbsp;Ensure that your data source has content.&lt;/p&gt;
&lt;p&gt;Source Error: &lt;/p&gt;
&lt;p&gt;Line 80: &lt;/p&gt;
&lt;p&gt;Line 81: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView2.DataSource = iiresult&lt;/p&gt;
&lt;p&gt;Line 82: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView2.DataBind()&lt;/p&gt;
&lt;p&gt;Line 83: &lt;/p&gt;
&lt;p&gt;Line 84: &lt;/p&gt;
</description></item><item><title>Aprendiendo LINQ para Visual Basic 2008</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6814265</link><pubDate>Thu, 20 Dec 2007 10:16:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6814265</guid><dc:creator>El blog de Jorge</dc:creator><description>&lt;p&gt;Si quieres aprender LINQ para Visual Basic 2008, quiz&amp;#225;s te interesen los siguientes art&amp;#237;culos que el&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6871790</link><pubDate>Wed, 26 Dec 2007 22:06:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6871790</guid><dc:creator>Name (required)*</dc:creator><description>&lt;p&gt;How can we do something like this? Do we have to specify all the fields for both tables?&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim iiresult = From ii In db.InventoryItems, il In db.InventoryLogs Select ii, il &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView2.DataSource = iiresult&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView2.DataBind()&lt;/p&gt;
&lt;p&gt;Server Error in '/' Application.&lt;/p&gt;
&lt;p&gt;--------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;The data source for GridView with id 'GridView2' did not have any properties or attributes from which to generate columns. &amp;nbsp;Ensure that your data source has content. &lt;/p&gt;
&lt;p&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;/p&gt;
&lt;p&gt;Exception Details: System.Web.HttpException: The data source for GridView with id 'GridView2' did not have any properties or attributes from which to generate columns. &amp;nbsp;Ensure that your data source has content.&lt;/p&gt;
&lt;p&gt;Source Error: &lt;/p&gt;
&lt;p&gt;Line 80: &lt;/p&gt;
&lt;p&gt;Line 81: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView2.DataSource = iiresult&lt;/p&gt;
&lt;p&gt;Line 82: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView2.DataBind()&lt;/p&gt;
&lt;p&gt;Line 83: &lt;/p&gt;
&lt;p&gt;Line 84: &lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 6: Joins (Bill Horst</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6922558</link><pubDate>Mon, 31 Dec 2007 21:49:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6922558</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 6: Joins (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6922653</link><pubDate>Mon, 31 Dec 2007 21:57:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6922653</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>引用:从SQL到LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6974411</link><pubDate>Fri, 04 Jan 2008 05:42:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6974411</guid><dc:creator>zack</dc:creator><description>&lt;p&gt;引用: 从SQL到LINQ,Part3:DISTINCT,WHERE,ORDERBYandOperators(BillHorst) [原文作者]:BillHorst...&lt;/p&gt;
</description></item><item><title>引用:从SQL 到 LINQ, Part 2: FROM 和 SELECT(Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#6974484</link><pubDate>Fri, 04 Jan 2008 05:54:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6974484</guid><dc:creator>zack</dc:creator><description>&lt;p&gt;引用:从SQL到LINQ,Part2:FROM和SELECT(BillHorst) [原文作者]:BillHorst&lt;/p&gt;
&lt;p&gt;[原文链接]:ConvertingSQLtoL...&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 7: UNION, TOP, Subqueries (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#7031828</link><pubDate>Tue, 08 Jan 2008 22:35:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7031828</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Converting SQL to LINQ, Part 7: UNION, TOP, Subqueries (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#7032350</link><pubDate>Tue, 08 Jan 2008 23:33:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7032350</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The&lt;/p&gt;
</description></item><item><title>Translating your T-SQL brain to LINQ</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#7595859</link><pubDate>Mon, 11 Feb 2008 03:14:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7595859</guid><dc:creator>Hot Topics</dc:creator><description>&lt;p&gt;Bill Horst of the VIsual Basic team at Microsoft has been writing a great series on Converting SQL to&lt;/p&gt;
</description></item><item><title>SQL から LINQ への変換、パート 7 : UNION、TOP、サブクエリ (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#8557389</link><pubDate>Thu, 29 May 2008 10:46:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8557389</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;ここでは、このシリーズの前の投稿をお読みになっていることを前提としています。 Converting SQL to LINQ, Part 1: The Basics ( 英語 ) Converting SQL&lt;/p&gt;
</description></item><item><title>re: Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)</title><link>http://blogs.msdn.com/vbteam/archive/2007/11/28/converting-sql-to-linq-part-2-from-and-select-bill-horst.aspx#9397341</link><pubDate>Thu, 05 Feb 2009 05:38:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9397341</guid><dc:creator>Jimbo</dc:creator><description>&lt;p&gt;This is horrible. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Most people do not use in memory tables, they use &amp;quot;real&amp;quot; SQL tables from a server. &amp;nbsp;How do we reference a table on a server ??????&lt;/p&gt;
</description></item></channel></rss>