SQL Server CMS – where are locally registered servers stored

In one of my previous posts I showed you how to register multiple instances in SQL Server Management Studio Registered Servers explorer. However registering them locally has its pitfalls such as not being accessible for other DBAs without being imported/exported from the GUI. This operation is not that complicated itself, but it got me curious where are those registered instances stored after all so I do not have to export and import anything. It took me a bit longer to find it, but I did it. So, if you are curious too, those instances are stored in an XML file stored on the following paths:

Windows Server 2003 based systems: C:Documents and Settings<user>Application DataMicrosoftMicrosoft SQL Server100ToolsShellRegSvr.xml

Windows Server 2008 based systems: C:Users<user>AppDataRoamingMicrosoftMicrosoft SQL Server100ToolsShellRegSvr.xml

The XML file is structured just as the one, created after exporting registered servers from the GUI. So you can just copy it and restore it wherever you desire.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.