How can we help you today? How can we help you today?

Can I work on multiple branches of the same database?

When linking to a database using the dedicated development model, how can you switch between branches?  I'm working on two different enhancements with a separate branch for each.  I tried unlinking Enhancement Branch 1 and relinking to the database, selecting Enhancement Branch 2.  However, Enhancement Branch 2 contained the enhancements I thought were exclusive to enhancement branch1.   What am I doing wrong?
gmchenry
0

Comments

4 comments

  • AlexYates
    What VCS are you using? Git? TFVC? etc.
    AlexYates
    0
  • gmchenry
    I'm using TFS.
    gmchenry
    0
  • AlexYates
    In this scenario your database will not change simply by switching branches. The changes might appear as a conflict in the get latest tab? If not try using SQL Compare after you switch branches to force your local dev DB to sync up with the appropriate branch.

    If you try that and you still get issues my guess is it's a bug - but try it first.

    In general my advice is that wherever possible you to maintain a separate database for each branch. If branching is something you do regularly this will force you to get better at provisioning, which will have many nice consequences.
    AlexYates
    0
  • David Atkinson
    The workaround that I've heard works is after the branch has changed, to unlink and relink the project. This will force the tool to interpret any changes as conflicts. Then it's just a question of choosing the "Source Control" changes as "winning" the conflict and applying these changes to the database.
    David Atkinson
    0

Add comment

Please sign in to leave a comment.