我在VS2012中使用当前的SSDT版本将SQLServer2008 SP2本地数据库与Azure SQL数据库进行比较。我得到了:
Rows were detected. The schema update is terminating because data loss might occur
它想要改变:
CONSTRAINT [PK_aspnet_UsersInRoles] PRIMARY KEY NONCLUSTERED ([RoleId] ASC, [UserId]
为:
CONSTRAINT [PK_aspnet_UsersInRoles] PRIMARY KEY CLUSTERED ([RoleId] ASC, [UserId] ASC),
即将PK更改为群集。我注意到SQL数据库需要集群索引,因此我可能需要在部署之前将所有本地索引更改为集群。
我如何解决这个问题?