sql azure insert时索引错误

表a就两个字段都是int型

在本地sql 2008 r2中insert是没有问题的。但到sql azure中就会出现

Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.


原因:a表没有设置聚集索引,可以通过设置主键的方式解决。


你可能感兴趣的:(sql,insert)