SQL Server 2000General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Server 2000 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
Here is the deal, I HOPE someone can assist me in this. I have a SQL server database that is hosted through a company that wont allow me any replication or subscription services to sync my data to a local SQL server I have running. I have been attempting to come up with something on my own in order to at least have my remote data sync to my local copy in various intervals throughout the day. Here is what I have come up with so far but am looking for a better and more efficient way to do this. (And this isn't 100% functional at this point either):
BACKUP LOG DBname TO backup_device_name WITH INIT, NO_TRUNCATE
WAITFOR DELAY '00:00:05'
(this next step executes a stored procedure on the destination server that looks like this):
restore_Tiamat_ETS_log_backups AS
ALTER DATABASE Tiamat_ETS SET SINGLE_USER
RESTORE LOG Tiamat_ETS
FROM DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\logs\Tiamat_ETS_log_backup_dev ice.bak'
WITH
DBO_ONLY,
STANDBY = 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\logs\undo_Tiamat_ETS.ldf'
WAITFOR DELAY '00:00:05'
GO
That is how far I am now but it isn't working how I would like. Any thoughts?