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

Automated Azure SQL DB export fails - indexing for document type .xml is not supported on MS Azure SQL DB v12

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

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 服务器的 "Import/Export History",看到了以下错误详细信息:

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 数据库服务默认创建的备份吗?[=​​24=]

如果您在数据库中的 table 上有全文索引,您可能会看到这个。快速解决方案是删除索引并在导入到 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 Server0\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 服务器团队工作,负责 Import/Export。将来会在自动导出期间添加针对此问题的修复程序,但直接的解决方法是使用 SqlPackage.exe 在本地导出。解决方案是将 VerifyFullTextDocumentTypesSupported 标志设置为 false,如前所述

使用 SqlPackage.exe 的确切步骤:

  1. 安装支持最新 Azure SQL 数据库功能的 latest July DacFramework.msi release, or ideally install the latest SSMS Preview。对全文搜索的支持和这个配置选项是今年添加的,因此需要更新 SqlPackage.exe。您用于导出的版本已过期,因此不知道全文搜索支持。
  2. 运行下面的命令导出使用SqlPackage.exe。

对于版本 120(这是 7 月的 RTM 更新):

“C:\Program Files (x86)\Microsoft SQL Server0\DAC\bin\SqlPackage.exe” /a:export /ssn:(localdb)\ProjectsV12 /sdn:myDB /tf:my.bacpac /p:VerifyFullTextDocumentTypesSupported=false

对于版本 130(由 SSMS 预览版安装):

“C:\Program Files (x86)\Microsoft SQL Server0\DAC\bin\SqlPackage.exe” /a:export /ssn:(localdb)\ProjectsV12 /sdn:myDB /tf:my.bacpac /p:VerifyFullTextDocumentTypesSupported=false

最后,回答您的问题 #2,这不会影响备份或时间点还原 (PITR)。这是 Import/Export 服务的配置问题,问题仅限于此功能。