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.
The Output will be something similar to that (This is the output of the second command on one of my deployments)
DatabaseName ExpectedVersion InstalledVersion
lis 3.1.1 3.1.1
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
http://blogs.technet.com/b/nexthop/archive/2013/03/26/lync-2013-cumulative-updates-list.aspx
Lync Server Resources
http://blogs.technet.com/b/nexthop/p/links.aspx
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.
- PS C:\> Test-CsDatabase -ConfiguredDatabases -SqlServerFqdn servername.domain.com | FT DatabaseName, ExpectedVersion, Installedversion
- 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.1lis 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:
- Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn FEBE.FQDN -Verbose
- Install-CsDatabase -CentralManagementDatabase -SqlServerFqdn CMS.FQDN -SqlInstanceName DBInstanceName -Verbose
After that we need to enable CsMobility service and Run Bootstrapper as follows:
- Enable-CsTopology
- Bootstrapper.exe
- Reboot the server.