Closed HenkAJV closed 2 months ago
I sent this issue to the SQL backup owners for insight
The issue here is the database in question being restore is a "system" database, not a "user" database.
Explanation here:
""" You can't restore a backup of a system database (master, model, or msdb) on a server build that differs from the build on which the backup was originally created. """
SQL Linux : 2022 SQLCMD: 1.5.0 GO (OI also tried sqlcmd ODBC mssql-tools18 ) Scenario: Stared SQL server on Ubuntu Linux 20.04 singe-yuser mode SQL command:
use [master]; RESTORE DATABASE [master] FROM DISK = N'/var/opt/mssql/data/master.bak' WITH FILE=1, MOVE N'master' to N'/var/opt/mssql/data/master.mdf', MOVE N'mastlog' to N'/var/opt/mssql/data/mastlog.ldf', NOUNLOAD, REPLACE, STATS=5; GO
outputThe SQL server difference between the earlier backup was one service pack, not even a different SQL server version. It did not make sense and I wanted to report it here in case this is an issue with the sqlcmd tool.
The assumption is that one can restore a backup made in earlier versions of SQL and restore it to later versions of SQL. Am I missing something?