UFN_TRIBUTE_GETSITES_TOITEMLISTXML

Used to convert the results of UFN_TRIBUTE_GETSITES to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@TRIBUTEID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  2/1/2011 9:00:40 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.9.1001.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_TRIBUTE_GETSITES
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_TRIBUTE_GETSITES_TOITEMLISTXML](
@TRIBUTEID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [ID], [SITEID]
 FROM dbo.[UFN_TRIBUTE_GETSITES](@TRIBUTEID)
 for xml raw('ITEM'),type,elements,root('SITES'),BINARY BASE64

)

END