title: Unable To Connect using Server Explorer
body: <p>I'm in Visual Studio 2013, using SQL Server Express 2012, on Windows 7 OS.</p>
  
  <p>With C# code, I CAN connect to the database and query.  For example:</p>
  
  <pre><code>using (SqlConnection sqlConnection = new SqlConnection("server=MYSERVER\\SQLEXPRESS; Trusted_Connection=yes; database=MyDatabase; connection timeout=30"))
  {
  
      using (SqlCommand cmd = new SqlCommand())
      {
          cmd.CommandText = "SELECT count(*) FROM tblData";
                  cmd.Connection = sqlConnection;
                  sqlConnection.Open();
                  int count = (int)cmd.ExecuteScalar();
                  Console.WriteLine(count);  // I get the correct answer.
          }
  }
  </code></pre>
  
  <p>That works.  My problem is that if I use Server Explorer within Visual Studio, I cannot connect to the database via that route.  In the Add Connection, MyServer does appear in the server dropdown, but the database dropdown is empty.  When I click Test Connection or OK (leaving Database empty or entering MyDatabase), I get the error: Server was not found or was not accessible.</p>
  
  <p>So I can connect via C# code, but not with Server Explorer.  What am I missing?</p>
  
  <p>Thanks.</p>