问题
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