title: Connection string for SQL Server ( local database )
body: <p>I added a local database to my application in Visual Studio:</p>
  
  <p><a href="https://i.stack.imgur.com/FrjCe.png" rel="nofollow noreferrer">database </a></p>
  
  <p>and I need connection string for it - here it is:</p>
  
  <pre><code>SqlConnection conn = new SqlConnection();
  conn.ConnectionString = "Data Source=127.0.0.1.;" +
                          "Initial Catalog=Filter;" +
                          "Integrated Security=SSPI;";
  
  conn.Open();
  </code></pre>
  
  <p>When I run that block of code, the whole UI thread stops, like infinite for loop. What is wrong with my connection string?</p>
  
  <p>I'm working with Windows Forms, C#, .NET Framework version 4.5.1</p>