Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XML Character length

Posted on 2011-03-04
5
Medium Priority
?
402 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 2000 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

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

824 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