Cannot be opened because it is version 852. this server supports version 782 and earlier

前端 未结 5 482
旧时难觅i
旧时难觅i 2020-12-03 15:23

I am using Visual Studio 2017 and SQL Server 2014. While attaching a database file to Visual Studio, I get this error:

\"\"

After upgrading the file I used t

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 15:48

    Version 852 is SQL Server 2016, and version 782 is SQL Server 2014. A good reference for the versions can be found at this Microsoft page.

    Based on your explanations, this should be a version 782 DB. Since it is version 852 DB, this means that it was upgraded using SQL Server 2016, not SQL Server 2014. Accordingly, you should check for all versions of SQL Server running on your local / dev machine, to confirm that only SQL Server 2014 is in use, and not (potentially) SQL Server 2016 installed by VS 2017.

    Additionally, it sounds like the version on your end user is 2014, not 2016. This is potentially an issue if the current DB is a SQL Server 2014 mode DB. Try explicitly connecting to TempDB before connecting the DB. (Note: This is something I had to do when encountering a 2014/2016 incompatibility, though I can't recall what the actual issue was.)

提交回复
热议问题