Remove the SQL Server Database for an Archiving Server
Topic Last Modified: 2011-04-06
After you remove a Microsoft Lync Server 2010 Archiving Server or reconfigure the server to use a different database, you can remove the SQL Server databases that hosted the pool data. Use the following procedures to remove the definitions from Topology Builder, and then remove the database and log files from the database server.
To remove the SQL Server database using Topology Builder
Log on to the computer where Lync Server Management Shell is installed as a member of the RTCUniversalServerAdmins group or with the necessary user rights as described in Delegate Setup Permissions.
Start Topology Builder: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Topology Builder.
When Topology Builder prompts you to select the source of the Lync Server 2010 topology documents, click Download Topology from existing deployment, and then click OK.
In Save Topology As, type a name for the topology document in File name, and then click Save.
Expand SQL Stores, right-click the SQL Server instance associated with the removed or reconfigured Archiving Server, and then click Delete.
Warning
If you accidentally delete the wrong object and you have not published the topology yet, right-click the Lync Server 2010 node, click Download Topology, and then click Yes in Confirm Download Topology.
Publish the topology, and then check replication status.
Note
For details, see Common Procedures for Removing Servers Running Lync Server and Lync Server Components.
To remove the database files from the SQL Server
To remove the databases on the SQL Server, you must be a member of the SQL Server sysadmins group for the SQL Server where you are removing the database files.
Log on to the computer where Lync Server Management Shell is installed as a member of the RTCUniversalServerAdmins group or with the necessary user rights as described in Delegate Setup Permissions.
Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.
Type:
Uninstall-CsDataBase -DatabaseType Archiving -SqlServerFqdn <FQDN> [-SqlInstanceName <instance>]
Where <FQDN> is the fully qualified domain name (FQDN) of the database server, and <instance> is the named database instance (that is, if one was defined).
When the Uninstall-CsDataBase cmdlet prompts you to confirm actions, read the information, and then press Y (or press Enter) to proceed, or press N and then Enter if you want to stop the cmdlet (that is, in case there errors).