index > Team Foundation Server - Version Control > Recover files directly from TfsVersionControl database?

Recover files directly from TfsVersionControl database?


First off, let me say that I'm fully aware that not backing up my databases was dumb.  I used to be a sysadmin before I got into software development so this is kind of like the equivalent of a doctor smoking 3 packs of cigarettes a day.  I should know better. 

That said, I had my TFS running in a virtual server on a USB hard drive and it dropped on the floor yesterday while TFS was running.  I've got bad blocks on the drive and it's pretty dead. 

The only TFS database I was able to retrieve was TfsVersionControl.  I've mounted it on another SQL Server and I can access it.  So, theoretically, I've got my files.  (I also was able to get the reporting services encryption key.)

Here's my question: Since a restore is out of the question, is there any way that I can just dump all the files out of TfsVersionControl?  Basically, do a get latest via stored procedure?  I don't need it to be in the right organized folder structure, just a straight-up dump of the latest version is all I need.

 -Ben




Benjamin Day - Microsoft MVP for C# - http://blog.benday.com
Benjamin Day
Try:
  1. do a clean install of TFS
  2. overwrite the TfsVersionControl database with your recovered copy
  3. clear the app tier cache by deleting "%programfiles%\microsoft visual studio 2005 team foundation server\web services\versioncontrol\data"
Richard Berg MSFT

Thanks Richard! It worked. (What a relief!)

The only diff from what you wrote was that I had to go into SQL Server and grant the TFSService user permissions on the restored TfsVersionControl database.

Thanks a ton,
-Ben




Benjamin Day - Microsoft MVP for C# - http://blog.benday.com
Benjamin Day
reply 3

You can use google to search for other answers

 

More Articles

Error checking out files "user cancellation occurred"
Check In Policy to ensure that code builds
Setting source control policies on specific branches
PIN and UNPIN event migration problem
VSS Migration Error
How to answer some user questions
Restricting Check-Out on File Type
Souce code comments
Is there a Starteam to TFS migration tool?
Problem in Migration from VSS to Team Foundation
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

regarding locking in tfs
TFS proxy in two differnt domains
Deny delete permissions on source control
TFS - periodic automatic builds if a che…
Is there a way to...?
Proxy Server for Single Remote User?
TF MSSCCI Provider on 64Bit Windows Server
Access Denied to file when Get Latest Ve…
Xml documentation file checkouts / TeamB…
Solution with multiple projects can't pe…
Time Stamp in Source Control Explorer
New Team Foundation Server MSSCCI Provid…
Problem with loading solutions (using te…
2 TFS Project - 1 Source Control Root
Middle tier caching - Is it available? (…

Hot Articles

TFS MSSCCI Provider Final fails to install
Open solution of other user
MSSCCI Provider installation error
What's become of the Team Foundation Pow…
Merge Conflict - All options diabled
GetItems for folders not sorting?
Source control error when working with M…
Source branching questionnaire
branch on a label
More than just VSS 2005?
VssConverter problem
VSS Converter error
Upgraded from VSS, Web app bindings not …
Merge between two folders except of isol…
TFS proxy in two differnt domains

Recommend Articles

Really Delete from Source Control
Error: No Pending Changes - But there ar…
Adapting source control to non-conforman…
Team Foundation Version Control WITHOUT …
Nice tool but small annoyances
Diff between two labels not working
TFS Folder Renames...
Exporting files with check in date
Unable to see newly added items in Sourc…
code migration - mapping users that don'…
MSSCCI v1.0 and VS2003 Provider not show…
partial turn on of the code analysis
TF.EXE difference command and versionspec
Get Latest Version from Source Control E…
One problem in security setting