gpt4 book ai didi

sql-server - 自动 Azure SQL DB 导出失败 - MS Azure SQL DB v12 不支持文档类型 .xml 的索引

转载 作者:行者123 更新时间:2023-12-02 07:37:19 25 4
gpt4 key购买 nike

我正在使用 Azure SQL DB 自动导出功能。一切都很顺利,但最近开始失败:

Automated SQL Export failed for XXX:XXX at 8/2/2015 4:11:22 AM. The temporary database copy was made, but this copy could not be exported to the .bacpac file.

我检查了 Azure SQL Server 的“导入/导出历史记录”并看到以下错误详细信息:

Error encountered during the service operation. Indexing for document type .xml is not supported on Microsoft Azure SQL Database v12.

我不知道那是什么。可能它与我正在使用的 FTS 功能相关,但自从上次成功自动导出以来,我没有对数据库执行任何操作,所以我猜这一定是 Azure 问题。

  1. 你知道如何解决这个问题吗?
  2. 您知道它是否会影响 Azure SQL DB 服务默认进行的备份吗?

最佳答案

如果数据库中的表有全文索引,您可能会看到这一点。快速解决方案是删除索引并在导入 Azure DB 后重新创建。 Azure DB 进行的备份不受此影响,如果需要,您可以执行 PITR。

   1. Open a CMD Window
2. Run the following command to export using SqlPackage.exe:
“C:\Program Files (x86)\Microsoft SQL Server\120\DAC\bin\SqlPackage.exe” /a:export /ssn:(localdb)\ProjectsV12 /sdn:myDB /tf:my.bacpac /p:VerifyFullTextDocumentTypesSupported=false

The VerifyFullTextDocumentTypesSupported flag is set to false, which allows export
to continue without any verification. The reason this is not allowed by default
is to avoid unexpected behavior upon migration to Azure Sql Database.

关于sql-server - 自动 Azure SQL DB 导出失败 - MS Azure SQL DB v12 不支持文档类型 .xml 的索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31919344/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com