January 10, 2012 at 4:41 am
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
January 10, 2012 at 4:49 am
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
January 10, 2012 at 5:09 am
I could not understand , pleas give example
January 10, 2012 at 5:25 am
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
January 10, 2012 at 5:29 am
or just right click on instance/reports/schema changes history
__________________________
Allzu viel ist ungesund...
January 10, 2012 at 5:39 am
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 ?
January 10, 2012 at 6:31 am
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
January 10, 2012 at 6:46 am
i need information from 5 days back, someone users deleted database?
January 10, 2012 at 6:51 am
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
January 10, 2012 at 6:57 am
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.
January 10, 2012 at 7:05 am
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
January 10, 2012 at 7:10 am
ok,, My question is , someone deleted database before 5 days, We can find out through default trace file?
January 10, 2012 at 7:10 am
Sorry guys, I will create my post.
January 10, 2012 at 7:14 am
solomon.jernas (1/10/2012)
ok,, My question is , someone deleted database before 5 days, We can find out through default trace file?
Yes.
January 10, 2012 at 7:18 am
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