Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: ChrisFretwellPosted on 2004-04-02 at 20:23:13ID: 10746304
run this command first. It gives you the details of what you need to know about that backup.
me]'
restore filelistonly from disk = 'c:\temp\james\dev.bak'
this will tell you about the mdf and ldf and their logical names. then you can run the restore with move.
it sounds like you want to restore to somewhere other than where the original was. for this you need to use with move like this
move '[logical_file_name]' to '[operating_system_file_na
so based on what your filelistonly shows you, you can
restore database dev
from disk = 'c:\temp\james\dev.bak'
with move 'dev' to 'c:\dev_data.mdf',
move 'dev_log' to 'c:\dev_log.ldf'
Chris