【问题标题】:Attunity Replicate - tables in Azure are created without clustered indexesAttunity Replicate - Azure 中的表是在没有聚集索引的情况下创建的
【发布时间】:2014-05-15 21:24:45
【问题描述】:

我有一个大型(约 3300 万条记录)本地 SQL Server 数据库,必须将其复制到 SQL Azure 数据库(需要近乎实时的复制)。 我正在尝试使用 Attunity Replicate 软件来实现这一点。

我创建了一个指定 Full Load 选项的任务,该选项成功地将初始数据上传到 Azure。 之后,我创建了另一个指定 Apply Changes 选项的任务,但此任务以错误结束:

Failed to execute statement: 'INSERT INTO [attrep_apply_exceptions] values ( ...'

RetCode: SQL_ERROR  SqlState: 42000 NativeError: 40054 Message: [Microsoft][SQL Server Native Client 11.0][SQL Server] Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again. Line: 1 Column: -1

Attunity 在没有任何聚集索引的 Azure 数据库中创建了 [attrep_apply_exceptions] 表,因此插入失败(Azure 不允许没有聚集索引的表)。

为什么会这样?我应该自己添加索引吗?

【问题讨论】:

    标签: replication azure-sql-database attunity


    【解决方案1】:

    所有 表都必须有聚集索引。您将能够创建一个没有表格的表格,但是一旦您插入第一条记录,您将看到以下消息:Tables without a clustered index are not supported in this version of SQL Server

    有一个 Azure Sql 限制/差异列表here

    要回答您的问题,是的,您必须自己添加一个聚集索引。

    【讨论】:

      猜你喜欢
      • 2015-07-04
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      • 2010-12-07
      • 2022-08-20
      • 2017-05-08
      • 1970-01-01
      • 2019-06-03
      相关资源
      最近更新 更多