I have a project where I have multiple SharePoint SQL databases from different points in time. These different points in time are being retrieved from full SQL backups. I am trying to determine if any documents were deleted between each backup. This is in SharePoint 2010 RTM.
There are two methods that come to mind to accomplish this. I wanted to get input regarding this. If there is another method to do this, it would be great to hear.
1) In the dbo.AllDocs table use the DirName and LeafName column to build the path of the file. Once I have the path, I can do a comparison to see if it exists in the other databases.
2) Use the Id column in the dbo.AllDocs table to uniquely identify files. I am assuming this would be unique across all databases. It would also help determine if a user deleted a document then try to put it back in place.
Any input would be greatly appreciated.