简体   繁体   中英

How can I configure Sql Server Management Studio to ignore certain extended properties on a view when creating a BACPAC?

When I try to generate a BACPAC from a database running on a local MSSQL database I get an error:

One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71564: The element Extended Property: [dbo].[EnabledCompany].[MS_DiagramPane1] is not   supported when used as part of a data package (.bacpac file).
Error SQL71564: The element Extended Property: [dbo].[EnabledCompany].[MS_DiagramPaneCount] is not supported when used as part of a data package (.bacpac file).
(Microsoft.SqlServer.Dac)

[EnabledCompany] is a simple view made up of a select from a single table with a single where filter based on a bit column. (It only shows companies where IsEnabled == true).

I'm using SQL Server 2014 with the latest version of the tooling (SSMS).

One workaround for this is to delete the extended properties on the view.

This will then allow the database to be exported.

However, it will break the graphical designer for the view in question and so isn't ideal.

Since migrating to Azure creates a BACPAC in the process, this article is the best source of information I've found about this issue:

http://blogs.msdn.com/b/ssdt/archive/2012/04/19/migrating-a-database-to-sql-azure-using-ssdt.aspx

Follow the directions and you will be able to remove your extended properties as well other other blocking issues for Exporting to a Data-Tier Application easily (well, kinda easily).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM