DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Unused columns

  1. #1
    Join Date
    Apr 2001
    Location
    Westborough,MA
    Posts
    2
    Is there a way to find out unused columns ?

  2. #2
    Join Date
    Mar 2000
    Location
    Atlanta, GA,USA
    Posts
    155
    Select max(vsize(Col1)),max(vsize(Col2)),...,max(vsize(ColN))
    from Table;

    A column is empty if max(vsize(ColN)) is null.


    Sergey.

Posting Permissions

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


Click Here to Expand Forum to Full Width