Link to home
Start Free TrialLog in
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)Flag for United States of America

asked on

Restore Script

I need a script to restore a backed up DB.

What I have thus far:

RESTORE DATABASE YourDB
FROM DISK = 'C:...\MyDB.bak'
WITH MOVE 'YourMDFLogicalName' TO 'C:....\MyDB.mdf',
MOVE 'YourLDFLogicalName' TO 'C:....\MyDB.ldf'

Can someone tell me what to put in for 'YourMDFLogicalName' and 'YourLDFLogicalName'?

See https://www.experts-exchange.com/questions/27937128/Script-to-Restore-DB.html

Kevin
ASKER CERTIFIED SOLUTION
Avatar of MrAli
MrAli
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial