Solved

XML Character length

Posted on 2011-03-04
5
384 Views
Last Modified: 2012-05-11
In SQL Server I know that varchar(max) is @8000 characters.

What is the max for XML output?

And is there a link that shows me all character type max lengths?
0
Comment
Question by:lrbrister
  • 3
5 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 500 total points
ID: 35036120
http://msdn.microsoft.com/en-us/library/ms187752.aspx

You'll have to click each type to get more info.

XML can hold up to 2GB.

0
 
LVL 10

Expert Comment

by:Umar Topia
ID: 35036162
Please refer this lnk:-
http://stackoverflow.com/questions/2742651/xml-output-is-truncated-in-sql

It has suggeted that, your Management Studio will truncate the XML once it crosses 2MB, but if you use it from C# code, you should be able to get the bigger XML data without truncation
0
 

Author Comment

by:lrbrister
ID: 35036230
Hey guys...and the select statement in SQL?
0
 

Author Comment

by:lrbrister
ID: 35036241
Hey guys...sorry about the question...wrong thread.
0
 

Author Closing Comment

by:lrbrister
ID: 35036243
Thanks
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question