How to find deleted database?

  • HI,

    Someone deleted database in sql server 2005 server, How to find who has deleted, it has recorded in sql log file?

    Please help me.

    Thanks

  • It'll be in the default trace, providing the delete wasn't too long ago. The trace files are in the SQL error log directory, you can copy them then open in profiler or use fn_trace_gettable function

    p.s. Please post SQL 2005 questions in the SQL 2005 forums in future.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I could not understand , pleas give example

  • http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • or just right click on instance/reports/schema changes history

    __________________________
    Allzu viel ist ungesund...

  • Hi Guys

    Thanks for those information.

    On my server, default trace is enabled BUT I can't find the .trc file.

    In sys.traces, path is always empty.

    I Can't find any .trc file in SQL Server error log directory.

    As the report uses the default .trc file too, I can't test it !

    Any idea ?

  • Are you sure default trace is enabled? Are there any trace files in the SQL error log directory?

    What's the entire output of a query of sys.traces?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • i need information from 5 days back, someone users deleted database?

  • Did you check the default trace?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Default trace is enabled :

    name minimummaximumconfig_valuerun_value

    default trace enabled0 1 1 1

    I can't find any trc file in error log directory.

    sys.traces :

    see attachment.

  • azdzn, please start a new thread rather than hijacking someone else's

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • ok,, My question is , someone deleted database before 5 days, We can find out through default trace file?

  • Sorry guys, I will create my post.

  • solomon.jernas (1/10/2012)


    ok,, My question is , someone deleted database before 5 days, We can find out through default trace file?

    Yes.

  • Pls Could u send the Example

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic. Login to reply