title: SQL Server 2008 -- User not able to access restored Database
body: <p>I'm trying to move a database from one SQL Server database running on one machine to a another machine that is the test server and copy of the original.</p>
  
  <p>On the main  machine, I took a backup of database myDB.
  On the test machine, I deleted the existing older database myDB.
  On the test machine, I restored the new database myDB.</p>
  
  <p>The data seems to have come across successfully.
  But I have a problem accessing the database.
  The owner of all tables is 'user1' and user1 exists with the same login on both DB's.</p>
  
  <p>After trying to access the restored database on the test machine though as user1 there are problems.
  First it says that the password for user1 isn't correct.
  After resetting the password, it says the user1 doesn't have a default database set.  But it is set already to myDB.  It is the same name as the restored db -- myDB.</p>
  
  <p>What have I done wrong in restoring the DB?
  Do I need to have deleted in addition to the DB the user user1 before attempting to restore the backup?  I tried that.  How do I handle updating a restore and maintaining user access?</p>