I'm just using some simple sql to try and get it working and then I will implement it into my program.
So my code is below:
select convert(varbinary(16), cast('63' as int)))
My result from this query is 0x000003F which is not what I wanted, I was expecting 000111111.
Does anyone know why it does this and how I can get it to display the number as 1's and 0's, it would be greatly appreciated, Thanks. This is using MSSql.