This database file is incompatible with the current instance of SQL Server

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.