You are here: Re: Backup and restore database hourly: how to implement it? « MsSQL Server « IT news, forums, messages
Re: Backup and restore database hourly: how to implement it?

Posted by Greg D. Moore \(Strider\) on 02/16/07 04:10

<danceli@gmail.com> wrote in message
news:1171584368.655858.325050@p10g2000cwp.googlegroups.com...
> The backup file is located in server A.
> how should do restore in Server B to catching backup file from serer
> A??
>

Use UNCs to refer to the location of the backup.

I'm assuming you're NOT backing up the file to the same local disk on
ServerA.


> Need I copy the backup.bak file from server A to Server B, then
> schedule job to restore at server B?
> How to set it automatically?
>
>
> On Feb 15, 2:47 pm, Erland Sommarskog <esq...@sommarskog.se> wrote:
>
>> > Now I still can schedule a job for hourly full backup on server A, but
>> > i have no idea how to schedule a job for hourly full restore dbs to
>> > server B.
>>
>> ALTER DATBASE db SET SINGLE_USER WITH ROLLBACK IMMEDIATE
>> RESTORE DATAHASE dh FROM DISK='locationofbackup'
>> ALTER DATABASE db SET MULTI_USER
>>
>> Then use Enterprise Manager or Mgmt Studio to create a job, with this
>> as the job step and set up a schedule.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация