When trying to restore a dbname.bak
file (from a windows machine) for SQL Server on a linux machine using:
RESTORE DATABASE dbname
FROM DISK = '/path/to/dbname.bak'
I got the following error:
Error: Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL\DATA\dbname.mdf" failed with the operating system error 2(The system cannot find the file specified.).
SQLState: S0001
ErrorCode: 5133
and also another error for the dbname_log.ldf
file.
Why is SQL Server trying to reference windows files on a linux machine, I hear you ask?