title: converting sql server rowversion to long or ulong?
body: <p>What is the proper type for the rowversion (timestamp) data type?</p>
  
  <p>I know it is 8 bytes but i cannot find a link in MSDN which tell if it is a signed or unsigned long.</p>
  
  <p>which code should I use, does it even matter?</p>
  
  <pre><code>byte[] SqlTimeStamp;
  
  long longConversion;
  longConversion = BitConverter.ToInt64(SqlTimeStamp,0);
  TimeStamp = BitConverter.GetBytes(longConversion);
  
  ulong ulongConversion;
  ulongConversion = BitConverter.ToUInt64(SqlTimeStamp,0);
  TimeStamp = BitConverter.GetBytes(ulongConversion);
  </code></pre>