title: LocalDB: change SQL Server default location
body: <p>I wonder if it is possible to change default location of <code>(LocalDB)</code>. When you create it with <code>SqlLocalDB.exe</code> default location is </p>
  
  <pre><code>C:\Users\userId\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MyDB
  </code></pre>
  
  <p>And I believe this path is used in <code>(LocalDB)</code> in connection strings (auto generated by creator of <code>*.dbml</code> files):</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="MyApp.Properties.Settings.MyConnectionString"
           connectionString="Data Source=**(LocalDB)**\MyDB;Initial Catalog=sthDB;Integrated Security=True"
           providerName="System.Data.SqlClient" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>