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 6065679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:25:02+00:00 2026-05-23T09:25:02+00:00

I have an xml doc (size: 3.59 mb) with 3765815 total characters in it.

  • 0

I have an xml doc (size: 3.59 mb) with 3765815 total characters in it. My sql server 2008 database table has a column with xml data type. When I try to insert this xml into the column it seems to truncate it.

I thought xml data type can handle 2GB of data. Is this a correct understanding or am i missing something?

Thanks

Here is the query i am using

declare printxml nvarchar(max) 

select printxml=cast(inputxml as varchar(max))
from TableA
where SomeKey='<some key>'

print printxml
  • 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-23T09:25:03+00:00Added an answer on May 23, 2026 at 9:25 am

    Select the data directly instead of printing it to the messages window:

    SELECT
        inputxml
        FROM TableA
        WHERE SomeKey = '<somekey>'
    

    The caveat is that you have to set up Management Studio to be able to return all the data to the window. You do that using the following option (the default setting is 2MB):

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

Sidebar

Related Questions

I have a xml doc as below. <data> <employee> <moretag> may or may not
My head is fuzzled with this. I have an xml doc which has the
I have XML data as a string which has to parsed, I am converting
I have XML tag that has the content which is HTML document. <xml-tag> <!--
I have an XML doc like this: <Persons> <Person Id=10000 FullName=Jon Doe> <Status StatusID=1
I have an XML doc with a structure like this: <Book> <Title title=Door Three/>
Ok, here's the question, I have an xml doc that is being import into
I have this in a XML doc. <userdata name='filter'>&SearchExpression[0].Key=Id&SearchExpression[0].Value=1&</userdata> The value is a query
I have an obeservable collection _kidlist and I want to create an XML doc
I have xml document in variable (not in file). How can i get data

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.