我有一个大型(约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不允许没有聚簇索引的表)。
为什么会这样?我应该自己添加索引吗?