Syntax SQL2005 operating on backup and restore

The original database: restore database training version from disk = 'D: \ db -recovery \ @@@ BAK.' WITH REPLACE / WITH NORECOVERY
to back up the database: backup database practice version to disk = N'd: \ @@ \ @@. bak '


Analysis:
1. restore operation, using the master database query
2.WITH REPLACE: Overwrite existing database
3.WIEH NORECOVERY: Source database holding state is being restored.
4. When the backup operation is performed on the next N superscript bear behind the comma
5. We can see from the error message, this problem occurs primarily during the restore operation, the Sql Server database just written to the log, resulting in operating conflict. The above two methods can solve the problem not been backed up database log tail.

Guess you like

Origin www.cnblogs.com/guiguizhu/p/12079748.html