Alert if anyone create/drops a database or login in my Server

  • I need to be alerted if anyone create/drops a database or even a login in my Server(SQL Server 2005). How do I go about implementing this ??

    Thanks in Advance !

    Sanz
  • check out DDL triggers

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

  • The article for "create trigger" in Books Online (and MSDN) has the data on how to build a trigger that responds to DDL events, which includes such things as creating or dropping a database or login, as well as other events of a similar nature.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 3 posts - 1 through 2 (of 2 total)

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