Olá Henrique, quando tento o comando com WITH REPLACE, aparece o seguinte erro:
Msg 5133, Level 16, State 1, Server nandes, Line 1
Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\SUCOS_VENDAS.mdf" failed with the operating system error 2(The system cannot find the file specified.).
Msg 3156, Level 16, State 3, Server nandes, Line 1
File 'SUCOS_VENDAS' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\SUCOS_VENDAS.mdf'. Use WITH MOVE to identify a valid location for the file.
Msg 5133, Level 16, State 1, Server nandes, Line 1
Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\SUCOS_VENDAS_log.ldf" failed with the operating system error 2(The system cannot find the file specified.).
Msg 3156, Level 16, State 3, Server nandes, Line 1
File 'SUCOS_VENDAS_log' cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\SUCOS_VENDAS_log.ldf'. Use WITH MOVE to identify a valid location for the file.
Msg 3119, Level 16, State 1, Server nandes, Line 1
Problems were identified while planning for the RESTORE statement. Previous messages provide details.
Msg 3013, Level 16, State 1, Server nandes, Line 1
RESTORE DATABASE is terminating abnormally.