title: TFS Express 2012: Changed Windows server name, receiving error TF246017 and TF30040
body: <p>I recently changed the hostname of the server that is hosting my Team Foundation Server Express 2012 instance from <code>synqueuemgmt</code> to <code>banedev</code>. The host OS is Windows Server 2012 Standard and is not a member of a domain. Now when I attempt to open the <code>Team Foundation Administration Console</code> I am receiving the following error:</p>
  
  <blockquote>
    <p>Team Foundation Error</p>
    
    <blockquote>
      <p>TF246017: Team Foundation Server could not connect to the database. Verify that the server that is hosting the database is operational, and that the network problems are not blocking communication with the server.</p>
    </blockquote>
  </blockquote>
  
  <p>I have attempted to run the following command from an elevated command prompt in order to point TFS back to the database with the new name: </p>
  
  <pre><code>C:\Program Files\Microsoft Team Foundation Server 11.0\Tools&gt;TfsConfig.exe remapDBs /databaseName:banedev\SQLEXPRESS;Tfs_DefaultCollection /sqlInstances:banedev
  </code></pre>
  
  <p>However I am receiving the following error:</p>
  
  <blockquote>
    <p>TF30040: The database is not correctly configured. Contact your Team Foundation Server administrator.</p>
  </blockquote>
  
  <p>I am able to launch Microsoft SQL Server Management Studio 2012 on the server and I can connect to the TFS Express SQLEXPRESS instance and I can successfully run queries against the databases that are contained under the instance. Can anyone please help me point my current installation of TFS express back to the database with the new server name? I'd really like to avoid uninstalling/reinstalling TFS Express since I have quite a few of my visual studio projects added to source control under the old server hostname.</p>