title: Unable to Connect to Local SQL Server with Windows Authentication using SSMS
body: <p>I'm trying to login to my local SQL Server 2005 installed on Windows7 using SSMS using Windows authentication.</p>
  <p>I tried using various server names like <code>.</code>, <code>localhost</code>, <code>.\SQL</code>, <code>ANANTH-PC</code> etc.</p>
  <p>I get this error when I try <code>.</code> or <code>localhost</code></p>
  <p><img src="https://i.stack.imgur.com/QsNXu.png" alt="enter image description here" /></p>
  <p>And I get this error when I try <code>.\SQL</code></p>
  <p>.<img src="https://i.stack.imgur.com/g96Tv.png" alt="enter image description here" /></p>
  <p>I had gone for default instance and Windows authentication when I installed SQL Server.</p>
  <p>I've checked the service in the SQL Server Configuration manager and find that <code>MSSQLSERVER</code> is running.</p>
  <p>How can I find the server name that I should enter to login to SQL Server? Any help ?</p>
  <p>Error is loged as</p>
  <pre><code>2012-01-26 15:07:16.02 Logon       Login failed for user 'Ananth-PC\Ananth'. [CLIENT: &lt;local machine&gt;]
  2012-01-26 15:08:51.06 Logon       Error: 18456, Severity: 14, State: 11.
  </code></pre>