SQL Server: varbinary or int to store a bit mask?

后端 未结 4 1180
面向向阳花
面向向阳花 2021-02-20 06:45

Is there any advantage of using int vs varbinary for storing bit masks in terms of performance or flexibility.

For my purposes, I will always be doing reads on these bit

4条回答
  •  生来不讨喜
    2021-02-20 07:48

    Well, considering an int has less storage space and is generally a little easier to work with I'm not sure why you'd use a varbinary.

提交回复
热议问题