Link to home
Start Free TrialLog in
Avatar of jwa082276
jwa082276

asked on

Setting up DoubleTake to replicate mdf and ldf file for sql server - first time

I am setting up doubletake for the first time. I create a test database on a sql server A.  I backed up that database and restored it on sql server B. I created a replication set to replicate that mdf and ldf file from sql server A to sql server B.  However, after the mirroring starts it errors out saying to "close the file that is in use on the target".  So, I detached that database on server B and started back mirroring and the errors go away.

Can I not have that database attached on Server B while mirroring is happening???? I need it attached.  Can someone lead me in the right direction with this?
Avatar of jorge_toriz
jorge_toriz
Flag of Mexico image

Well, while you use mirroring the database must be "restoring..."... all you can do to read it is create a snapshot
Avatar of jwa082276
jwa082276

ASKER

so should I use "replication" and not mirroring? will this allow me to have the database attached?
Well, what do you want to get?

To split your work between servers you must use replication, to have a backup server you must use mirroring
This is what I am trying to accomplish.....
I have to a nightly refresh of a database on server B which is in a differnt location than server A. the size of the database is too large to copy over the network so I was thinking doubletake to replicate the data from the db on server A to a db on server B so that on a nightly basis I can take a backup locaally on server B and do my refresh.  I can NOT use sql replication because of the appilcation restrictions.  I was hoping the db on server B could still be attached so that at night I can just schedule a job to do a nightly backup.

Understand what I am trying to accomplish?
Ups, not so clear.

On server B you have a database that receives a nightly refresh... must this database be replicated on server A?
DUE DISCLOSURE: I work for Double-Take =)
Due to the way we replicate, you won't be able to mount the DB on Server B.  You can, however, back up the MDF and LDF files as flat files from Server B while the replication is going on.  We'll play nice with the backup tools.

Hope this helps.
What backup tool would you sugguest we use?
ASKER CERTIFIED SOLUTION
Avatar of TalonNYC
TalonNYC
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