Visual Studio 2015 Update 2 and Sql Server 2016 Sc

2019-06-23 21:40发布

I recently upgraded to Visual Studio 2015 Update 2 and that all went smoothly however, now when I attempt to do a Schema Compare from a data project against a Sql Server 2016 database it shows that i needs to create all objects in the database. This worked fine before this update.

I get the following error when the compare initializes:

An error occurred while attempting to reverse engineer elements of type Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlDatabaseCredential: Batch Command during reverse engineer failed with Error Code: -2146232060 Line Number: 2267 Error Message: Invalid column name compression_delay. Invalid column name compression_delay.

Does anyone know what is causing this problem? Thanks in advance.

2条回答
▲ chillily
2楼-- · 2019-06-23 22:06

I had the same issue. I found an update/patch for VS 2015 Update 2. Applying the patch fixed the issue.

https://msdn.microsoft.com/en-us/library/mt695655.aspx#

查看更多
Evening l夕情丶
3楼-- · 2019-06-23 22:23

I'm not sure what caused this problem to happen but I ended up detaching all my databases, uninstalling SQL Server and doing a fresh install. After that all scripts and VS data compares worked correctly.

查看更多
登录 后发表回答