Something is changing the RECOVERY MODE to SIMPLE to ALL databases...

  • Check all your SQL Agent jobs. Probably find it's a badly written index rebuild job.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Hi, thanks foir the reply, I looked with this search in all jobs:(with SET RECOVERY, ALTER DATABASE, DBCC SHRINK)

    EXEC sp_MSForEachDB ' Use ?; select ''?'', o.name,m.definition from ?.SYS.sql_modules m

    inner join SYS.sysobjects o on m.object_id=o.id

    where definition like ''%SET RECOVERY%'''

    Didn't find anything, just comments...

    Tell me what you think.

  • That query's searching procedures and functions, not jobs.

    Look at your SQL Agent scheduled jobs, check their steps, see what they do.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • You can try this as a shortcut

    SELECT *

    FROM msdb.dbo.sysjobsteps

    WHERE command LIKE 'alter database%';

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • check any maintenance plans as well if you have them.

    ---------------------------------------------------------------------

  • Hi,

    The Jobs perform 2 things:

    1) calls to stored procs, that I already checked

    2) Calls to DTSx (Haven't checked)

    So, besides the DTS, is there anything automatic or internal of SQL Server that could be doing this?

  • Lorenzo Mota (5/27/2013)


    So, besides the DTS, is there anything automatic or internal of SQL Server that could be doing this?

    No. SQL will never automatically change database settings. If recovery model is changing, you have some task that someone created which is doing that.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (5/27/2013)


    Lorenzo Mota (5/27/2013)


    So, besides the DTS, is there anything automatic or internal of SQL Server that could be doing this?

    No. SQL will never automatically change database settings. If recovery model is changing, you have some task that someone created which is doing that.

    Like Gail said, this is something that somebody has created/written/implemented that is changing your recovery models.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

Viewing 8 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply