In the rescent times someone in the company is dropping the linked servers. Is there a way to capture who is dropping the linked servers on a particular server. Is there any DDL triggers available.
I recommend running profiler. This will capture all the events you specify, including logins, stored procs executed etc. One way of checking is also to filter on specific commands such as sp_dropserver.
I think its probably the most practical and simpliest way.
"I'm living so far beyond my income that we may almost be said to be living apart
Its funny, I cant find an event specified which captures the SP_addlinkedServer or sp_dropserver system stored procs which could be captured by a trigger.
I think there may be a way you can setup an event to capture this. Here is a list of trigger events which can be captured
CREATE_TABLE
ALTER_TABLE
DROP_TABLE
CREATE_INDEX
ALTER_INDEX
DROP_INDEX
CREATE_STATISTICS
UPDATE_STATISTICS
DROP_STATISTICS
CREATE_SYNONYM
DROP_SYNONYM
CREATE_VIEW
ALTER_VIEW
DROP_VIEW
CREATE_PROCEDURE
ALTER_PROCEDURE
DROP_PROCEDURE
CREATE_FUNCTION
ALTER_FUNCTION
DROP_FUNCTION
CREATE_TRIGGER
ALTER_TRIGGER
DROP_TRIGGER
CREATE_EVENT_NOTIFICATION
DROP_EVENT_NOTIFICATION
CREATE_TYPE
DROP_TYPE
CREATE_ASSEMBLY
ALTER_ASSEMBLY
DROP_ASSEMBLY
CREATE_USER
ALTER_USER
DROP_USER
CREATE_ROLE
ALTER_ROLE
DROP_ROLE
CREATE_APPLICATION_ROLE
ALTER_APPLICATION_ROLE
DROP_APPLICATION_ROLE
CREATE_SCHEMA
ALTER_SCHEMA
DROP_SCHEMA
CREATE_MESSAGE_TYPE
ALTER_MESSAGE_TYPE
DROP_MESSAGE_TYPE
CREATE_CONTRACT
DROP_CONTRACT
CREATE_QUEUE
ALTER_QUEUE
DROP_QUEUE
CREATE_SERVICE
ALTER_SERVICE
DROP_SERVICE
CREATE_ROUTE
ALTER_ROUTE
DROP_ROUTE
GRANT_DATABASE
DENY_DATABASE
REVOKE_DATABASE
CREATE_REMOTE_SERVICE_BINDING
ALTER_REMOTE_SERVICE_BINDING
DROP_REMOTE_SERVICE_BINDING
CREATE_XML_SCHEMA_COLLECTION
ALTER_XML_SCHEMA_COLLECTION
DROP_XML_SCHEMA_COLLECTION
CREATE_PARTITION_FUNCTION
ALTER_PARTITION_FUNCTION
DROP_PARTITION_FUNCTION
CREATE_PARTITION_SCHEME
ALTER_PARTITION_SCHEME
DROP_PARTITION_SCHEME
CREATE_CERTIFICATE
ALTER_CERTIFICATE
DROP_CERTIFICATE
ALTER_AUTHORIZATION_DATABASE
CREATE_XML_INDEX
As mentioned before I would use profiler and change the filter on the text data to be %sp_dropserver% using the "Audit Schema Object Access Event".
This means only these events will be captured where it alters the schema access e.g. sp_addlinkedserver or sp_dropserver.
"I'm living so far beyond my income that we may almost be said to be living apart
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.