|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Wednesday, January 04, 2012 3:37 AM
Points: 52,
Visits: 37
|
|
I would like to add couple of aditions/changes:
1. You don't need to use xp_cmdshell to find whether the new backup is available. You can refer to MSDB database to find all backups that have taken place 2. In case you need to move the backups on other server, if its on WAN you can do so by FTP, if in same domain, you can take backup on the target server itself.
I had done this in early days when I was more a developer and a fresh DBA. I had written a VB program by implementing timer control. I will give complete steps as per the points added in short while.
Thanks, Girish
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 1:02 AM
Points: 206,
Visits: 425
|
|
Hi Girish,
Checking the MSDB is okay if the target database is also on the same server as the source. If the target DB is on a remote server it may probably need a linked server to the source server's MSDB. Hence the idea of checking the filename pattern using xp_cmdshell on a directory accessible from the target server, regardless of how the files land up in that directory - whether by FTP or by taking backup directly into that directory.
I like your idea of FTP'ing the backups to a remote target server. Please post the code for everyone's benefit.
Thanks
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, April 29, 2011 10:02 AM
Points: 1,
Visits: 56
|
|
Hi Girish,
I want to implement the customized solution to synch my test database with production database, the only thing for i what i am worried about is whether After implementing the cutomized solution, can we use the test database for all the transactions. Since this is not available in log_shipping solution, because after restore the database is in read-only mode and any other transaction other than read can not be executed.
Regards, Ibrahim
|
|
|
|