title: SQL Server 2008 R2 First Time Login
body: <p>I've just started work on a new computer in which I had to download all the software fresh. </p>
  
  <p>I've just download a copy of SQL Server 2008 R2, and I'm trying to connect to SQL Server Management Studio without success. I vaguely remember last time I installed this, it asked me to choose between windows, or sql server authentication, however this didn't happen for this installation.</p>
  
  <p>If I try to login via Windows Authentication (where the username and password fields are greyed out, localhost as server name) it gives the following error:</p>
  
  <blockquote>
    <p>"A Network-related or instance
    specific error occured while
    establishing a connection to SQL
    Server. The server was not found or
    was not accessible. Verify that the
    instance name is correct and that SQL
    Server is configured to allow remote
    connections. (provider: Named Pipes
    Provider, error: 40 - Could not open a
    connection to SQL Server) (Microsoft
    SQL Server, Error: 2)"</p>
  </blockquote>
  
  <p>I have checked everything in SQL Server Configuration Manager, and everything bar VIA is enabled.</p>
  
  <p>If I try SQL Server Authentication, It asks me for a username and password which I definiately have not set yet. Also, under SQL Server Services in configuration manager, there is nothing there.</p>
  
  <p>Any help would be appreciated :)</p>
  
  <p>Thanks</p>
  
  <p>PS: I don't know if it's worth mentioning but I am running Windows 7 as a virtual machine on a Mac. </p>