audit sa login - trigger?

  • I would like to receive an email when a user tries to login to sql management studio using sa account. Any ideas on how can it be done? Triggerr would be one of the solutions but i do not have the script?

  • You can do it with a login trigger if you're on SP2 or above. There's at least one SSC article on login triggers, so try a search (I don't have the URL handy)

    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

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

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