Database Missing ! Finding the root cause

断了今生、忘了曾经 提交于 2019-12-10 18:47:47

问题


Assume one fine day an admin comes to the office like he always does to do his admin tasks on Sql Server Databases and to his surprise finds a database missing. He has no clue of who dropped it or was it from an external batch or SQL injection etc ... where do one start an investigation and what are the important parameters/ findings that should happen to find the root cause of the Drop DB. Like what logs shud be checked and what information shud be investigated ?


回答1:


There is a defaul trace managed by SQL Server in a log file under c:\Program Files... You can view this file by SQL command. For example to see the file log_19.trc you can fire command like

SELECT * 
FROM fn_trace_gettable
('C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\log_19.trc', default)

This will probably show when and who dropped the database. More information can be found Here...



来源:https://stackoverflow.com/questions/3666090/database-missing-finding-the-root-cause

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!