SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



XML Workshop X - Working with namespaces Expand / Collapse
Author
Message
Posted Thursday, October 18, 2007 3:07 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 1:12 PM
Points: 414, Visits: 2,250
Comments posted to this topic are about the item XML Workshop X - Working with namespaces

Jacob Sebastian, SQL Server MVP
http://beyondrelational.com/blogs/jacob/
Post #412439
Posted Wednesday, November 07, 2007 10:07 AM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, October 08, 2009 12:47 PM
Points: 41, Visits: 94
Great article, Jacob. I think you might have mentioned this previously, but is there a limit to the number of characters an XML query will return? Also, is there a way to get around this limitation? My queries keep coming back as only the first several thousand characters.

Thanks!
Post #419692
Posted Wednesday, November 07, 2007 11:37 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 1:12 PM
Points: 414, Visits: 2,250
Ryan Riley (11/7/2007)
Great article, Jacob. I think you might have mentioned this previously, but is there a limit to the number of characters an XML query will return? Also, is there a way to get around this limitation? My queries keep coming back as only the first several thousand characters.

Thanks!


Ryan,
I do not think there is a limitation. The following query returns an XML stream that is half a million characters long.

DECLARE @x XML
SELECT @x = (
select * from sys.columns for xml auto
)

SELECT LEN(CAST (@x as VARCHAR(MAX)))

/*
OUTPUT:


--------------------
417597

(1 row(s) affected)
*/


Jacob Sebastian, SQL Server MVP
http://beyondrelational.com/blogs/jacob/
Post #419927
« Prev Topic | Next Topic »


Permissions Expand / Collapse