Microsoft Releases frequent Cumulative updates for Lync 2013 servers and Most of these updates requires updating the Lync 2013 SQL Backend database. In this article I will discuss how to update the SQL Express backend database after installing a new Lync 2013 Cumulative update or specific Rollup that requires DB version update.

First to check the status of the Database after installing the cumulative update and whether you need an update, you need to run the below two commands from elevated Lync Power Shell.

  1. PS C:> Test-CsDatabase -ConfiguredDatabases -SqlServerFqdn | FT DatabaseName, ExpectedVersion, Installedversion        
  2. PS C:> Test-CsDatabase -CentralManagementDatabase | FT DatabaseName, ExpectedVersion, InstalledVersion

The Output will be something similar to that (This is the output of the second command on one of my deployments)

DatabaseName        ExpectedVersion      InstalledVersion

     ————                   —————              —————-

         xds                             10.13.2                    10.13.1
          lis                                 3.1.1                      3.1.1

As you can see there is a difference between the expected and installed value in the XDS database.
To update the Database we need to run the below commands in sequence:
  1. Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn FEBE.FQDN -Verbose
  2. Install-CsDatabase -CentralManagementDatabase -SqlServerFqdn CMS.FQDN -SqlInstanceName DBInstanceName -Verbose
After that we need to enable CsMobility service and Run Bootstrapper as follows:
  1. Enable-CsTopology
  2. Bootstrapper.exe
  3. Reboot the server.

This should take care of updating the backend DB and you can double check by running the previous Power Shell again and ensure both expected and installed versions are the same.

Reference Links:

Lync 2013 Cumulative Update List

Lync Server Resources