Versuchen Sie Folgendes:
Declare @xmldata xml
set @xmldata = (select ... From test for xml...)
select @xmldata as returnXml
Versuchen Sie Folgendes:
Declare @xmldata xml
set @xmldata = (select ... From test for xml...)
select @xmldata as returnXml