Hi, I am using SQLEXPR 2008. I have take database Backup from 2008 SQL, Using Script and tried to restore the database on another machine having SQLEXPR 2012 Installed using SQL Script and getting Following error
SQL Script :
1.BACK UP : BACKUP DATABASE test TO DISK='D:\SQLServerBackups\test.dat'
2.RESTORE: RESTORE DATABASE test FROM DISK = 'D:\SQLServerBackups\test.dat' WITH REPLACE
FOLLOWING ERROR
1------------------------ 1 --- > WHY THIS ERROR -- THIS PATH WILL NOT BE THERE ON NEW MACHINEDirectory lookup for the file "C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.APAYROLL\MSSQL\DATA\test.mdf" failed with the operating system error 3(The system cannot find the path specified.).
2------------------------ 2
File 'test' cannot be restored to 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.APAYROLL\MSSQL\DATA\test.mdf'. Use WITH MOVE to identify a valid location for the file.
3------------------------ 3
Directory lookup for the file "C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.APAYROLL\MSSQL\DATA\test_log.LDF" failed with the operating system error 3(The system cannot find the path specified.).
4------------------------ 4
File 'tran_BBLMS_Jan2015_Dec2015_log' cannot be restored to 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.APAYROLL\MSSQL\DATA\test_log.LDF'. Use WITH MOVE to identify a valid location for the file.