Is there a way to turn a TFS instance into read-only mode?
We are migrating a TFS instance from 2008 to 2010.
To minimize the risk, we are installing TFS 2010 on new hardware and we plan to leave the old TFS 2008 instance on for a while until we are sure everything is working OK on the new server.
To avoid p开发者_JAVA百科eople updating the 2008 instance instead of the 2010 one by mistake, I was planning to turn it into read-only mode. That should include:
- Version Control
- Project Portal Documents
- Work Items
The way I'm envisioning on doing this is to change the security permission groups (almost) all to read-only.
Is there a simpler (as in a single switch) or more proper of doing this?
If you put the database in read-only mode, this will break things in TFS. For example, every command adds an entry to tbl_command table, so no one will be able to look at the Team Project.
The best option might be to change the permissions on the Team Project so no one has write access.
I think TFS uses SQL Server as a back-end. You could put the database into read-only mode.
EDIT: I checked with the person who administered our migration. He said that our DBAs:
... put the database in read-only mode. That prevented people from changing things during migration but it also had the side-effect of preventing an actual connection to the TFS database so people couldn’t even get copies or read items in TFS as a result. There is probably a better way, but it did accomplish the goal of preventing changes during the migration.
So Alfred Myers and @Erin Geaney are correct. Hopefully there is a better way.
精彩评论