Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the best way to copy over all transactions on my db to another

Status
Not open for further replies.

hoggle

Programmer
Jul 13, 2001
124
US
I'm wondering what is the best way to replicate all transactions (inserts, updates, and deltes) from one sql 2000 server to another, at as close to "real-time" as possible. We need to have a up to date server ready to go in case the main db server should fail.

I was looking at using a dts package to do it and have it just run every minute or so, and only insert any new records or updates, but I can't think how I'd do the deletes.

or

Another way I thought I could do it would be have a trigger that would fire off on all updates, inserts, or deletes and have it write the new information over, via a stored procedure that would activate a dts.
(but since it would be on another db system I'd still have to set up a package to run, because as far as I know you cannot reference a seperate computer in a sql statment. IE: myDB1.dbo.table1 I can't put something like this: server2.myDB1.dbo.table1)

One of the major problems is that I can't have the data replicate hours later, it has to be as close to "real-time" as possible.

How does everyone else out there do something like this?

Thanks for any input and direction :)
 
I did a little research on log shipping and it seems like that will work.
Anyone have any other ideas, or input on log shipping?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top