Reply to Re: Why XML Output is Truncated

Your name:

Reply:


Posted by Hugo Kornelis on 08/01/07 19:13

On Mon, 30 Jul 2007 18:37:42 -0700, Mo wrote:

>Thank you for the great pointer. Here is the problem. I am calling a
>function to retrieve the data in XML format. The problem is that it
>returns only nvarchar(8000) which is smaller than what I need. I think
>that is why the returning data is being truncated. my function is as
>follows. Any ideas on how to return larger XML string is greatly
>appreciated.
>
>
>CREATE FUNCTION GetXMLRequests()
>RETURNS nvarchar(max)
>AS
>BEGIN
> -- Declare the return variable here
> RETURN (select * from Request_vw for xml auto)
>
>END
>GO

Hi Mo,

Any reason why you want to return nvarchar(max) rather than use the
dedicated xml datatype?

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация