January 6, 2016 at 1:04 pm
Hi
Is this possible to get the details about who deleted the LDF file from a database?
Thanks.
January 6, 2016 at 3:24 pm
No, at least not from SQL Server. Deleting the ldf is a file operation done in the OS. And it can only be done when the SQL Server service is not running, or when the database is detached or offline. So there is no way for any SQL Server service to see it.
Ask your systems admin on what audit records they have for file deletions.
January 6, 2016 at 3:30 pm
Hugo is correct. If SQL Server has control of the file, then it can't be deleted. If it can (offline, db dropped, SQL stopped), then SQL has no knowledge of this.
Check Windows recycle bin first. Might be a quick fix.
January 6, 2016 at 4:02 pm
If you mean ALTER DATABASE to drop an LDF (can't drop the last one), then that should be in the default trace. If you mean an OS file delete, then no.
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
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply