Skip to content Skip to sidebar Skip to footer

How To Restore The Backup With Different Name

How can i restore the below Amrutha backup with different name through below script. Could any one please help me doing this. RESTORE database Amrutha FROM DISK = 'D:\Amrutha.b

Solution 1:

Just specify the new name - as database name and as file names:

RESTORE database Amrutha_NEW
FROM DISK = 'D:\Amrutha.bak'
WITH 
  MOVE 'Amrutha' TO 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\AmruthaNEW.mdf',
  MOVE 'Amrutha_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\AmruthaNEW_log.LDF',
CHECKSUM;

Post a Comment for "How To Restore The Backup With Different Name"