简体   繁体   English

sql server 2008分区列

[英]sql server 2008 partitioning column

According to microsoft An Identity column cannot be a partitioning column canadate. 据微软称 ,身份列不能是分区列的候选人。

The partitioning column cannot be an identity, default or timestamp column. 分区列不能是标识列,默认列或时间戳记列。

They do not clarify why that is nor has my google foo turned up a reason. 他们没有说明为什么这也不是我的Google foo出现的原因。

I have a theory, can SqlServer not automatically insert the row into the correct shard based on the identity field if it is the partitioned column? 我有一个理论,如果是分区列,SqlServer是否可以根据身份字段将行自动插入正确的分片中?

Your reference is for SQL Server 2000 and partitioned views. 您的参考适用于SQL Server 2000和分区视图。

SQL Server 2008 allows Identity fields as the partitioning column in a partitioned table. SQL Server 2008允许将Identity字段作为分区表中的分区列。

See this link, excerpt below: 请参阅此链接,摘录如下:

All data types are valid for use as partitioning columns, except text, ntext, image, xml, timestamp, varchar(max), nvarchar(max), varbinary(max), alias data types, or CLR user-defined data types. 除text,ntext,image,xml,timestamp,varchar(max),nvarchar(max),varbinary(max),别名数据类型或CLR用户定义的数据类型外,所有数据类型均可用作分区列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM