SEARCH
    GO
 
 
 
Nigel's Blog
Photo Albums
File Archie
Technical Notes
Rachel's Workshop
My Threads
About Nigel
FreeTalk
 
  Nigel's Blog
 
Nigel's Blog
 

 

20151029 [FIND DELETED OBJECT THROUGH TRNSACTION LOG]

Posted by on Thursday, October 29, 2015 (PST)

SQL;T-SQL
The following query will return user name and transaction id, and detail transaction info. You will not be able to find the deleted object name. SELECT SUSER_SNAME([Transaction SID]), [Transaction ID], * FROM fn_dblog(NULL, NULL) WHERE [Transaction Name] = 'DROPOBJ' To find out deleted object name. You need to use the following query to find it from the backup database with the transaction id. SELECT TOP (1) [Lock Information] FROM fn_dblog (NULL, NULL) WHERE [Transaction Id] = '0000:006d8c63' AND [Lock Information] LIKE '%SCH_M OBJECT%'

 

Add Your Comment

 
 
 
New Photos 
 

 

  • 20120313(Jessie's Birthday)
    20120313;201203;2012;

  • 20120313(Jessie's Birthday)
    20120313;201203;2012;

  • 20120313(Jessie's Birthday)
    20120313;201203;2012;

  •  
     

     

     

    Most Popular Photos
     

     

  • 20060802(Hooters)
    Hooters, Taipei, Taiwan

  • 20060708(Sun-Moon Lake)
    Sun-Moon Lake, Taichung, Taiwan

  • 20060802(Hooters)
    Hooters, Taipei, Taiwan

  •  
     
     
    System Administrator: Nigel H. Lin
    IIS7.0 SBS2011