Attunity Replicate - Azure中的表是在没有聚簇索引的情况下创建的

时间:2014-04-03 20:10:02

标签: replication azure-sql-database attunity

我有一个大型(约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不允许没有聚簇索引的表)。

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

1 个答案:

答案 0 :(得分:1)

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

Azure Sql限制/差异列表here

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