S
sjoshi
I have an SQLBinary (8) field(mts) with data like 0x01F4000000000000,
0x0400000000000000, etc. Now I need to compare just the first 4 bytes
to an Int32 field (cts) and update the SQLBinary field if it's
different.
What would the be the best way to do this. Like for this data, which is
stored like this.
cts=4
mts=0x0400000000000000
I tried to get mts as byte[] and then BitConverter.ToInt32(byte[],0)
compare to cts and if different set mts=BitConverter.GetBytes(cts) but
that did not work.
Any help is appreciated.
thanks
Sunit
0x0400000000000000, etc. Now I need to compare just the first 4 bytes
to an Int32 field (cts) and update the SQLBinary field if it's
different.
What would the be the best way to do this. Like for this data, which is
stored like this.
cts=4
mts=0x0400000000000000
I tried to get mts as byte[] and then BitConverter.ToInt32(byte[],0)
compare to cts and if different set mts=BitConverter.GetBytes(cts) but
that did not work.
Any help is appreciated.
thanks
Sunit