Audit - Use Database command

  • Hi,

    Is there any way to audit the "use <database>" command?

    Does it trigger an event so I can perhaps grap it inside a DML trigger ?

  • While I don't know if that's possible or not, I'm not sure why that would be useful. Just because a USE statement is executed doesn't mean that one can't reference some other database in the same session and on the same click of the execute button in SSMS.

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

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

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