Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using Microsoft SQL Server 2008 R2. In my server there are some Database. Now some body has deleted 2 database of them. Now i want to find him/her.

Is there any system to trace it?

Thanks in advance

Rashed
Posted

u can use following query

SQL
SELECT DATABASEPROPERTYEX('master', 'Status')
GO


Also please follow following link may it could help..

http://www.mssqltips.com/sqlservertip/1037/system-information-in-sql-server-2000-vs-sql-server-2005/[^]
 
Share this answer
 
Comments
fjdiewornncalwe 17-Oct-12 17:00pm    
How does any of this tell him who deleted a database?
Write click on database...
Reports>Standard Report> Schema Change History
 
Share this answer
 
Write click on database...Reports>Standard Report> Schema Change History
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900