Visual Studio 2015 Update 2 and Sql Server 2016 Sc

2019-06-23 22:16发布

问题:

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.

回答1:

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.



回答2:

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#