>CAST(CAST(NEWID() AS BINARY(10)) >+ CAST(GETDATE() AS BINARY(6)) AS UNIQUEIDENTIFIER) >>
Byte[] b = Guid.NewGuid().ToByteArray(); Byte[] x = System.BitConverter.GetBytes(DateTime.Now.Ticks); // Or maybe: Byte[] x = System.BitConverter.GetBytes((UInt64)DateTime.Now.ToBinary()); Byte[] result = new Byte[16]; Array.Copy(b, 0, result, 0, 10); Array.Copy(x, 0, result, 10, 6);