<?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>Tim Ng : SQL</title><link>http://blogs.msdn.com/timng/archive/tags/SQL/default.aspx</link><description>Tags: SQL</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Getting SQL Express to work nicely with Visual Studio 2005</title><link>http://blogs.msdn.com/timng/archive/2007/06/02/getting-sql-express-to-work-nicely-with-visual-studio-2005.aspx</link><pubDate>Sun, 03 Jun 2007 08:33:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3054539</guid><dc:creator>TimNg</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/timng/comments/3054539.aspx</comments><wfw:commentRss>http://blogs.msdn.com/timng/commentrss.aspx?PostID=3054539</wfw:commentRss><description>&lt;p&gt;I just spent the last 4 hours getting my machine ready for a user group demo; I was trying to get SQL Express setup so that I could do a LINQ to SQL demo; what a painful 4 hours! I will try to document things that I discovered along the way here so that you won't go through the same pain.&lt;/p&gt; &lt;p&gt;In my case, I had VS 2005 and SQL Express installed on the same machine.&lt;/p&gt; &lt;p&gt;These are the steps you need to do to get Server Explorer in VS to talk to SQL Express.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Download &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796"&gt;SQL Server Studio Management Express&lt;/a&gt;&amp;nbsp;(SSSME). You need it.&lt;/li&gt; &lt;li&gt;Download the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46a0-8da2-eebc53a68034&amp;amp;displaylang=en"&gt;Northwind samples&lt;/a&gt;. Once its installed, using SSSME to attach to the .MDF file.&lt;/li&gt; &lt;li&gt;Start the SQL Server Browser service. I'm not sure if this is needed; some people in the forums seem to think so, and I turned it on, so might as well.&lt;/li&gt; &lt;li&gt;Using the SQL Server Configuration Manager (SSCM), be sure to enable Named Pipes and TCP protocols.&lt;/li&gt; &lt;li&gt;Turn off Windows Firewall, or enable port 1433 (I think it's 1433).&lt;/li&gt; &lt;li&gt;Using SSCM, modify the password for the "sa" account (I don't know what the default password is).&lt;/li&gt; &lt;li&gt;Using SSCM, make sure the "sa" account is enabled.&lt;/li&gt; &lt;li&gt;Using SSCM, make sure that the authentication scheme allows SQL accounts and Windows authentication.&lt;/li&gt; &lt;li&gt;In Server Explorer, be &lt;strong&gt;sure&lt;/strong&gt; to put \SQLEXPRESS after your computer name! In my case, I had to put TIMHOME\SQLEXPRESS as the server name. Failure to do so will result in an error message that will have you chasing down a needle in a hay stack.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;** Each time you make a change, you should be able to restart the SQL Server service. This never worked for me. I had to restart my machine after each change.&lt;/p&gt; &lt;p&gt;Man, we have a lot of work to do. This stuff should just work. No one should need to follow so many steps just to get a connection to a database. I should be able to get samples running right out of the box.&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:1ca47417-c3a6-426d-91c6-3108eba6bc91" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/SQL" rel="tag"&gt;SQL&lt;/a&gt;, &lt;a href="http://technorati.com/tags/SQLExpress" rel="tag"&gt;SQLExpress&lt;/a&gt;, &lt;a href="http://technorati.com/tags/VisualStudio" rel="tag"&gt;VisualStudio&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3054539" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/timng/archive/tags/SQL/default.aspx">SQL</category><category domain="http://blogs.msdn.com/timng/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item></channel></rss>