|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 10:01 PM
Points: 1,044,
Visits: 226
|
|
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.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 7:22 AM
Points: 6,693,
Visits: 11,707
|
|
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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 10:01 PM
Points: 1,044,
Visits: 226
|
|
Thank you, I will check with it.
|
|
|
|