This is due to massive database structure changes across multiple version.

(Upgrading database from below/ older than Version 2015.1.5.8 to current version "latest version")

1. Download Version 2015.1.5.8 setup file from below link:

2. Update QnE Optimum to Version 2015.1.5.8 and upgrade database to Version 2015.1.5.8.
3. Then you can direct upgrade to current version(latest version)

Please refer How to install Microsoft SQL Management Studio


Please refer How to Connect to Database use Microsoft SQL Server Management Studio