Sample Header Ad - 728x90

Using a 512 bit binary column as a bit field

1 vote
1 answer
346 views
I'm designing a table to keep track of a value that has to represent the on-off setting of several hundred states. I would expand this to 512, to give room for future growth and be a power of two. So I want a 64 byte = 512 bit column. My problem is that SqlServer bitwise operations don't support right operands larger than int, so there would be no way to access any bits past 32. How can I handle this issue?
Asked by Joshua Frank (111 rep)
Oct 23, 2018, 05:15 PM
Last activity: Oct 24, 2018, 02:50 AM