MSSQL-The log tail of the database XXXX has not been backed up. If the log contains work that you do not want to lose, use BACKUP log with NORECOVERY to back up the log. Please use the WITH REPLA of the RESTORE statement

Source: Internet
Author: User

The reason for this error is that there is a database in your database server with the same name!

RESTORE DATABASE [student] from DISK = N ' g:\ backup files ' with file = 1, move n ' student ' to n ' G:\student.mdf ', move n ' Studen T_log ' to N ' g:\\student.ldf ', nounload,replace, STATS = ten, PASSWORD = ' 123456 '

So add REPLACE or STOPAT after with to restore! But the database with the same name may be overwritten!

MSSQL-The log tail of the database XXXX has not been backed up. If the log contains work that you do not want to lose, use BACKUP log with NORECOVERY to back up the log. Please use the WITH REPLA of the RESTORE statement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.