Trigger Help

  • Hi, I want to create trigger when i fore below code it should keep track of it..

    SP_CONFIGURE 'SHOW ADVANCED OPTION',1

    RECONFIGURE

    go

    SP_CONFIGURE 'xp_cmdshell',0

    RECONFIGURE

    go

    I mean when any configuration get changes, a trigger should fired.

  • SQL Server already keeps track of this in the SQL Error Log. SQL Server adds an entry to the Error Log whenever a server configuration option changes.

    What are you trying to accomplish by implementing a trigger? Policy Based Management may be able to help you here if you're trying to prevent someone from enabling or disabling xp_cmdshell.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Thank you,

    I will check with it.

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

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