troubleshooting Question

restoring a copy database using a full backup

Avatar of scm0sml
scm0sml asked on
Microsoft SQL Server 2008
11 Comments1 Solution419 ViewsLast Modified:
Hi,

I have a large database that I want to make a copy of so that I can then remove all the audit information that is stored in there to be able to copy it to my local computer for testing purposes.

I have the backup up file of my database, say mydatabase.bak

I am trying to run the following sql to restore it to a blank database I have created mydatabasebackup.

restore database simon
from disk ='c:\folder\mydatabase.bak'
with norecovery,
move 'c:\simon\weddingplanner.bak' to 'c:\folder\mydatabasebackup.bak'

but I'm getting:
he backup set holds a backup of a database other than the existing 'mydatabasebackup'
database.

What am I doing wrong?

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros