Single mode to MULTI_USER mode

  • Some changed from MULTI_USER to single, is there way to find out how it happend and when and who did?Thank you

  • SQL Server logs will have this info...

  • I don't see it, is there particular job or command?

  • If you don't have an existing SQL trace, there's no way to tell who did this. The SQL log should have an entry saying that it happened, but not who did it. If you can find that entry, check the time and see if there's a job corresponding.

    One possibility is that you've got the option 'Automatically fix minor errors' checked in a Database consistency check task (in a maint plan). If errors are found, the DB will be switched to single user so that the errors can be fixed.

    That check box should always be unchecked.

    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
  • Lacking a trace I'd start to investigate T-SQL jobs that backup or possibly reindex databases. Sometimes homegrown scripts contain these 'goodies'.

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • rudy komacsar (3/23/2009)


    Sometimes homegrown scripts contain these 'goodies'.

    Interestingly I see this sort of thing FAR more often in the scripts that are built through wizards, maintenance plans, etc.. In my experience homegrown scripts rarely include this sort of thing since it is usually an extra option that a basic script will not include.

Viewing 6 posts - 1 through 5 (of 5 total)

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