Determine if a table column is used?

  • Eric M Russell (11/7/2016)


    Eirikur Eiriksson (11/7/2016)


    Eric M Russell (11/4/2016)


    Or you could leave the columns as is and add page compression, which in this case would probably shrink the table down to 10% or less of it's original size.

    Another option is to change the all null columns to sparse columns, wouldn't break any code either.

    😎

    Sparse Columns can't be used with Page Compression. Compression applies also to the used columns as well, so it might offer more storage savings, assuming that's the goal here.

    I meant as an alternative to page compression.

    😎

  • Eric M Russell (11/7/2016)


    TheSQLGuru (11/4/2016)


    Eric M Russell (11/4/2016)


    Or you could leave the columns as is and add page compression, which in this case would probably shrink the table down to 10% or less of it's original size.

    Enterprise Edition only, so maybe what, 1-5% of the installed user base can do this. 🙁

    OK, when I read this, I assumed it was Enterprise Edition.

    I have a table with 926 columns (I didn't build this) ...

    So you assumed that only people with big budgets can have, er, questionable database design? Or that only they can buy a horrible third party app with such a design? 😀

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • TheSQLGuru (11/7/2016)


    Eric M Russell (11/7/2016)


    TheSQLGuru (11/4/2016)


    Eric M Russell (11/4/2016)


    Or you could leave the columns as is and add page compression, which in this case would probably shrink the table down to 10% or less of it's original size.

    Enterprise Edition only, so maybe what, 1-5% of the installed user base can do this. 🙁

    OK, when I read this, I assumed it was Enterprise Edition.

    I have a table with 926 columns (I didn't build this) ...

    So you assumed that only people with big budgets can have, er, questionable database design? Or that only they can buy a horrible third party app with such a design? 😀

    Yes, if an organization is willing to buy an expensive horribly designed 3rd party DW apps with 926 columns, then they're going to run it on Enterprise Edition. I totally feel safe making that default assumption. Even if I'm wrong, I would only be temporarily wrong. 🙂

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

Viewing 3 posts - 16 through 17 (of 17 total)

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