Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 t-sql mathematical operation

Author  Topic 

sasan_vm
Yak Posting Veteran

51 Posts

Posted - 2014-05-21 : 03:14:09
Hello,

Is any solution to gt HIWORD / LOWORD of int type in t-sql ?

int type is 4 bytes:
HIWORD = bytes 3, 4 = upper 16 bits
LOWORD = bytes 1, 2 = lower 16 bits

Regards,
sasan.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2014-05-21 : 04:47:19
see here:
http://social.msdn.microsoft.com/Forums/en-US/93ec2c90-e235-44e9-a7bd-a0d0d224a37b/split-integer-into-high-byte-low-byte?forum=transactsql


Too old to Rock'n'Roll too young to die.
Go to Top of Page
   

- Advertisement -