What is the version 869 of SQL Server?

坚强是说给别人听的谎言 提交于 2019-12-24 02:42:11

问题


I have VS 2017, SQL Server 2017 Configuration Manager and SQL Server 2017 management tools.

My connection string is

Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\test.mdf;Integrated Security=True;Connect Timeout=30

The version of connection: 13.00.4001

When I run my app in another PC I installed the SQL Server LocalDB 2017 and my app works perfectly!

But when I copied the .MDF and .LDF files from that PC and tried to added them to new project I got this error:

cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.

and this:

A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Why VS 2017 does not allow me to use this database?

It seems SQL Server localDB 2017 does NOT JUST support SQL Server 2016, it also modified the .MDF file to become 869 version (SQL Server localDB 2017 as I think because I am able to attach the .MDF in SQL Server 2017 Management Studio).

But the question now :

I already installed SQL Server 2017 Management tools - why do I get this error ?

来源:https://stackoverflow.com/questions/49899794/what-is-the-version-869-of-sql-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!