patternMinor
Recover registered servers in SQL Server Management Studio 2012
Viewed 0 times
registered2012serverssqlrecovermanagementstudioserver
Problem
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
How do I get the server list from 2008 R2 into 2012?
Update:
When doing Local Server Groups -> Tasks -> Import and choose the
Sample from xml file
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 modifiedSample from xml file
/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup/ServerGroup/Company1/RegisteredServer/stage
/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup/ServerGroup/Company1
stage.server.dk
stage.server.dk
false
-986896
DatabaseEngine
server=stage.server.dk;uid=username;password=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAegY4QOvPGEGcK2Xdr+jDjQQAAAACAAAAAAADZgAAwAAAABAAAADesdxAGO4GO879z1yS2DZeAAAAAASAAACgAAAAEAAAAGAvgtRJfPRL/puHnREmKu8YAAAAUxRIQVDZHywb7rOYL9MRqG0B2Jvi8kyfFAAAANs53tVPbVux2j56oRU/2oGtmQc9;pooling=false;packet size=4096;multipleactiveresultsets=false
PersistLoginNameAndPassword
Solution
If your RegSrvr.xml contains a
In the same file, replace:
with:
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.
"password=....;" in ` section, replace ";uid=...;password=...;" with ";trusted_connection=true;"`In the same file, replace:
PersistLoginNameAndPasswordwith:
PersistLoginNameNow 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.
Code Snippets
<RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginNameAndPassword</RegisteredServers:CredentialPersistenceType><RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginName</RegisteredServers:CredentialPersistenceType>Context
StackExchange Database Administrators Q#19177, answer score: 6
Revisions (0)
No revisions yet.