title: Connect string of SQL Server for localhost in Entity Framework
body: <p>I'm using SQL Server 2012 for my system, and using Entity Framework, Code first for access data base, my data base is local, but I can't connect using <code>SERVER=localhost;</code> in ConnectString</p>
  
  <p>My <code>App.config</code> (Working)</p>
  
  <pre><code>  &lt;connectionStrings&gt;
      &lt;add name="SystemContext" connectionString="Server=JOHN-PC\SQLEXPRESS;Database=PizzariaDB;user=sa;password=12345" providerName="System.Data.SqlClient"/&gt;
    &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>But, if I would install my system in an other computer, other data base, PC name is not JOHN-PC, so I need change it for a generic <code>ConnectString</code><br/>
  But when I change <code>JOHN-PC\SQLEXPRESS</code> for <code>localhost</code>, it is not work</p>
  
  <p>What can I do for resolve this problem?</p>