I am setting up my first restore stored procedure for my test server. I am getting the following error: Logical file is not part of database. RESTORE DATABASE is terminating abnormally
The current backup files are located on a server called \\AMSPBI\F$\Data
This code is being run on a server called AMSPBI2
I want the mdf and ldf files in the \\AMSPBI\F$\Data directory to be copied into the AMSPBI2 D drive Data dirctory
Any help is appreciated
Tom
Code:
BEGIN
RESTORE DATABASE [rptdata_ahs] FROM DISK = N'D:\Backup\ahsfull.bak'
WITH FILE = 1, MOVE N'\\AMSPBI\F$\Data\rptdata_ahs' TO N'D:\Data\rptdata_ahs.mdf',
MOVE N'\\AMSPBI\F$\Data\rptdata_ahs_log' TO N'D:\Data\rptdata_ahs.ldf', NOUNLOAD, STATS = 10
END
The current backup files are located on a server called \\AMSPBI\F$\Data
This code is being run on a server called AMSPBI2
I want the mdf and ldf files in the \\AMSPBI\F$\Data directory to be copied into the AMSPBI2 D drive Data dirctory
Any help is appreciated
Tom