Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My computer died so it's be reinstalled.

Previously I had SQL Server 2008 R2 installed. On the new system I have SQL Server 2012.

I have the old RegSrvr.xml file (that contains the list of registered SQL Servers).

How do I get the server list from 2008 R2 into 2012?

Update: When doing Local Server Groups -> Tasks -> Import and choose the RegSrvr.xml file, click OK it's says "The import was successfull" - but no servers or folders has been added and the RegSrvr.xml file for the 2012 installation has not been modified

Sample from xml file

    <sfc:version DomainVersion="1" />
    <RegisteredServers:RegisteredServer xmlns:RegisteredServers="" xmlns:sfc="" xmlns:sml="" xmlns:xs="">
        <sfc:Reference sml:ref="true">
      <RegisteredServers:Name type="string"></RegisteredServers:Name>
      <RegisteredServers:Description type="string" />
      <RegisteredServers:ServerName type="string"></RegisteredServers:ServerName>
      <RegisteredServers:UseCustomConnectionColor type="boolean">false</RegisteredServers:UseCustomConnectionColor>
      <RegisteredServers:CustomConnectionColorArgb type="int">-986896</RegisteredServers:CustomConnectionColorArgb>
      <RegisteredServers:ServerType type="ServerType">DatabaseEngine</RegisteredServers:ServerType>
      <RegisteredServers:ConnectionStringWithEncryptedPassword type="string">;uid=username;password=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAegY4QOvPGEGcK2Xdr+jDjQQAAAACAAAAAAADZgAAwAAAABAAAADesdxAGO4GO879z1yS2DZeAAAAAASAAACgAAAAEAAAAGAvgtRJfPRL/puHnREmKu8YAAAAUxRIQVDZHywb7rOYL9MRqG0B2Jvi8kyfFAAAANs53tVPbVux2j56oRU/2oGtmQc9;pooling=false;packet size=4096;multipleactiveresultsets=false</RegisteredServers:ConnectionStringWithEncryptedPassword>
      <RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginNameAndPassword</RegisteredServers:CredentialPersistenceType>
share|improve this question

migrated from Jun 13 '12 at 13:35

This question came from our site for professional and enthusiast programmers.

@DavidBrabant Tried that already - updated question – Rasmus Jun 13 '12 at 8:56
Could you show your RegSrvr.xml file? Is there a "password=....;" part of the <RegisteredServers:ConnectionStringWithEncryptedPassword>? – David Brabant Jun 13 '12 at 9:09
For those servers that doesn't use windows authentication there is a "password=...;" part – Rasmus Jun 13 '12 at 12:32
You might find a track to fix your problem here:… – David Brabant Jun 13 '12 at 12:37
up vote 2 down vote accepted

If your RegSrvr.xml contains a "password=....;" in <RegisteredServers:ConnectionStringWithEncryptedPassword> section, replace ";uid=...;password=...;" with ";trusted_connection=true;"

In the same file, replace:

<RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginNameAndPassword</RegisteredServers:CredentialPersistenceType>


<RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginName</RegisteredServers:CredentialPersistenceType>

Now the server registration will try to use Windows Authentication. Once the Registered Servers are loaded, you can go back and edit the registrations to use your SQL Authentication information.

share|improve this answer

As an addition to the above answer. Another solution that was easier to use is this :

Importing registered servers

  1. On the SQL Server 2005 system, shut down SSMS and copy out the files in this location: “%appdata%\Microsoft\Microsoft SQL Server\90\Tools\Shell\RegSrvr.xml”

  2. Now copy those files to the same location where you installed SQL Server 2008.

  3. Open SSMS 2008 and right-click Local Server Groups in the Registered Servers window Choose Tasks | Previously Registered Servers

For 2014, after I replaced the RegSrvr.xml file with my 2012 copy and launched SSMS, all of the registered servers reappeared without using the Previously Registered Servers task.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.