如何在创建BACPAC时将Sql Server Management Studio配置为忽略视图上的某些扩展属性?

问题描述:

当我尝试从本地MSSQL数据库上运行的数据库生成BACPAC我得到一个错误:如何在创建BACPAC时将Sql Server Management Studio配置为忽略视图上的某些扩展属性?

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]是一个由一个选择的单个表简单的图,其中基于比特列的过滤器。 (它只显示IsEnabled == true的公司)。

我正在使用最新版本的工具(SSMS)的SQL Server 2014。

+1

扩展属性支持在最新的SQL数据库更新V12(预览版)中提供 - 有关详细信息,请参阅http://azure.microsoft.com/zh-cn/documentation/articles/sql-database-preview-whats-new/ 。如果您使用SSMS CU5更新(http://support.microsoft.com/kb/3011055),则支持导出包含扩展属性的bac​​pac文件,然后将其导入到已启用V12预览支持的数据库中 – 2015-01-09 18:11:26

对此的一种解决方法是删除视图上的扩展属性。

这将允许导出数据库。

然而,它会打破有问题的视图的图形设计器,所以不理想。

自从迁移到Azure在过程中创建一个BACPAC,这篇文章是我发现这个问题的最佳信息来源:

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

按照指示,你将能够去除您的扩展属性以及用于轻松导出到数据层应用程序的其他阻塞问题(很好,很容易)。