The database cannot be opened because it is version 706. (ASP.net)

前端 未结 2 1220
盖世英雄少女心
盖世英雄少女心 2021-01-17 10:26

In vsexpress 2012 using asp.net. Made a login page. in that I am trying to enter user name and pass word I am getting the following error

The databas

相关标签:
2条回答
  • 2021-01-17 10:33

    Try to connect to server name "(localdb)\v11.0" check your web.config, it should mention the correct server instance used to create the MDF file

    0 讨论(0)
  • 2021-01-17 10:40

    Version 706 is a database file from Sql Server 2012
    Version 663 is a database file from Sql Server 2008R2 (post SP1 ?)

    So it seems that you are trying to open an MDF file made with 2012 but the current instance of Sql Server is 2008R2. There is no way to work with that file in this situation.

    You could:

    • Upgrade the running instance of Sql Server to 2012
    • Export a script of your database file (data and structure) with 2008 compatibility, reimport your script on a 2008R2 instance and then distribute the MDF made from the 2008R2 instance
    0 讨论(0)
提交回复
热议问题