Re: How much space does the long character data type use.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 04/30/04


Date: Fri, 30 Apr 2004 07:30:09 -0500

The max length for text data is 2GB and the reported size is the 'text in
row' size. With the default length of 16, only a pointer to the separate
text pages is stored in the data row. You can adjust the 'text in row size
to control how much text data is stored in the data row but the max length
is still 2GB.

See the SQL 2000 Books Online <cm_8_des_04_0x5t.htm> for details.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Emerson" <edixon64@hotmail.com> wrote in message
news:69c501c42ea8$31b315a0$a001280a@phx.gbl...
> Hi Barry,
> Thanks you for replying.
> What is puzzling me is that when I run sp_help on the
> table I see that the EMPLID field is CHAR with a length of
> 11 which I can understand because you cannot enter more
> than 11 characters in the EMPLID field.  However the
> COMMENT field is TEXT with a length of 16 but you can
> enter much more than 16 characters.
>
> How is this possible and how does it affect the disk space
> utilization?
>
> >-----Original Message-----
> >There is a 16 byte overhead on the text, ntext, and image
> data types.
> >
> >If your data in these columns is small, look at "Text in
> Row Data" in BOL.
> >
> >----------
> >
> >Barry McAuslin
> >
> >Look inside your SQL Server files with SQL File Explorer.
> >Go to http://www.sqlfe.com for more information.
> >
> >"Emerson Dixon" <edixon64@hotmail.com> wrote in message
> >news:075c01c42d44$45936490$7d02280a@phx.gbl...
> >> We currently use PeopleSoft HRMS on MS SQL SERVER 2000.
> >> One of the tables we use have a COMMENT field which is a
> >> Long Character datatype.  In SQL the data type show up
> >> as 'Text'.  How does this data type utilize disk space?
> >> Would the size grow based on the number of characters
> >> entered in the field or does the system reserve space as
> >> it does with other data type.  How much space does it
> >> reserve when a field is the long character datatype.
> >>
> >>
> >
> >
> >.
> >


Relevant Pages

  • Re: How much space does the long character data type use.
    ... than 11 characters in the EMPLID field. ... How is this possible and how does it affect the disk space ... >Look inside your SQL Server files with SQL File Explorer. ... How does this data type utilize disk space? ...
    (microsoft.public.sqlserver.server)
  • Re: Using Memo-type field with SQL back-end
    ... The varchar data type in SQL Server can hold up to 8000 characters. ...
    (microsoft.public.access.formscoding)
  • Re: SQL Server update long ntext field issue
    ... be aware of the differences in data type names. ... string data (8,000 non-Unicode characters for text, or 4,000 Unicode ... you still better not use ntext. ... been deprecated since SQL Server 2005, when it was replaced with the ...
    (microsoft.public.sqlserver.programming)
  • Re: Updating/Inserting rows in SQL Server 2000 with text data types
    ... > I am writing a VB6 application using ADO to communicate to a SQL Server ... Some of the columns are of text data type. ... > using ADO data type adVarChar as the data type for the parameter that ... > limit of 8000 characters. ...
    (microsoft.public.data.ado)
  • Re: FMS 5.5 crashing repeatedly
    ... Number of files per disk: Limited only by disk space. ... FileMaker Pro supports sharing of up to 10 files with up to 10 ... If alpha numeric the rightmost characters that are numbers are ... Calculation: Depends on result type. ...
    (comp.databases.filemaker)