<?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>Jeff Nuckolls {Application Platform and Development Tools} : Visual Studio</title><link>http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx</link><description>Tags: Visual Studio</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Unit Tests with Visual Studio 2008 (screencast)</title><link>http://blogs.msdn.com/jeff/archive/2008/05/09/unit-tests-with-visual-studio-2008-screencast.aspx</link><pubDate>Sat, 10 May 2008 01:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8482308</guid><dc:creator>jeffnuck</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/jeff/comments/8482308.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=8482308</wfw:commentRss><description>&lt;P&gt;Test Driven Development (TDD) has long been advocated as a "best practice" in software development.&amp;nbsp; Without picking apart the details with this theory, I'll just summarize the concept: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;prior to jumping in with both feet, writing functional code, start with stubbed out methods/functions/classes/etc... (you might use Class Designer for this part)&lt;/LI&gt;
&lt;LI&gt;second, create a test harness that aligns with the functional requirements... these should test for "expected" results and compare them with "actual" results returned from the functional code (class/method/etc...)&lt;/LI&gt;
&lt;LI&gt;finally start adding code to your stubbed classes/methods... and refining this code until your tests harness receives all "expected" results&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Creating these test harnesses can be a cumbersome task and seem to take time away from the valuable development time.&amp;nbsp; Visual Studio can automate a majority of this for you saving you tons of time without bolt-on 3rd party tools, and most importantly recover that valuable development time "without" sacrificing quality code!&lt;/P&gt;
&lt;P&gt;Instead of rambling, I recorded a quick 7 minute screencast to get you started in Unit Testing with Visual Studio 2008:&lt;/P&gt;
&lt;DIV class=wlWriterSmartContent id=scid:{7D7E1B1B-BB15-44b5-AC22-DF49F6B00FD3}:101687b3-042c-4735-a543-c3f55cb78014 style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;&lt;IFRAME style="WIDTH: 320px; HEIGHT: 240px" src="http://silverlight.services.live.com/invoke/66578/VS 2008 - Unit Testing/iframe.html" frameBorder=0 width=320 scrolling=no height=240&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P&gt;Note: This just touches the surface, but will hopefully prove a decent introduction.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8482308" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.msdn.com/jeff/archive/tags/Screencast/default.aspx">Screencast</category></item><item><title>Web Tests in Visual Studio 2008 (screencast)</title><link>http://blogs.msdn.com/jeff/archive/2008/05/09/web-tests-in-visual-studio-2008-screencast.aspx</link><pubDate>Sat, 10 May 2008 00:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8482047</guid><dc:creator>jeffnuck</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jeff/comments/8482047.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=8482047</wfw:commentRss><description>&lt;P&gt;If you are interested in testing your web applications, Visual Studio offers a great way to do this without bolt-on or expensive 3rd party tools.&amp;nbsp; Auto-record, configure, and even generate coded versions (C# or VB) of your web tests, then reuse with/without Load Tests.&amp;nbsp; You can also add Data Sources (databases, CSV files, and XML files), Validation rules, and Extraction rules to your web tests.&lt;/P&gt;
&lt;P&gt;Here I have provided a short screencast to demonstrate "some" of the features for creating Web Tests with Visual Studio 2008:&lt;/P&gt;
&lt;DIV class=wlWriterSmartContent id=scid:{7D7E1B1B-BB15-44b5-AC22-DF49F6B00FD3}:9551d512-07f0-45c3-aa66-af143dc990f3 style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;&lt;IFRAME style="WIDTH: 320px; HEIGHT: 240px" src="http://silverlight.services.live.com/invoke/66578/VS 2008 - Web Testing/iframe.html" frameBorder=0 width=320 scrolling=no height=240&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P mce_keep="true"&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8482047" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.msdn.com/jeff/archive/tags/Screencast/default.aspx">Screencast</category></item><item><title>Visual Basic 6.0 IDE goes out of support</title><link>http://blogs.msdn.com/jeff/archive/2008/04/03/visual-basic-6-0-ide-goes-out-of-support.aspx</link><pubDate>Thu, 03 Apr 2008 16:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8353901</guid><dc:creator>jeffnuck</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/jeff/comments/8353901.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=8353901</wfw:commentRss><description>&lt;P&gt;In just 1 week from today, on &lt;STRONG&gt;April 8, 2008, the Visual Basic 6.0 IDE will no longer be supported&lt;/STRONG&gt;.&amp;nbsp; If you haven't converted all your apps to .NET shame on you &lt;EM&gt;(I mean that in a pure-poor-humor sort of way, in fact it's widely recognized that migrations aren't always straight forward,&amp;nbsp;each migration strategy may differ&amp;nbsp;depending on several variables... prior planning and a&amp;nbsp;knowledgeable consultant is my best advice)&lt;/EM&gt;, but &lt;STRONG&gt;don't freak out&lt;/STRONG&gt;... &lt;STRONG&gt;Microsoft will continue to support the VB 6.0 runtime&lt;/STRONG&gt; for all existing application in all the next versions of the Windows OS including Windows Server 2008 and Vista.&amp;nbsp; However; who knows how many years the runtime will be supported, so you might want to start considering a migration plan, if not for supportability concerns, then to take advantage of the performance, security, power of the .NET Framework and the productivity of Visual Studio 2008.&amp;nbsp; &lt;EM&gt;(&lt;/EM&gt;&lt;A class="" href="http://msdn2.microsoft.com/en-us/vbrun/ms788707.aspx" mce_href="http://msdn2.microsoft.com/en-us/vbrun/ms788707.aspx"&gt;&lt;EM&gt;Click here&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt; for more information about Visual Basic 6.0 life-cycle and mainstream support.)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;Technical References for Migration:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://msdn2.microsoft.com/en-us/vbasic/ms789186.aspx"&gt;http://msdn2.microsoft.com/en-us/vbasic/ms789186.aspx&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Webcast:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A class="" href="http://www.microsoft.com/events/EventDetails.aspx?CMTYSvcSource=MSCOMMedia&amp;amp;Params=%7eCMTYDataSvcParams%5e%7earg+Name%3d%22ID%22+Value%3d%221032337474%22%2f%5e%7earg+Name%3d%22ProviderID%22+Value%3d%22A6B43178-497C-4225-BA42-DF595171F04C%22%2f%5e%7earg+Name%3d%22lang%22+Value%3d%22en%22%2f%5e%7earg+Name%3d%22cr%22+Value%3d%22US%22%2f%5e%7esParams%5e%7e%2fsParams%5e%7e%2fCMTYDataSvcParams%5e" mce_href="http://www.microsoft.com/events/EventDetails.aspx?CMTYSvcSource=MSCOMMedia&amp;amp;Params=%7eCMTYDataSvcParams%5e%7earg+Name%3d%22ID%22+Value%3d%221032337474%22%2f%5e%7earg+Name%3d%22ProviderID%22+Value%3d%22A6B43178-497C-4225-BA42-DF595171F04C%22%2f%5e%7earg+Name%3d%22lang%22+Value%3d%22en%22%2f%5e%7earg+Name%3d%22cr%22+Value%3d%22US%22%2f%5e%7esParams%5e%7e%2fsParams%5e%7e%2fCMTYDataSvcParams%5e"&gt;Using the Interop Toolkit to Migrate VB 6.0 applications to .NET&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Books:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;
&lt;TABLE class=n2 cellSpacing=0 cellPadding=0 border=0 class="n2"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=imageColumn width=123 class="imageColumn"&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" align=middle width=115&gt;&lt;A href="http://www.amazon.com/Upgrading-Microsoft-Visual-accompanying-CD-ROM/dp/073561587X/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1207231131&amp;amp;sr=8-1"&gt;&lt;IMG class="" height=115 alt="Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET w/accompanying CD-ROM" src="http://ecx.images-amazon.com/images/I/512QCX3234L._SL160_PIsitb-dp-arrow,TopRight,21,-23_SH30_OU01_AA115_.jpg" width=115 border=0&gt;&lt;FONT color=#003399&gt; &lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD class="" width=8&gt;&lt;FONT color=#003399&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;
&lt;TD class=dataColumn class="dataColumn"&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=""&gt;&lt;A href="http://www.amazon.com/Upgrading-Microsoft-Visual-accompanying-CD-ROM/dp/073561587X/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1207231131&amp;amp;sr=8-1"&gt;&lt;SPAN class=srTitle&gt;&lt;STRONG&gt;&lt;FONT color=#003399&gt;Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET w/accompanying CD-ROM&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 width="100%" border=0&gt;
&lt;TBODY&gt;
&lt;TR vAlign=top&gt;
&lt;TD class=""&gt;&lt;/TD&gt;
&lt;TD class="" width="100%"&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 width="100%" border=0&gt;
&lt;TBODY&gt;
&lt;TR vAlign=top&gt;
&lt;TD class=""&gt;
&lt;TABLE class=n2 cellSpacing=0 cellPadding=0 border=0 class="n2"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=imageColumn width=123 class="imageColumn"&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" align=middle width=115&gt;&lt;A href="http://www.amazon.com/Upgrading-Visual-Applications-Patterns-Practices/dp/0735622981/ref=sr_1_2?ie=UTF8&amp;amp;s=books&amp;amp;qid=1207231131&amp;amp;sr=8-2"&gt;&lt;IMG class="" height=115 alt="Upgrading Visual Basic  6.0 Applications to Visual Basic .NET and Visual Basic 2005 (Patterns &amp;amp; Practices)" src="http://ecx.images-amazon.com/images/I/21AS47AHBWL._AA115_.jpg" width=115 border=0&gt;&lt;FONT color=#003399&gt; &lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD class="" width=8&gt;&lt;FONT color=#003399&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;
&lt;TD class=dataColumn class="dataColumn"&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=""&gt;&lt;A href="http://www.amazon.com/Upgrading-Visual-Applications-Patterns-Practices/dp/0735622981/ref=sr_1_2?ie=UTF8&amp;amp;s=books&amp;amp;qid=1207231131&amp;amp;sr=8-2"&gt;&lt;SPAN class=srTitle&gt;&lt;STRONG&gt;&lt;FONT color=#003399&gt;Upgrading Visual Basic 6.0 Applications to Visual Basic .NET and Visual Basic 2005 (Patterns &amp;amp; Practices)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;{Get-R-Done!}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8353901" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Basic/default.aspx">Visual Basic</category></item><item><title>Upgrade TFS from the Trial edition to a licensed copy...</title><link>http://blogs.msdn.com/jeff/archive/2008/03/31/upgrade-tfs-from-the-trial-edition-to-a-licensed-copy.aspx</link><pubDate>Mon, 31 Mar 2008 15:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8345561</guid><dc:creator>jeffnuck</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jeff/comments/8345561.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=8345561</wfw:commentRss><description>&lt;P&gt;If you were an early adopter and/or just testing out Team Foundation Server 2008 and now want to upgrade to a licensed copy without reinstalling on new hardware see this MSDN article for the appropriate steps: &lt;A href="http://msdn2.microsoft.com/en-us/library/ms404852.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms404852.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Note if you are a Volume Licensed customer, you may need to call product support because you will not have a Product Key in this case.)&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8345561" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.msdn.com/jeff/archive/tags/TFS/default.aspx">TFS</category></item><item><title>Step-by-step Introduction to LINQ to SQL</title><link>http://blogs.msdn.com/jeff/archive/2008/03/13/step-by-step-introduction-to-linq-to-sql.aspx</link><pubDate>Fri, 14 Mar 2008 04:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8192097</guid><dc:creator>jeffnuck</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/jeff/comments/8192097.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=8192097</wfw:commentRss><description>&lt;P&gt;Here I’ll give you a quick introduction to LINQ using Visual Studio 2008. &lt;A href="http://msdn2.microsoft.com/en-us/netframework/aa904594.aspx" mce_href="http://msdn2.microsoft.com/en-us/netframework/aa904594.aspx"&gt;Click here&lt;/A&gt; to learn more about LINQ in general, otherwise &lt;A href="http://msdn2.microsoft.com/en-us/vs2008/products/cc268305.aspx" mce_href="http://msdn2.microsoft.com/en-us/vs2008/products/cc268305.aspx"&gt;download a 90-day trial Visual Studio 2008&lt;/A&gt; (if you are a student you can download the professional edition for &lt;A href="https://downloads.channel8.msdn.com/" mce_href="https://downloads.channel8.msdn.com/"&gt;FREE&lt;/A&gt;) and fire it up! 
&lt;P&gt;First we will look at some very basic LINQ to SQL query using code and the “Linq Relational Designer”, and then we’ll do another example to show you a code/query-free way of doing the same thing using the LinqDataSource. 
&lt;P&gt;&lt;B&gt;Linq to SQL (via code and Object Relational Designer)&lt;/B&gt; 
&lt;P&gt;1. Open Visual Studio 2008 and create a new ASP.NET Web Application (here I’m using C#, but you could just as easily use VB.NET) 
&lt;BLOCKQUOTE&gt;
&lt;P&gt;a. File--&amp;gt;New--&amp;gt;Project--&amp;gt;Visual C#/Web--&amp;gt;ASP.NET Web Application &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image002_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image002_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=165 alt=clip_image002 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image002_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image002_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Once the project is loaded, we need to first add a database to the project (I am assume that you have &lt;A href="http://www.microsoft.com/express/sql/Default.aspx" mce_href="http://www.microsoft.com/express/sql/Default.aspx"&gt;SQL Server 2005 Express Edition&lt;/A&gt; installed and running… it should have installed with Visual Studio 2008 by default, unless you selected otherwise). 
&lt;P&gt;Now I’ll walk you through creating a sample database for this example or use your own existing database for the rest of this example. 
&lt;P&gt;2. Right-click the “App_Data” folder and select Add--&amp;gt;New Item 
&lt;P&gt;3. Once the Add New Item windows opens select Data/SQL Server Database and name it Students.mdf as follows: 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image004_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image004_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=149 alt=clip_image004 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image004_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image004_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;You should now be able to view you database in the “Server Explorer” window as it is below. Now we can start creating your database. 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image006_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image006_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=244 alt=clip_image006 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image006_thumb.jpg" width=190 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image006_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;4. Right-click Tables and select Add New Table. 
&lt;P&gt;5. Define your columns as follows, be sure to make the StudentID column as an Identity field incrementing by 1. 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image008_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image008_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=167 alt=clip_image008 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image008_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image008_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;6. Save your new table as “Students” and then populate it with some fictitious data… 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image010_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image010_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=162 alt=clip_image010 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image010_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image010_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;Now we can add a Linq to SQL Class… 
&lt;P&gt;7. From Solution Explorer, right-click you LinqDemo web application and select Add--&amp;gt;New Item--&amp;gt;Linq to SQL Classes 
&lt;P&gt;8. Name it LinqToStudents.dbml and click Add. 
&lt;P&gt;9. The Object Relational Designer should open. 
&lt;P&gt;10. From Server Explorer, drag and drop you Students table that you just created into the left pane of your designer surface. It should appear as follows: 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image012_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image012_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=166 alt=clip_image012 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image012_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image012_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;11. Save All and Build for good measure… 
&lt;P&gt;12. Back to the Default.aspx page let’s Drag and Drop a DataGrid server control from the Toolbox on to Designer View. (auto format it if you want, but don’t configure any datasources at this time). 
&lt;P&gt;13. Right-click anywhere on the Default.aspx page and select “View Code”, this should open the Default.aspx.cs class file. 
&lt;P&gt;14. Add the following code to the Page_Load event.&lt;/P&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=5 width=500 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top width=498&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#008080&gt;LinqToStudentsDataContext&lt;/FONT&gt; linqStud = &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#008080&gt;LinqToStudentsDataContext&lt;/FONT&gt;();&lt;/FONT&gt; 
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;var&lt;/FONT&gt; allstudents = &lt;FONT color=#0000ff&gt;from&lt;/FONT&gt; stud &lt;FONT color=#0000ff&gt;in&lt;/FONT&gt; linqStud.Students&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;where&lt;/FONT&gt; stud.StudentID != &lt;FONT color=#0000ff&gt;null&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;select&lt;/FONT&gt; stud;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;GridView1.DataSource = allstudents;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;GridView1.DataBind();&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;15. Now you can click F5 (to run in Debug mode) or Ctrl + F5 (to run without the debugger), if you just click F5 for the first time you might get the following Information Windows letting you know that its modifying the Web.config file for you to allow debugging. Just click OK. 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image014_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image014_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=109 alt=clip_image014 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image014_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image014_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;Your application should start up in Internet Explorer and display all of the data from your Students database table in the GridView control. 
&lt;P&gt;Albeit a basic example, you have just completed your first Linq To SQL application. CONGRATZ! 
&lt;HR&gt;

&lt;P&gt;&lt;B&gt;Linq to SQL (via code and Object Relational Designer)&lt;/B&gt; 
&lt;P&gt;Now that we did it the “hard” way (not really), let’s take a look at an even easier way to Linq our GridView control to a SQL table. 
&lt;P&gt;1. Using the same project and Default.aspx page in the previous example. Let’s first DELETE all the code you just added to the Page_Load event of the Default.aspx.cs class file and then Save and Close that file. 
&lt;P&gt;2. From your Toolbox, drag and drop the LinqDataSource server control (under Data) anywhere onto the Designer View of your Default.aspx page. 
&lt;P&gt;3. You can now select “Configure Data Source” from the LinqDataSource you just added as follows: 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image016_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image016_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=128 alt=clip_image016 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image016_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image016_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;4. Once the “Configure Data Source” window appears you can the LinqDemo.LinqToStudentsDataContext option from the “Chose your context object” dropdown, and select Next. 
&lt;P&gt;5. On the next screen, just accept the defaults and click Finish. 
&lt;P&gt;Back to the Default.aspx Designer View… now we can bind the GridView to our newly created LinqDataSource. 
&lt;P&gt;6. Select “LinqDataSource1” from the Chose Data Source dropdown list of your GridView control as follows: 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image018_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image018_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=105 alt=clip_image018 src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image018_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jeff/WindowsLiveWriter/StepbystepIntroductiontoLINQtoSQL_129E0/clip_image018_thumb.jpg"&gt;&lt;/A&gt; 
&lt;P&gt;7. Save and Run (F5) 
&lt;P&gt;Internet Explorer should open and display data from your database if everything was wired up successfully.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8192097" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/ASP.NET+3.5/default.aspx">ASP.NET 3.5</category><category domain="http://blogs.msdn.com/jeff/archive/tags/LINQ/default.aspx">LINQ</category><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>Visual Studio 2008 and SQL Server 2008 Integration</title><link>http://blogs.msdn.com/jeff/archive/2008/03/10/visual-studio-2008-and-sql-server-2008-integration.aspx</link><pubDate>Tue, 11 Mar 2008 04:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8141534</guid><dc:creator>jeffnuck</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jeff/comments/8141534.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=8141534</wfw:commentRss><description>Consider this a pre-post...&amp;nbsp; I received a lot of questions in regards to the integration of VS 2008 and SQL 2008.&amp;nbsp; As of the current date SQL 2008 was just released as a CTP while VS 2008 has already be made publically available.&amp;nbsp; The main things that folks are realizing is the lack of SQL 2008 project templates in VS2008 as well a database validation and other DB Pro tools in support of SQL 2008.&amp;nbsp; I will post a link to some workaround information that should be available on MSDN shortly, but note that this integration "IS" coming... an update to Visual Studio 2008 will be available in conjunction with SQL 2008 when it ships, if not sooner.&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8141534" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>Visual Studio 2005 &amp; Team Foundation Server Integration and Functionality</title><link>http://blogs.msdn.com/jeff/archive/2006/09/19/visual-studio-2005-team-foundation-server-integration-and-functionality.aspx</link><pubDate>Wed, 20 Sep 2006 00:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:762711</guid><dc:creator>jeffnuck</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jeff/comments/762711.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jeff/commentrss.aspx?PostID=762711</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Tahoma&gt;Click on the thumbnail to enlarge:&lt;/FONT&gt;&lt;/P&gt;&lt;A href="http://blogs.msdn.com/photos/jeff/picture762702.aspx" target=_blank mce_href="http://blogs.msdn.com/photos/jeff/picture762702.aspx"&gt;&lt;IMG src="http://blogs.msdn.com/photos/jeff/images/762702/secondarythumb.aspx" border=0 mce_src="http://blogs.msdn.com/photos/jeff/images/762702/secondarythumb.aspx"&gt;&lt;/A&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=762711" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jeff/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item></channel></rss>