Problem:
Getting the following error “Database is in compatibility range and upgrade is recommended.”
Cause:
In my case, it was because I ran the SharePoint Cumulative Update before running the Foundation Cumulative Update. As this was just my development box, I wound up reinstalling. Always install the Foundation CU first. Restart. Run the PSConfig. If it’s too late for that advice, you can try the solution below, which successfully updated my content databases. I’ve included a couple lines of code that I used to do that. This page offers more about the error.
Get-SPDatabase | ?{$_.NeedsUpgrade –eq $true} | Select Name
Get-SPContentDatabase | ?{$_.NeedsUpgrade –eq $true} | Upgrade-SPContentDatabase
Does this work for non-content databases?
Get-SPDatabase –Identity DatabaseName | Upgrade-SPDatabase
This should work for content databases:
Get-SPContentDatabase –Identity SP2010_MySiteContentDB | Upgrade-SPContentDatabase