日志序列号的含义是什么?我知道它是二进制类型,长度为 10 个字节,它对应于数据库中事务发生的时间。但这是以某种有效的二进制格式存储的高精度日期时间值,还是日期时间和其他内容的函数(例如在同一毫秒发生的事务的序列号)。我做了很多搜索,但找不到一个好的答案。
任何人都可以用用于从日期时间或任何其他内容导出 LSN 的公式或函数进行解释吗?
最佳答案
Every record in the SQL Server transaction log is uniquely identified by a log sequence number (LSN). LSNs are ordered such that if LSN2 is greater than LSN1, the change described by the log record referred to by LSN2 occurred after the change described by the log record LSN.
来自here .
您不应该关心它们是如何生成的。
关于sql - SQL Server中的LSN是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1143119/