Results 1 to 2 of 2

Thread: space that nulls take

  1. #1
    chagood Guest

    space that nulls take


    We have compare two table with populated with the same data and with the same definition except, one table allows nulls
    and the other table does not. All the fields are defined as integer. The table that allows nulls takes much more data space.
    Why is that? I could not find an explaination in BOL.

  2. #2
    Gregory Guest

    space that nulls take (reply)

    maybe u need to run 'dbcc update usage'?

    if field is 'integer' data type - it takes 4 bytes.
    if data is the same, then....? try to use 'select datalength() from..' to see length of null/not null columns.


    ------------
    chagood at 3/10/99 3:23:59 PM


    We have compare two table with populated with the same data and with the same definition except, one table allows nulls
    and the other table does not. All the fields are defined as integer. The table that allows nulls takes much more data space.
    Why is that? I could not find an explaination in BOL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •