Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 848171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:54:02+00:00 2026-05-15T06:54:02+00:00

Software I’m working with uses a text field to store XML. From my searches

  • 0

Software I’m working with uses a text field to store XML. From my searches online, the text datatype is supposed to hold 2^31 – 1 characters. Currently SQL Server is truncating the XML at 65,535 characters every time. I know this is caused by SQL Server, because if I add a 65,536th character to the column directly in Management Studio, it states that it will not update because characters will be truncated.

Is the max length really 65,535 or could this be because the database was designed in an earlier version of SQL Server (2000) and it’s using the legacy text datatype instead of 2005’s?

If this is the case, will altering the datatype to Text in SQL Server 2005 fix this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:54:02+00:00Added an answer on May 15, 2026 at 6:54 am

    that is a limitation of SSMS not of the text field, but you should use varchar(max) since text is deprecated

    alt text

    Here is also a quick test

    create table TestLen (bla text)
    
    insert TestLen values (replicate(convert(varchar(max),'a'), 100000))
    
    select datalength(bla)
    from TestLen
    

    Returns 100000 for me

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My software is working with incoming e-mail from the one and only particular sender
What software is recommended for working with and editing large XML schemas? I'm looking
The software my company uses has a web service which signature is more or
The software I develop uses command line makefiles. My environment uses free tools as
Software Utilize C#, VS-2005 How to Remove Nagative Sign From Textbox. my code is:
My software (application) exposes an API (webservices) using httplistener. Is it from a unit
The software base I am developing for uses a signficant amount of yacc which
The software I am working on was originally written in Delphi, and any recent
My software was built around BDE Engine and Paradox table for windows from while
Part of my software build process includes getting the hash of the working directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.