SQL Source Control Workspaces out of sync
philcart
Posts: 45
This is the Manage Workspaces dialog in Visual Studio 2008
This shows that the user has 13 workspaces and they are all related to SQL Source Control.
This is the workspaces listed by the SQL Source Control Cleaner tool.
In this tool there are only nine workspaces. Where are the other 4 workspaces? What are they and how do we know if they can be removed?
This has caused a few problems over the last few days as the same user will be editing a non-database item in Visual Studio. Then close and reopen Visual Studio and be told that they can't continue to work on that item as its checked out to another user or workspace. then they realise they're working in yet another SQL Source Control workspace.
This shows that the user has 13 workspaces and they are all related to SQL Source Control.
This is the workspaces listed by the SQL Source Control Cleaner tool.
In this tool there are only nine workspaces. Where are the other 4 workspaces? What are they and how do we know if they can be removed?
This has caused a few problems over the last few days as the same user will be editing a non-database item in Visual Studio. Then close and reopen Visual Studio and be told that they can't continue to work on that item as its checked out to another user or workspace. then they realise they're working in yet another SQL Source Control workspace.
Comments
It has no knowledge of other TFS workspaces used outside of SQL Source Control.
Redgate Software
If there are extra ones listed in the TFS Workspaces view then you'd need to manually compare the folder name to see if they are still in use or not as far as SQL Source Control is concerned before removing them manually - I'm not sure why they would be still listed in there, but it would appear they would relate to folders that perhaps don't exist any longer? (I'm not sure if removing a folder also removes the workspace mapping, or whether that's a separate process)
Redgate Software
I have exactly the same problem with workspaces created by SQL Source Control and are not cleaned.
Note that this tool isn't supported at all - we wouldn't normally recommend you mess with the working bases folder but if you do have a lot of old folders in there, this can help get rid of them for you.
Redgate Software