January 8, 2013 at 2:04 am
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.
January 13, 2013 at 10:16 am
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
January 15, 2013 at 11:23 pm
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