title: Unable to perform branch, database update error thrown
body: <p>I am trying to branch a directory in TFS using the Source Control explorer, however whenever I do, I always get this error:</p>
  
  <blockquote>
    <p>TF400962: There was a database update error. Please try your operation again.</p>
  </blockquote>
  
  <p>This occurs after confirming I would like to branch after it informs me that it will be committed as a single operation, pending changes will not be created and that it cannot be canceled when it is started.</p>
  
  <p><a href="https://i.stack.imgur.com/TMSOS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TMSOS.png" alt="enter image description here"></a></p>
  
  <p>I have been stuck on this for a while now and I can't seem to find any solution to this, here is a list of things I have tried.</p>
  
  <ul>
  <li>Made sure the Target Branch Name is below 255 characters (<a href="http://myteamfoundationserver.blogspot.co.uk/2017/04/tf400962-there-was-database-update.html" rel="nofollow noreferrer">As suggested here</a>). I also made sure the whole path on my machine was also less than 255 characters.</li>
  <li>Changed workspaces.</li>
  <li>Updated Visual Studio to the latest version.</li>
  <li>Restarted Visual Studio.</li>
  <li>Restarted my machine.</li>
  <li>Branched another directory (To see if the directory I need to branch isn't throwing the error).</li>
  <li>Made sure connection to the TFS server was correct.</li>
  <li>Checked that I had the correct settings in the workspace.</li>
  <li>Downloaded the directory I am trying to branch to my PC.</li>
  </ul>
  
  <p>I have ran out of ideas and it really is frustrating me. Any help would be appreciated. I'm using Visual Studio 2017 Enterprise now running on the latest updates.</p>