Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Into Restoring Mode

Author  Topic 

dbalearner
Constraint Violating Yak Guru

272 Posts

Posted - 2011-07-21 : 21:19:46
We have a database which is going to be in the current instance and needs to be moved to another server. All ok.

After taking the backup from current location and moved .BAK file to new server and being created there. All ok.

But I want to make the current (Old) server this database to be set as in RESTORING MODE.


How can I change the decommissioned server's database into RESTORING MODE.

Many Thanks for your advise.

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-07-21 : 21:54:23
Restoring so that no one can use it, or restoring so that you can apply log backups to it?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

dbalearner
Constraint Violating Yak Guru

272 Posts

Posted - 2011-07-21 : 22:01:38
Thanks Gail.

I want to see like this.

Database_name (Restoring...)

I am not aware of how this can be done in RESTORING... mode

The idea is to not to make this database in functionality but in the event if requires should be made Available by rreturning to NORMAL.

Many Thanks Gail.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-07-21 : 22:46:08
Specify WITH NORECOVERY to get it into this "restoring..." state.

I'd recommend using mirroring though so you can easily and quickly fall back. You'll be in this "restoring..." state with mirroring too.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-07-21 : 23:09:45
Backup log <db name> to disk = 'somewhere' WITH NORECOVERY

--
Gail Shaw
SQL Server MVP
Go to Top of Page

dbalearner
Constraint Violating Yak Guru

272 Posts

Posted - 2011-07-21 : 23:22:16
The database is in SIMPLE recovery mode and unable to perform.

Any solution.
Many Thanks.
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-07-22 : 05:59:17
Why do you specifically want to make it restoring? why not offline?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

dbalearner
Constraint Violating Yak Guru

272 Posts

Posted - 2011-07-27 : 19:25:55
Since we have 2 environments like Cluster Servers and Logshipping based Primary to Standby nature.

When the databases have migrated from Clustering environment to Primary Server on the Logshipping, the databases were Changed to IN RESTORING MODE on the Cluster Server and later we have deleted as it were no more required.

Now,The reason for asking to make the database IN RESTORING MODE (apart from making it OFFLINE) how can this be made on Cluster OR any other Environment of server nature.

Thanks All.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-07-27 : 19:54:52
Change to FULL recovery model and use mirroring/log shipping/restore logs.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-07-28 : 06:43:01
If you just want the databases unusable, take them offline. There doesn't sound like there's any valid reason to take them into restoring in your scenario.

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -