Re: Recovery Model Question.
- From: "Cipher" <cipher@xxxxxxx>
- Date: Thu, 15 Mar 2007 09:59:54 +0200
First,thnx a lot guys for your support.
I run this sql script through Query Analyzer :
use master;
select 'alter database' +name+ 'set recovery simple'
from dbo.sysdatabases
where name not in('master','tempdb','msdb','model')
go
but the weird is that the script runs succefully without errors ,but it
didnt make any change
to any databases!I check the recovery model and remains unfortunately full
in all databases..
i dont understand..
Also because i forgot to mention it,the SQL version is SQL 2000 SP 4
Cipher.
"Hari Prasad" <hari_prasad_k@xxxxxxxxxxx> wrote in message
news:eVZMFxpZHHA.1400@xxxxxxxxxxxxxxxxxxxxxxx
Tibor,
I will even keep MSDB in simple recovery mode and takes the differential
backup twice a day.
SELECT 'ALTER DATABASE ' + name + ' SET RECOVERY FULL'
FROM sys.databases
WHERE name NOT IN('master', 'tempdb','MSDB')
Thanks
Hari
"Tibor Karaszi" <tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx> wrote
in message news:eSAEbjnZHHA.5044@xxxxxxxxxxxxxxxxxxxxxxx
No version posted, assuming 2005:
Modify below to your liking, run it, take the result, tidy up and verify,
and execute it.
SELECT 'ALTER DATABASE ' + name + ' SET RECOVERY FULL' FROM sys.databases
WHERE name NOT IN('master', 'tempdb')
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Morgan" <morgan@xxxxxxxxxx> wrote in message
news:%23V1czMnZHHA.1400@xxxxxxxxxxxxxxxxxxxxxxx
Yes,exactly.
I want to change massive all the 200 databases recovery
model option from full to simple but i dont want to achieve this
manually
because of the huge overhead.
For that reason i asked ,if theres a more quicker and better way to
achive this.
Thnx a lot.
Cipher.
"Immy" <therealasianbabe@xxxxxxxxxxx> wrote in message
news:%23DV67OlZHHA.348@xxxxxxxxxxxxxxxxxxxxxxx
Are you asking for a way to change this value against 200 different
databases?
"Cipher" <cipher@xxxxxxx> wrote in message
news:eIh22lkZHHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
Hello to everyone,
I want to ask if there is a way ,maybe through a strored procedure or
sql script
to change massive in 200 databases for example the recovery model from
full to simple ??
If anybody has an idea or knows i will appreciate it.
Thanx a lot.
Cipher.
.
- Follow-Ups:
- Re: Recovery Model Question.
- From: Tibor Karaszi
- Re: Recovery Model Question.
- References:
- Recovery Model Question.
- From: Cipher
- Re: Recovery Model Question.
- From: Immy
- Re: Recovery Model Question.
- From: Morgan
- Re: Recovery Model Question.
- From: Tibor Karaszi
- Re: Recovery Model Question.
- From: Hari Prasad
- Recovery Model Question.
- Prev by Date: Re: Recovery Model Question.
- Next by Date: Re: Recovery Model Question.
- Previous by thread: Re: Recovery Model Question.
- Next by thread: Re: Recovery Model Question.
- Index(es):
Relevant Pages
|