UFN_CAMPAIGN_GETSITES_TOITEMLISTXML
Used to convert the results of UFN_CAMPAIGN_GETSITES to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CAMPAIGNID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 4/27/2009 10:59:25 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.0.62.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_CAMPAIGN_GETSITES
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_CAMPAIGN_GETSITES_TOITEMLISTXML](
@CAMPAIGNID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT [ID], [SITEID]
FROM dbo.[UFN_CAMPAIGN_GETSITES](@CAMPAIGNID)
for xml raw('ITEM'),type,elements,root('SITES'),BINARY BASE64
)
END