用下面这个办法。
1、先删除所有表的建,约束。因为SQLSERVER默认键主键时建聚集索引。
2、在你想建主键的字段上建主键、非聚集索引约束。比如ID
3、再按分区方案建聚集索引。比如Date不知这是不是BUG?
1、先删除所有表的建,约束。因为SQLSERVER默认键主键时建聚集索引。
2、在你想建主键的字段上建主键、非聚集索引约束。比如ID
3、再按分区方案建聚集索引。比如Date不知这是不是BUG?
调试欢乐多
http://blog.csdn.net/doyouknowm/article/details/4466072
以下例子供参考.create table t35 (x int not null, y int not null, z int not null)create clustered index idx_x on t35(x) -- 加聚集索引alter table t35 add primary key(x,y) -- 加Primary key