title: Unable to update database .MDF is Read Only
body: <p>I have a local DB that I have in an application. When I install it on another machine I get the error </p>
  
  <blockquote>
    <p>Unable to update database.. .mdf is read only.</p>
  </blockquote>
  
  <p>I was able to get around it by editing my permissions on the <code>.mdf</code> and log file themselves. I did some research and noticed that I may want to install the database to a shared folder. However, I am not sure how to do that and the answers I did come across did not make a whole lot of sense to be.</p>
  
  <pre><code> //My connection string
   SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|AssetDatabase.mdf;Integrated Security=True");
  </code></pre>
  
  <p>Any guidance would be greatly appreciated. I am learning.</p>