简体   繁体   English

SQL Server rowversion / timestamp和索引

[英]SQL Server rowversion/timestamp and indexes

Some RowVersion column in a table has been incremented and I don't know why. 表中的某些RowVersion列已递增,我不知道为什么。 The result is that every client get outdated data. 结果是每个客户端都会获得过时的数据。 So I'm looking for the cause of this unwanted incrementation. 所以我正在寻找这种不必要的增量的原因。

Does a rebuild / reorganize of indexes in SQL Server increment a RowVersion ( timestamp ) column of that table? SQL Server中的索引重建/重组是否会增加该表的RowVersiontimestamp )列?

Additional question : a RowVersion is unique within a table; 附加问题: RowVersion在表中是唯一的; but is it also unique in a database, in a server? 但它在服务器中的数据库中也是唯一的吗? I'm pretty sure it's unique in a database. 我很确定它在数据库中是独一无二的。

  • Rebuilding or reorganizing of indexes does not increment a RowVersion 重建或重组索引不会增加RowVersion
  • RowVersion is unique per database RowVersion对于每个数据库都是唯一的

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

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