This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2222|Reply: 0

[Source] SQL Server Restore Database Exception (The system cannot find the file specified)

[Copy link]
Posted on 9/18/2024 9:08:17 PM | | | |
Requirements: Backing up the database under Windows and then restoring the database under Linux fails.

The error is as follows:

Title: Microsoft SQL Server Management Studio
------------------------------

Failed when restoring database "itsvse". (Microsoft.SqlServer.Management.RelationalEngineTasks)

------------------------------
Additional information:

Microsoft.Data.SqlClient.SqlError: Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\itsvse.mdf" failed with the operating system error 2(The system cannot find the file specified.). (Microsoft.SqlServer.SmoExtended)

For help information, click:https://go.microsoft.com/fwlink? ... .0&LinkId=20476

------------------------------
Button:

Are you sure
------------------------------
Error Cause: C:\Program Files\Microsoft SQL Server\MSSQL15 cannot be found on the Linux server. MSSQLSERVER\MSSQL\DATA\ directory, resulting in the database not being successfully restored.

Solution: Find the "Files" tab in the restore database and tick theRelocate all files to foldersAs shown in the figure below:




(End)





Previous:View CPU temperature and frequency on Linux systems
Next:HarmonyOS architecture evolution and key technology sharing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com