[英]Unable to Export Data Tier in SQL Server When External Views Exists
Appreciate any help on using SSMS, why I am unable to run Tasks->Export Data Tier Application on a database which has views pointing to another database tables.感谢有关使用 SSMS 的任何帮助,为什么我无法在具有指向另一个数据库表的视图的数据库上运行任务->导出数据层应用程序。 This is in Azure SQL MI.
这是在 Azure SQL MI 中。
Error Message错误信息
One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71561: Error validating element [dbo].[vw_ext_customer]:
View: [dbo].[vw_ext_customer] has an unresolved reference to object
[finance].[dbo].[ext_customer]. External references are not supported when
creating a package from this platform.
External Table View外部表视图
CREATE VIEW [dbo].[vw_ext_customer] AS SELECT * FROM finance.dbo.ext_customer
Thanks in advance for help.提前感谢您的帮助。 Stay Safe.
注意安全。
Finally, I am able to generate bacpac using sqlpackage utility instead of SSMS.最后,我能够使用 sqlpackage 实用程序而不是 SSMS 生成 bacpac。 Trick is not to verify schema model during export.
技巧是不要在导出期间验证架构 model。 Not sure why SSMS do not have this parameter or am I missing somewhere.
不知道为什么 SSMS 没有这个参数或者我错过了某个地方。 Please find my working code below
请在下面找到我的工作代码
$ sqlpackage /a:export /ssn:some_server /sdn:databasename /su:username /sp:password /tf:database.bacpac /p:VerifyExtraction=False
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.