title: Can't rebuild DB using EF Codefirst
body: <p>I had a working EF Codefirst DB. I made some changes to my entities and wanted to rebuild the DB. Due to unrelated coding errors that have since be corrected it wouldn't rebuild. So I figured I could just delete the DB from SQLExpress and the let EF recreate it. However that didn't happen. Instead I now get the error.</p>
  
  <p><strong>Cannot open database "DataAccessTest.MyDBContext" requested by the login. The login failed.
  Login failed for user 'Server\Administrator'.</strong></p>
  
  <p>Also in the event veiwer I get the error.</p>
  
  <p><strong>Reason: Failed to open the explicitly specified database.</strong></p>
  
  <p>Which of course makes since because it isn't there. But I don't know why that would stop it from recreating the DB.</p>
  
  <p>I have already tried doing it manually from the code as mentioned in the this post <a href="https://stackoverflow.com/questions/4911329/ef-codefirst-ctp5-manually-drop-and-create-db">here</a>, but it I just got the same errors.</p>
  
  <p>I know that it isn't my user credentials because I loaded up another sample EF project and was able to update it just fine. I also know that it isn't my code because when I pull it down from source control to another system it works fine.</p>
  
  <p>I fear I have messed up some background file that either EF or Visual Studio uses to work with a specific DB and I can't figure out how to clear it.</p>
  
  <p>Any thoughts would be appreciated.</p>