【发布时间】: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