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.
Author |
Topic |
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2010-10-01 : 03:24:35
|
Dear Memberi have use sql server2008I have set a recovery model is FULL in my database . but it is changes simple when we restart sql server services.so what i can do it is not change recovery model. it is set only full.thanks in advance |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2010-10-01 : 13:42:15
|
Also check for startup stored procedures. And check the SQL error log as all recovery model changes will be logged.--Gail ShawSQL Server MVP |
 |
|
SQLPillai
Starting Member
2 Posts |
Posted - 2010-10-07 : 11:37:16
|
I had that happen to me one time, and it was some embedded code in a SQL Agent job that does an ALTER DATABASE that SETs the RECOVERY to SIMPLE. Took me some time to figure it out - as GilaMonster said, you can figure this out by comparing your SQL Server Logs to your schedules.But if you are seeing this happen only during startups, well, it could be the startup procedures. |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2010-10-07 : 12:30:09
|
quote: Originally posted by SQLPillai I had that happen to me one time, and it was some embedded code in a SQL Agent job that does an ALTER DATABASE that SETs the RECOVERY to SIMPLE.
That's indicative of someone not understanding the effect this will have on point in time recovery. I'd guess that the recovery model was being switched to simple due to the index rebuilds, however that is a terrible idea. Instead, increase your tlog backup frequency, add disk space to accomodate the large transaction, OR switch to bulk_logged recovery (which I don't recommend anyway as that impacts your point in time recovery options too).Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog |
 |
|
|
|
|