Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automated restore of backups
Message
From
25/07/2008 14:34:42
 
 
To
25/07/2008 11:24:24
General information
Forum:
Microsoft SQL Server
Category:
Backups
Miscellaneous
Thread ID:
01334088
Message ID:
01334130
Views:
10
This message has been marked as the solution to the initial question of the thread.
Well, I guess no one else has replied, so I did this:
Alter Database AdventureWorks set offline
RESTORE DATABASE AdventureWorks
   FROM DISK = 'D:\Program Files\Microsoft SQL Server\MSSQL.1\Backup\AdventureWorks.bak'
   WITH RECOVERY

I guess that works.  Thanks.
>I need to hand-move a DB backup file each day to an isolated network, and restore it. I want to automate this as much as possible. The DB on the isolated network is read only. I would like to use an Integrated Services Project to automate the restore process.
>
>What would be the best way to ensure that the DB is available for the restore (i.e. no one is connected to it). Would I use a SQL command to put it in single user mode, then put it back after (using the Alter database command)?
>
>All help is greatly appreciated.
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Previous
Reply
Map
View

Click here to load this message in the networking platform