RESTORING DATABASE WITH T-SQL SCRIPT


RESTORE DATABASE [Sample]
FROM DISK='D:\School\Sample_FULL_10102018.BAK'
WITH RECOVERY,  
MOVE 'Sample' –Logical file name of the data file
TO 'D:\School\School_Data.mdf',  
MOVE 'Sample_log'--Logical file name of the log file
TO 'D:\School\School_Log.ldf';

Comments

Popular posts from this blog

Always On FailOver Events

The transaction log for database is full due to 'OLDEST_PAGE'

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"