title: problem with restore database - sql server
body: <p>i try to backup and restore database using sql-server 2008 and got error.</p>
  
  <p>to backup i done this: <code>BACKUP DATABASE MyDB TO DISK='d:\MyDB.BAK'</code> (and its work fine)</p>
  
  <p>to restore i done this: <code>USE MASTER RESTORE DATABASE MyDB FROM DISK='d:\MyDB.BAK</code></p>
  
  <p>and got this error:</p>
  
  <pre><code>Msg 3159, Level 16, State 1, Line 7
  The tail of the log for the database "MyDB " has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log.
  Msg 3013, Level 16, State 1, Line 7
  RESTORE DATABASE is terminating abnormally.
  </code></pre>
  
  <p>Where I'm wrong  ? what is missing ?</p>
  
  <p>thank's in advance</p>