Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Have a single Sharepoint webserver backed by a SQL 2005 server. The sharepoint server has a messed up document in a document library and I have a SQL database backup from the day before.

What are my options to get just that document back?

share|improve this question
up vote 2 down vote accepted

I'm assuming you're using SharePoint 2007. Here's a way to get a document out of the SQL database backup you have.

Are you sure you don't have versioning enabled on the document library or that it's not in the Site Collection Recycle Bin? That would save a lot of time.

share|improve this answer
Versioning is not enabled (but might be after this!). It's not in the recycle bin because it wasn't deleted, it's a Visio diagram and has somehow lost the picture and only kept the stencils when I last saved it. Probably my error. Will try the script, thanks - it looks like exactly what I wanted. – TessellatingHeckler Mar 23 '11 at 16:34
Brilliant, that did it. For the record, I needed one of the WSS_Content_{numbers} databases. – TessellatingHeckler Mar 23 '11 at 18:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.