Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Trigger Help Expand / Collapse
Author
Message
Posted Tuesday, January 8, 2013 2:04 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, November 5, 2014 3:40 AM
Points: 1,608, Visits: 381
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.
Post #1404056
Posted Sunday, January 13, 2013 10:16 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:12 AM
Points: 7,135, Visits: 12,746
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
Post #1406486
Posted Tuesday, January 15, 2013 11:23 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, November 5, 2014 3:40 AM
Points: 1,608, Visits: 381
Thank you,
I will check with it.
Post #1407620
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse