What is the proper type for the rowversion (timestamp) data type?
I know it is 8 bytes but i cannot find a link in MSDN which tell if it is a signed or unsigned long
I use this (updated):
private UInt64 GetUInt64ForRowVersion(byte[] rowVersion) { byte[] rr = (byte[])rowVersion.Clone(); if (BitConverter.IsLittleEndian) { Array.Reverse(rr); } return BitConverter.ToUInt64(rr, 0); }