Bit Flag or seperate columns

  • Completely depends on what I'm doing. For instance, I stated it as A.B.C.D, but I'd write it as a 32 bit stream... very handy when doing masks that don't follow the old class system. In that case the tinyints actually impede what I'm trying to do.

    K. Brian Kelley

    http://www.truthsolutions.com/

    Author: Start to Finish Guide to SQL Server Performance Monitoring

    http://www.netimpress.com/

    K. Brian Kelley
    @kbriankelley

  • One basic database design principle is to make things as "granular" as possible. Following this design pattern would mean that you would go with the separate bit columns for each answer.

Viewing 2 posts - 16 through 16 (of 16 total)

You must be logged in to reply to this topic. Login to reply