<?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>Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx</link><description>To begin working with LINQ to SQL in Visual Studio 2008 you will need a database that you can query and a copy of MS SQL Server or SQL Express. In this post, I'm going to focus on SQL Express since it is free and since it gets installed by default when</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6415819</link><pubDate>Tue, 20 Nov 2007 04:05:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6415819</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6416306</link><pubDate>Tue, 20 Nov 2007 04:26:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6416306</guid><dc:creator>Mark Dykun</dc:creator><description>&lt;p&gt;Charlie, the first statement seems strange. You need a database you can connect to and also SQL Express. In my experience I have not required SQL Express to use LINQ to SQL. Am I in error on this?&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6422682</link><pubDate>Tue, 20 Nov 2007 09:15:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6422682</guid><dc:creator>Charlie Calvert</dc:creator><description>&lt;p&gt;Mark, &lt;/p&gt;
&lt;p&gt;Thanks for your comment. I did not mean to imply that MS SQL Server would not work with LINQ to SQL. It certainly does. I've rewritten the first paragraph to make it clear that you can use either MS SQL Server or SQL Express, but that this post focuses on using SQL Express.&lt;/p&gt;
&lt;p&gt;- Charlie&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6433963</link><pubDate>Tue, 20 Nov 2007 17:24:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6433963</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;Charlie,&lt;/p&gt;
&lt;p&gt; Thanks for the brief presentation of linq.&lt;/p&gt;
&lt;p&gt; I have not tried the VS 2008 yet.&lt;/p&gt;
&lt;p&gt; However, I have some question regarding the linq and linq to sql designer.&lt;/p&gt;
&lt;p&gt; What will happen if someone changes the underlying table structure (column data types, column names,...).&lt;/p&gt;
&lt;p&gt; A runtime error will be raised?&lt;/p&gt;
&lt;p&gt; Is there any possibility of automatic updates and synchronization in the linq designer ?&lt;/p&gt;
&lt;p&gt; Robert&lt;/p&gt;
</description></item><item><title>Understanding the DataContext</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6731984</link><pubDate>Tue, 11 Dec 2007 09:48:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6731984</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>&lt;p&gt;In an earlier post I showed how LINQ developers can connect to a database and write a simple query. This&lt;/p&gt;
</description></item><item><title>Understanding the DataContext</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6732367</link><pubDate>Tue, 11 Dec 2007 10:47:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6732367</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;In an earlier post I showed how LINQ developers can connect to a database and write a simple query. This&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6740062</link><pubDate>Wed, 12 Dec 2007 03:01:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6740062</guid><dc:creator>S Saxon</dc:creator><description>&lt;p&gt;Very informative for me, I'm very new to C# and Linq. Thanks, Sid&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6750810</link><pubDate>Wed, 12 Dec 2007 23:31:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6750810</guid><dc:creator>Charlie Calvert</dc:creator><description>&lt;p&gt;Robert,&lt;/p&gt;
&lt;p&gt;If the metadata for a table changes, then you can delete it from the designer and drag it on again to regenerate the code. If you think you will need to do this kind of thing often, then you can use the command line tool called SqlMetal, which will generate the code automatically. The classes SQLMetal and the SQL Designer create are all declared to be partial so that any code you write to customize the behavior of the autogenerated code will not be overwritten.&lt;/p&gt;
&lt;p&gt;- Charlie&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6787107</link><pubDate>Mon, 17 Dec 2007 11:06:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6787107</guid><dc:creator>Pablo</dc:creator><description>&lt;p&gt;I can't find where in the code the application actually reads APP.CONFIG.&lt;/p&gt;
&lt;p&gt;How can I use a custom configuration file?&lt;/p&gt;
&lt;p&gt;I saw that the Settings class saves the connection string in a hard-coded attribute: how can I change that?&lt;/p&gt;
&lt;p&gt;Can you point me to a URL where I can learn 'LINQ in depth'?&lt;/p&gt;
&lt;p&gt;Thanks a lot,&lt;/p&gt;
&lt;p&gt;Pablo.&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#6945704</link><pubDate>Wed, 02 Jan 2008 04:30:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6945704</guid><dc:creator>eve</dc:creator><description>&lt;p&gt;hi, i would like to ask that do u know the code of using visual C# in window Forms application connection to SQL server (database)? Because i'm not using Console Application to connection to database.&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#7982571</link><pubDate>Sun, 02 Mar 2008 01:42:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7982571</guid><dc:creator>billy bob</dc:creator><description>&lt;p&gt;Exactly the info I wanted to get started - thanks!&lt;/p&gt;
&lt;p&gt;There's good follow-up info on usage here (among a lot of other places):&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For anyone who's interested.&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#7984440</link><pubDate>Sun, 02 Mar 2008 05:41:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7984440</guid><dc:creator>billy bob</dc:creator><description>&lt;p&gt;A question:&lt;/p&gt;
&lt;p&gt;I successfully carried out the steps you gave, but I'm wondering exactly where the database *is*. I don't see it in bin\debug.&lt;/p&gt;
&lt;p&gt;More generally, I'm wondering how deployment works. I want my app to carry its own little sqlexpress db with it, and populate itself from data in files on whatever computer it's running on.&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8324693</link><pubDate>Wed, 19 Mar 2008 07:45:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8324693</guid><dc:creator>Charlie Calvert</dc:creator><description>&lt;p&gt;Pablo,&lt;/p&gt;
&lt;p&gt;The DataContext that is created by the LINQ to SQL Designer (aka the Object Relational Designer) has code for reading your config file. This code will be executed if you use the default constructor for the DataContext If you prefer to pass in your own connection string, you can use the second constructor for the DataContext, which takes a connection string as a parameter:&lt;/p&gt;
&lt;p&gt;DataClasses1DataContext db = &lt;/p&gt;
&lt;p&gt; &amp;nbsp;new DataClasses1DataContext(MyConnectionString);&lt;/p&gt;
&lt;p&gt;The samples that ship with the product, such as the Northwind sample, show how to use this second parameter, and how to construct a connection string that will work with it.&lt;/p&gt;
&lt;p&gt;- Charlie&lt;/p&gt;
</description></item><item><title>re: Connect to a SQL Database and Use the LINQ to SQL Designer</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8324698</link><pubDate>Wed, 19 Mar 2008 07:49:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8324698</guid><dc:creator>Charlie Calvert</dc:creator><description>&lt;p&gt;Billy Bob,&lt;/p&gt;
&lt;p&gt;Unless you explicitly ask Visual Studio to copy it someplace else, the database will stay where it was when you browsed for it as shown above in Figure 2. In other words, the database *is* Northwnd.mdf, and it stays in the Data directory that is part of the samples.&lt;/p&gt;
&lt;p&gt;- Charlie&lt;/p&gt;
</description></item><item><title>Visual Linq query builder for Linq to Sql: VLinq</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8350514</link><pubDate>Wed, 02 Apr 2008 12:29:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8350514</guid><dc:creator>Mitsu's blog</dc:creator><description>&lt;p&gt;Hi all, After almost one year of work and organization, I am very happy to share this project with you:&lt;/p&gt;
</description></item><item><title>Visual Linq query builder pour Linq to Sql: VLinq</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8350600</link><pubDate>Wed, 02 Apr 2008 13:03:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8350600</guid><dc:creator>Mitsuru FURUTA - Microsoft FRANCE</dc:creator><description>&lt;p&gt;Bonjour &amp;#224; tous, Apr&amp;#232;s quasiment un an de travail et d'organisation, je suis tr&amp;#232;s heureux de partager&lt;/p&gt;
</description></item><item><title>Visual Linq query builder for Linq to Sql</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8351187</link><pubDate>Wed, 02 Apr 2008 16:18:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8351187</guid><dc:creator>The3Factory</dc:creator><description>&lt;p&gt;Visual Linq query builder for Linq to Sql&lt;/p&gt;
</description></item><item><title>Visual Linq query builder for Linq to Sql: VLinq</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8352323</link><pubDate>Wed, 02 Apr 2008 23:24:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8352323</guid><dc:creator>Vincent Yang</dc:creator><description>&lt;p&gt;Ref:&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/mitsu/archive/2008/04/02/visual-linq-query-builder-for-linq-to-sql-vlinq"&gt;http://blogs.msdn.com/mitsu/archive/2008/04/02/visual-linq-query-builder-for-linq-to-sql-vlinq&lt;/a&gt;....&lt;/p&gt;
</description></item><item><title>Lexapro anxiety.</title><link>http://blogs.msdn.com/charlie/archive/2007/11/19/connect-to-a-sql-database-and-use-the-sql-designer.aspx#8895890</link><pubDate>Tue, 26 Aug 2008 05:39:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8895890</guid><dc:creator>Lexapro.</dc:creator><description>&lt;p&gt;Lexapro side effects. Lexapro anxiety. Lexapro. Lexapro study.&lt;/p&gt;
</description></item></channel></rss>