How to find who and when drop link server ?

已答复 How to find who and when drop link server ?

  • 2012年8月22日 18:21
     
     

    What is the command to find who and when drop the linked server?

    I tried to find out in default trace but no evidence logged

     
    select * from sys.traces
    SELECT * FROM fn_trace_gettable(‘<<Path>>, default) Trace order by StartTime desc

    but no luck.Please help.

全部回复

  • 2012年8月22日 19:47
    版主
     
     
    This event is not tracked in the defalt trace nor the errorlog file, I'm afraid. So you are out of luck unless you had some other means of auditing setup.

    Tibor Karaszi, SQL Server MVP | web | blog

  • 2012年8月23日 8:19
     
     

    Thanks for reply TiborK.

    I do not have any other auditing setup,having only default trace.It mean I never came to know who and when drop my linked server :(

  • 2012年8月23日 8:25
    答复者
     
     已答复
    IIRW drop linked server is done by using sp_dropserver system stored procedure which requires ALTER ANY LINKED SERVER permission on the server. Check out in your company who have such permission + sysadmin  of cause.

    Best Regards,Uri Dimant SQL Server MVP,http://sqlblog.com/blogs/uri_dimant/