简体   繁体   English

Azure 计划程序停用后 Azure SQL bacpac 导出失败

[英]Azure SQL bacpac export fails after retirement of Azure Scheduler

After Azure Scheduler was retired in Jan 22 ( See more here ), I am unable to export azure SQL database to bacpac.在 Azure 调度程序于 ​​1 月 22 日退役后( 在此处查看更多信息),我无法将 azure SQL 数据库导出到 bacpac。 I get the following error:我收到以下错误:

Export bacpac: One or more unsupported elements were found in the schema used as part of a data package.

Error SQL71501: Error validating element [jobs_internal].[visible_targets_formatted]: SqlView: [jobs_internal].[visible_targets_formatted] contains an unresolved reference to an object. Either the object does not exist or the reference is ambiguous because it could refer to any of the following objects: [jobs_internal].[database_credentials].[C], [jobs_internal].[database_credentials].[name] or [jobs_internal].[targets].[C].
Error SQL71501: Error validating element [jobs]: SqlSchema: [jobs] has an unresolved reference to object [##MS_JobAccount##].
Error SQL71501: Error validating element [jobs_internal]: SqlSchema: [jobs_internal] has an unresolved reference to object [##MS_JobAccount##].

What exactly do I need to drop from the database to fix this.我到底需要从数据库中删除什么来解决这个问题。

Creation of the bacpac is part of Azure Web App backup (when option to back the database up is selected) BACPAC的创建是Azure Web应用程序备份的一部分(选择备份数据库UP时)

I found a solution.我找到了解决方案。 You have to drop all objects in [jobs] and jobs_internal schemas.您必须删除[jobs]jobs_internal模式中的所有对象。 I did mine in the following order:我按以下顺序完成了我的:

  1. stored procedures,存储过程,
  2. functions,功能,
  3. views,意见,
  4. foreign keys,外键,
  5. tables,表,
  6. custom types,自定义类型,
  7. schemas,模式,
  8. and finally users.最后是用户。

After this was done, I was able to export bacpac and also perform a web application backup that included the database.完成此操作后,我能够导出 bacpac 并执行包含数据库的 Web 应用程序备份。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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