Results 1 to 2 of 2

Thread: row size over head

  1. #1
    Susrutha Nanduri Guest

    row size over head

    Hi all !
    I have a table where there are a number of columns with varchar(20) and varchar(255).
    I am looking at a table with 4 varchar(255) and 10 varchar(20) 's.
    I have to estimates the size of the table.I can do that given the rowsize and the number of rows in the table.
    My problem is what is the kind of over head that I need to take into account when I am dealing with a table with soo many variable length columns when calculating the row size?
    What is the over head difference between char datatye and varchar datatype?
    I can't go for char datatypes now.
    Help and info regarding this is very much appreciated.

    regards
    Sush.

  2. #2
    KROM Guest

    row size over head (reply)

    Well,
    the value is that varchar has an overhead
    storage value,but it can save you space
    in the long run, depending on the
    data itself. Fix length (var) datatype will
    use the entire allocated space without the
    overhead in varchar.
    summary: it all depends on the average data length.
    krom
    ------------
    Susrutha Nanduri at 4/25/00 10:26:30 AM

    Hi all !
    I have a table where there are a number of columns with varchar(20) and varchar(255).
    I am looking at a table with 4 varchar(255) and 10 varchar(20) 's.
    I have to estimates the size of the table.I can do that given the rowsize and the number of rows in the table.
    My problem is what is the kind of over head that I need to take into account when I am dealing with a table with soo many variable length columns when calculating the row size?
    What is the over head difference between char datatye and varchar datatype?
    I can't go for char datatypes now.
    Help and info regarding this is very much appreciated.

    regards
    Sush.

Posting Permissions

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