Reputation: 4009
Is there any view or system table in SQL Server which returns all the deleted objects (tables, views etc) in a particular database?
Upvotes: 2
Views: 1771
Reputation: 3253
Try this:
SELECT
[Operation],
[Transaction Id],
[Transaction SID],
[Transaction Name],
[Begin Time],
[SPID],
[Description]
FROM
fn_dblog (NULL, NULL)
WHERE
[Transaction Name] = 'DROPOBJ'
Upvotes: 2
Reputation: 453608
No.
Once they are deleted they are gone.
The space consumed by them will eventually be overwritten, it might be possible to get some information from analysis of the data files before this happens or the transaction log but there is nothing built in.
Upvotes: 5