Tangara G

Tangara G

  • NA
  • 298
  • 94k

How to rectify cannot be opened because it is version 852.

Oct 31 2016 2:54 AM
Hi,
 
 
I received the following message when I used VS2013 so I opened it in VS2015 but received the same message :
 
The database 'aspnet-MyFirstApp-20160718091622' cannot be opened because it is version 852. This server supports version 851 and earlier. A downgrade path is not supported.
Could not open new database 'aspnet-MyFirstApp-20160718091622'. CREATE DATABASE is aborted.
Cannot attach the file 'C:\Daryl-ASP.net\MyFirstApp\MyFirstApp\MyFirstApp\App_Data\aspnet-MyFirstApp-20160718091622.mdf' as database 'aspnet-MyFirstApp-20160718091622'. 
 
 I googled and found an answer in Stackoverflow but I am afraid if I followed the method to delete the bin file, what would happened if I want to use back VS2013.

For example, change to version 851 (13.0)

  1. Open CMD , cd to folder of SqlLocalDB (Default : "C:\Program Files\Microsoft SQL Server\130\LocalDB\Binn")
  2. Command "SqlLocalDB.exe delete "MSSQLLocalDB"" , The instance of LocalDB will be deleted.
  3. Command "SqlLocalDB.exe create "MSSQLLocalDB"" , Then you'll see the instance of newest LocalDB version in your computer has been created.
Hope someone can advise me. Tks.

Answers (1)