SharePoint 2013 – Databases running in compatibility range

I ran across this a while ago, after having updated a customer’s SP 2013 to March 2012 PU.

The affected db was the BusinesDataCatalogDB which didn’t get the update even after running:

“PSConfig.exe -cmd upgrade -inplace b2b -force (-cmd applicationcontent -install -cmd installfeatures)”

According to the link you get in CA, the solution is to upgrade the SQL server to SQL 2008 R2 – well, guess what MS and your amazing built-in so-called Help”: It’s a SQL 2012! So what to do?

The solution is:

(Get-SPDatabase | ?{$_.type -eq “Microsoft.SharePoint.BusinessData.SharedService.BdcServiceDatabase”}).Provision()