I have an sql server database and I want to make a mirror copy of it on my local computer. I tried to use the copy database wizard but it fails. It seems me to look at the event log for the reason but all it says in the event log is
Package "CDW_4" failed.
so I have no clue why it is failing.
Is there another way to do this?
Best Answer
I am assuming that by mirror copy ==> you mean at the point when the database full backup was taken.
If that is not the case, then for near to realtime copy of your database, I would suggest transactional replication.
Also, if you are using enterprise edition, then you can leverage the benefits of database SNAPSHOTS.
Step 1: Make a FULL database backup
Step 2: Restore the backup taken in step 1
with move
.Logical file name can be found using
sp_helpdb database_name
orrestore filelistonly from disk = D:\backups\db_name_FULL.bak
e.g.