When you install updates for Microsoft Lync 2013 it’s important to update back end database. Not every updates has update for SQL database but sometimes it happen.
So to check your sql database version for Microsoft Lync 2013 you can use:
Test-CSDatabase
you can use it like below:
Test-CSDatabase -ConfiguredDatabases -SqlServerFqdn lyncSQL.domain.com
or:
Test-CSDatabase -ConfiguredDatabases -SqlServerFqdn lyncSQL.domain.com | select-object databasename, installedversion, expectedversion