when vs2015 imports MDF database files : This database file is incompatible with the current instance of SQL Server .
mdf The version of the file is sql SERVER 2005 ,vs2015 The own database is LocalDB , direct import of mdf file will prompt :
< Span lang= "en-US" > The solution is to sql server 2005 mdf file converted to localdb operable mdf file
Here is how to do it directly with VS2015 , no need to install SQL SERVER.
Connect to a database in Server Explorer
Server name : directly fill in (localdb) \mssqllocaldb
Attach the database file : Select the mdf file you want
Logical name : can fill in, here I fill in the same name as the MDF file Name
Click < OK >
When you click < OK > , the following prompt pops up : Do you want to upgrade the database files now ? Click < Yes >
Complete.
Resources:
http://go.microsoft.com/fwlink/?LinkId=235986
Https://msdn.microsoft.com/en-us/library/hh873188.aspx
This database file is incompatible with the current instance of SQL Server