RESTORE DATABASE MyTempCopy FROM DISK='c:your.bak' WITH MOVE 'LogicalNameForTheMDF' TO 'c:MyTempCopy.mdf', MOVE 'LogicalNameForTheLDF' TO 'c:MyTempCopy_log.ldf'